Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SqlClientFactory.cs
- SerializationObjectManager.cs
- ObjectDataSourceDisposingEventArgs.cs
- ColorConvertedBitmapExtension.cs
- BitmapCodecInfo.cs
- HeaderedContentControl.cs
- WindowsToolbarAsMenu.cs
- SmtpNtlmAuthenticationModule.cs
- WsatProxy.cs
- MetadataArtifactLoaderComposite.cs
- InputLanguageEventArgs.cs
- FormatConvertedBitmap.cs
- Perspective.cs
- StyleXamlParser.cs
- StreamReader.cs
- Variant.cs
- LockedAssemblyCache.cs
- HMACMD5.cs
- InstancePersistenceContext.cs
- PanelDesigner.cs
- BrowserCapabilitiesCodeGenerator.cs
- LinkUtilities.cs
- DynamicEndpointElement.cs
- Popup.cs
- TextRunTypographyProperties.cs
- SelectionHighlightInfo.cs
- ConnectionPoint.cs
- HtmlElement.cs
- MD5.cs
- DocumentViewerConstants.cs
- DPAPIProtectedConfigurationProvider.cs
- TemplatingOptionsDialog.cs
- SqlTypesSchemaImporter.cs
- TypeForwardedToAttribute.cs
- TypedColumnHandler.cs
- ImageCodecInfo.cs
- Filter.cs
- RepeatButton.cs
- NotifyInputEventArgs.cs
- SqlDependencyListener.cs
- MissingMethodException.cs
- XslCompiledTransform.cs
- CustomAttribute.cs
- CatalogPartChrome.cs
- SecurityDescriptor.cs
- ProfileGroupSettings.cs
- TraceHandler.cs
- TemplateApplicationHelper.cs
- SHA1.cs
- CollectionViewGroup.cs
- ElementFactory.cs
- Aes.cs
- SubMenuStyle.cs
- SendActivityEventArgs.cs
- WindowsTooltip.cs
- ViewPort3D.cs
- SpecularMaterial.cs
- DocumentViewerBaseAutomationPeer.cs
- CheckBoxAutomationPeer.cs
- CompilerTypeWithParams.cs
- Lease.cs
- WindowsGraphics2.cs
- ClientSettingsSection.cs
- UnsafeNativeMethods.cs
- GeometryCombineModeValidation.cs
- AssemblyCollection.cs
- ImageCodecInfoPrivate.cs
- AddInDeploymentState.cs
- BaseCodeDomTreeGenerator.cs
- BuilderPropertyEntry.cs
- Merger.cs
- PolyLineSegment.cs
- SmiContextFactory.cs
- MetadataPropertyvalue.cs
- X509Certificate2.cs
- ProgressBarRenderer.cs
- MediaContext.cs
- FixedSOMTable.cs
- BooleanExpr.cs
- FileUpload.cs
- TextRange.cs
- CodeAttributeDeclarationCollection.cs
- EnumConverter.cs
- Zone.cs
- FilteredAttributeCollection.cs
- OleDbConnectionInternal.cs
- IndicShape.cs
- UnsafeNativeMethods.cs
- ListViewItem.cs
- DotAtomReader.cs
- VBIdentifierDesigner.xaml.cs
- ApplicationDirectory.cs
- QilExpression.cs
- RowSpanVector.cs
- CustomErrorsSection.cs
- PropertyGrid.cs
- DynamicDataExtensions.cs
- FilteredDataSetHelper.cs
- Matrix3D.cs
- RuleSettings.cs