Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / System / ComponentModel / InstanceCreationEditor.cs / 1 / 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
- StaticExtensionConverter.cs
- DocumentPageHost.cs
- CacheEntry.cs
- DataRelation.cs
- EntityViewGenerationConstants.cs
- XmlRootAttribute.cs
- BindingOperations.cs
- CompilerWrapper.cs
- PolicyManager.cs
- DataGridViewRowPrePaintEventArgs.cs
- Comparer.cs
- TreeNodeStyleCollection.cs
- RectangleGeometry.cs
- ExtensibleClassFactory.cs
- WebReferencesBuildProvider.cs
- ScalarRestriction.cs
- XmlSubtreeReader.cs
- DataGridCell.cs
- Pair.cs
- ProfileParameter.cs
- CheckBoxPopupAdapter.cs
- DictionaryItemsCollection.cs
- arabicshape.cs
- DataSourceDescriptorCollection.cs
- PasswordDeriveBytes.cs
- RelativeSource.cs
- TextViewElement.cs
- StartUpEventArgs.cs
- ZipIOCentralDirectoryFileHeader.cs
- MailMessage.cs
- BindingExpressionBase.cs
- QilGenerator.cs
- XsdBuildProvider.cs
- HttpApplicationFactory.cs
- UserValidatedEventArgs.cs
- TimerEventSubscriptionCollection.cs
- TreeBuilder.cs
- OleDbCommandBuilder.cs
- sqlcontext.cs
- PrintEvent.cs
- AbsoluteQuery.cs
- VirtualDirectoryMapping.cs
- OutArgumentConverter.cs
- DataObjectPastingEventArgs.cs
- _IPv4Address.cs
- Asn1IntegerConverter.cs
- GenerateScriptTypeAttribute.cs
- SqlCacheDependencyDatabase.cs
- Timer.cs
- XmlSchemaSimpleTypeUnion.cs
- SelectionRangeConverter.cs
- StandardRuntimeEnumValidator.cs
- XmlWriterSettings.cs
- validation.cs
- AvTrace.cs
- ClientScriptManagerWrapper.cs
- TransportBindingElement.cs
- CheckBoxDesigner.cs
- PeerToPeerException.cs
- AbstractExpressions.cs
- ChildChangedEventArgs.cs
- Line.cs
- FileDialog.cs
- Permission.cs
- IdentityNotMappedException.cs
- ListChangedEventArgs.cs
- ActiveXMessageFormatter.cs
- SQLByte.cs
- DataKeyCollection.cs
- Buffer.cs
- SystemIPGlobalProperties.cs
- DependencyObjectPropertyDescriptor.cs
- DecimalKeyFrameCollection.cs
- TransformerTypeCollection.cs
- BuilderInfo.cs
- WorkingDirectoryEditor.cs
- WebPartTracker.cs
- WebPartEventArgs.cs
- BinaryMessageFormatter.cs
- Deflater.cs
- SecondaryViewProvider.cs
- DeferredRunTextReference.cs
- sqlpipe.cs
- WindowInteractionStateTracker.cs
- TextParentUndoUnit.cs
- InputMethod.cs
- ToolStripStatusLabel.cs
- XPathSelfQuery.cs
- Line.cs
- ImageCodecInfo.cs
- EditorResources.cs
- FtpWebResponse.cs
- XmlSerializerSection.cs
- WindowsMenu.cs
- SafeWaitHandle.cs
- SafeEventHandle.cs
- CreateUserWizard.cs
- EventNotify.cs
- SqlDelegatedTransaction.cs
- DesignerActionUIStateChangeEventArgs.cs