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
- DateTimeFormat.cs
- HandlerWithFactory.cs
- ResourceProperty.cs
- ServiceXNameTypeConverter.cs
- GridSplitter.cs
- XmlStreamedByteStreamReader.cs
- UInt32Converter.cs
- BamlStream.cs
- SByte.cs
- TagElement.cs
- WindowsImpersonationContext.cs
- DeviceContexts.cs
- PrintController.cs
- EventToken.cs
- WindowsListViewScroll.cs
- InlineObject.cs
- ObjectListCommandEventArgs.cs
- IteratorDescriptor.cs
- BufferModesCollection.cs
- Region.cs
- SymDocumentType.cs
- ContourSegment.cs
- UIElement3D.cs
- CapacityStreamGeometryContext.cs
- X509CertificateCollection.cs
- ConfigurationValues.cs
- DataGridViewColumnHeaderCell.cs
- ObjectDataSourceStatusEventArgs.cs
- AsyncDataRequest.cs
- SelectedDatesCollection.cs
- PersonalizationProvider.cs
- DataGridPagingPage.cs
- OrCondition.cs
- IPeerNeighbor.cs
- ThaiBuddhistCalendar.cs
- DataTableTypeConverter.cs
- ExclusiveCanonicalizationTransform.cs
- TdsParserStateObject.cs
- LogicalExpr.cs
- HtmlInputReset.cs
- FileDialogCustomPlace.cs
- DeobfuscatingStream.cs
- BuildProviderCollection.cs
- XmlArrayItemAttribute.cs
- Serializer.cs
- ImportCatalogPart.cs
- SqlCommandBuilder.cs
- DropShadowEffect.cs
- DetailsViewRowCollection.cs
- FunctionImportElement.cs
- SHA256.cs
- CompilerState.cs
- TokenCreationException.cs
- StubHelpers.cs
- CustomAttribute.cs
- NamespaceDisplay.xaml.cs
- CorrelationHandle.cs
- XmlSchemaSimpleContent.cs
- ContainerSelectorActiveEvent.cs
- CredentialCache.cs
- TypedColumnHandler.cs
- BinaryNode.cs
- DataGridViewRowStateChangedEventArgs.cs
- Timer.cs
- ExtendedTransformFactory.cs
- TagPrefixAttribute.cs
- XmlAttribute.cs
- IsolatedStorageFileStream.cs
- DetailsViewCommandEventArgs.cs
- ErrorHandler.cs
- ColumnResult.cs
- PassportAuthenticationEventArgs.cs
- XmlDataSourceDesigner.cs
- CompilerResults.cs
- ScriptServiceAttribute.cs
- SamlSubjectStatement.cs
- QuaternionRotation3D.cs
- PopupRootAutomationPeer.cs
- BmpBitmapDecoder.cs
- DataGridViewCellFormattingEventArgs.cs
- ToolStripSystemRenderer.cs
- LicFileLicenseProvider.cs
- LinkConverter.cs
- XmlArrayItemAttributes.cs
- XmlElementElementCollection.cs
- IProvider.cs
- DbConnectionInternal.cs
- BamlWriter.cs
- InstanceDescriptor.cs
- AndCondition.cs
- tooltip.cs
- MULTI_QI.cs
- SelectionProcessor.cs
- ISFTagAndGuidCache.cs
- Base64Stream.cs
- XmlSerializableServices.cs
- OptimalBreakSession.cs
- EntityContainer.cs
- XmlComment.cs
- RootProfilePropertySettingsCollection.cs