Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / InstanceCreationEditor.cs / 1305376 / InstanceCreationEditor.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using Microsoft.Win32; using System.Collections; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Globalization; using System.Runtime.Serialization.Formatters; using System.Runtime.Remoting; using System.Runtime.InteropServices; using System.Security.Permissions; ////// An InstanceCreationEditor allows the user to create an instance of a particular type of property from a dropdown /// Within the PropertyGrid. Usually, the text specified by InstanceCreationEditor.Text will be displayed on the /// dropdown from the PropertyGrid as a link or button. When clicked, the InstanceCreationEditor.CreateInstance /// method will be called with the Type of the object to create. /// [HostProtection(SharedState = true)] public abstract class InstanceCreationEditor { ////// public virtual string Text { get { return SR.GetString(SR.InstanceCreationEditorDefaultText); } } ////// This method is invoked when you user chooses the link displayed by the PropertyGrid for the InstanceCreationEditor. /// The object returned from this method must be an instance of the specified type, or null in which case the editor will do nothing. /// /// public abstract object CreateInstance(ITypeDescriptorContext context, Type instanceType); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using Microsoft.Win32; using System.Collections; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Globalization; using System.Runtime.Serialization.Formatters; using System.Runtime.Remoting; using System.Runtime.InteropServices; using System.Security.Permissions; ////// An InstanceCreationEditor allows the user to create an instance of a particular type of property from a dropdown /// Within the PropertyGrid. Usually, the text specified by InstanceCreationEditor.Text will be displayed on the /// dropdown from the PropertyGrid as a link or button. When clicked, the InstanceCreationEditor.CreateInstance /// method will be called with the Type of the object to create. /// [HostProtection(SharedState = true)] public abstract class InstanceCreationEditor { ////// public virtual string Text { get { return SR.GetString(SR.InstanceCreationEditorDefaultText); } } ////// This method is invoked when you user chooses the link displayed by the PropertyGrid for the InstanceCreationEditor. /// The object returned from this method must be an instance of the specified type, or null in which case the editor will do nothing. /// /// public abstract object CreateInstance(ITypeDescriptorContext context, Type instanceType); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RoutingUtilities.cs
- ActivityExecutionContext.cs
- OutputCacheProfile.cs
- GroupBox.cs
- GatewayDefinition.cs
- XmlElement.cs
- TextServicesManager.cs
- DataSourceXmlAttributeAttribute.cs
- QueryStringParameter.cs
- SqlTrackingWorkflowInstance.cs
- TextMessageEncodingElement.cs
- ColorAnimation.cs
- WorkItem.cs
- BitmapEffect.cs
- SqlUserDefinedTypeAttribute.cs
- Oci.cs
- ThreadAbortException.cs
- DynamicDataResources.Designer.cs
- TraceLevelStore.cs
- QuotedPrintableStream.cs
- ping.cs
- FontConverter.cs
- BrowserPolicyValidator.cs
- ColorAnimation.cs
- HttpListenerPrefixCollection.cs
- GetReadStreamResult.cs
- SelectionGlyph.cs
- WebPartCloseVerb.cs
- ToolStripRendererSwitcher.cs
- HttpRequestBase.cs
- PersonalizableTypeEntry.cs
- HttpCapabilitiesBase.cs
- CurrentChangingEventManager.cs
- MdiWindowListItemConverter.cs
- DataGridCellsPresenter.cs
- EncryptedData.cs
- AsyncOperation.cs
- _SpnDictionary.cs
- InvokeAction.cs
- WebZone.cs
- Native.cs
- NestPullup.cs
- _ShellExpression.cs
- FontFamilyValueSerializer.cs
- StdValidatorsAndConverters.cs
- RepeaterItem.cs
- CacheSection.cs
- SqlDependency.cs
- MetaType.cs
- IDispatchConstantAttribute.cs
- CounterCreationDataConverter.cs
- Action.cs
- ReferenceEqualityComparer.cs
- AssemblyCache.cs
- EditorServiceContext.cs
- ADMembershipProvider.cs
- SchemaImporter.cs
- EditCommandColumn.cs
- _ListenerRequestStream.cs
- ExtensibleClassFactory.cs
- TreeBuilder.cs
- ChannelBuilder.cs
- ArrayTypeMismatchException.cs
- AbandonedMutexException.cs
- PointLightBase.cs
- StreamingContext.cs
- PersonalizationStateQuery.cs
- BooleanAnimationUsingKeyFrames.cs
- ResourceDisplayNameAttribute.cs
- PackageRelationshipCollection.cs
- JavaScriptString.cs
- FieldNameLookup.cs
- SystemIPAddressInformation.cs
- SecurityTokenAuthenticator.cs
- NetDataContractSerializer.cs
- RouteValueExpressionBuilder.cs
- PolyQuadraticBezierSegment.cs
- EntityCodeGenerator.cs
- Validator.cs
- EventLogInformation.cs
- MSHTMLHostUtil.cs
- ClosableStream.cs
- TileModeValidation.cs
- DetailsViewPagerRow.cs
- UnsafeNativeMethodsPenimc.cs
- TypeContext.cs
- UshortList2.cs
- HexParser.cs
- ClientSideProviderDescription.cs
- SelectionWordBreaker.cs
- OperationParameterInfoCollection.cs
- OutputCacheProfile.cs
- PropertyInformationCollection.cs
- CollectionBuilder.cs
- DateTimePickerDesigner.cs
- TabControlAutomationPeer.cs
- EventLogger.cs
- LowerCaseStringConverter.cs
- LocatorPart.cs
- ResXResourceWriter.cs