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
- WebServiceMethodData.cs
- NavigationProperty.cs
- TextServicesDisplayAttribute.cs
- BindingMemberInfo.cs
- AnimationTimeline.cs
- ResolveMatches11.cs
- printdlgexmarshaler.cs
- SupportingTokenListenerFactory.cs
- IMembershipProvider.cs
- SmtpAuthenticationManager.cs
- ClientRuntimeConfig.cs
- ResourceCodeDomSerializer.cs
- MetricEntry.cs
- HashMembershipCondition.cs
- BooleanStorage.cs
- XmlSchemaAll.cs
- TdsEnums.cs
- AlignmentXValidation.cs
- Visitors.cs
- QueryStringParameter.cs
- DecoderBestFitFallback.cs
- AliasGenerator.cs
- MetadataPropertyCollection.cs
- DesignerObject.cs
- SerializationException.cs
- XmlDataProvider.cs
- PanelStyle.cs
- OLEDB_Util.cs
- Duration.cs
- PersonalizableAttribute.cs
- MenuItemCollection.cs
- HwndAppCommandInputProvider.cs
- PropertyDescriptorCollection.cs
- DoubleConverter.cs
- DispatchRuntime.cs
- WindowsButton.cs
- ObjectHandle.cs
- DateTimeConstantAttribute.cs
- LookupBindingPropertiesAttribute.cs
- EtwTrace.cs
- DocumentReferenceCollection.cs
- HijriCalendar.cs
- IndexOutOfRangeException.cs
- AsyncOperationContext.cs
- DataListItem.cs
- TemplatingOptionsDialog.cs
- DecoderNLS.cs
- DataGridSortCommandEventArgs.cs
- WindowCollection.cs
- DataTableMappingCollection.cs
- SimpleMailWebEventProvider.cs
- OdbcHandle.cs
- DoubleAnimationBase.cs
- RenameRuleObjectDialog.Designer.cs
- SqlException.cs
- HashSetEqualityComparer.cs
- WebPartVerb.cs
- InstanceData.cs
- GeometryGroup.cs
- SynchronizingStream.cs
- lengthconverter.cs
- GetPageNumberCompletedEventArgs.cs
- securitycriticaldata.cs
- WindowsGraphics.cs
- CheckBoxStandardAdapter.cs
- DataBindEngine.cs
- UntrustedRecipientException.cs
- SvcMapFileSerializer.cs
- ColorConvertedBitmapExtension.cs
- ViewSimplifier.cs
- MailAddress.cs
- FileVersionInfo.cs
- QilReplaceVisitor.cs
- XmlTextReaderImpl.cs
- AsyncOperation.cs
- OdbcConnection.cs
- AsyncResult.cs
- DocumentPageHost.cs
- AccessorTable.cs
- DefaultSection.cs
- Tile.cs
- TextRange.cs
- SQLResource.cs
- StorageEntityTypeMapping.cs
- ResourceDisplayNameAttribute.cs
- RayMeshGeometry3DHitTestResult.cs
- DataGridViewIntLinkedList.cs
- ContainerParagraph.cs
- LateBoundBitmapDecoder.cs
- CodeAccessSecurityEngine.cs
- EventItfInfo.cs
- CompilerState.cs
- RSAProtectedConfigurationProvider.cs
- QueryCacheManager.cs
- InvalidEnumArgumentException.cs
- MessageLogger.cs
- FixedLineResult.cs
- ReflectPropertyDescriptor.cs
- SiteMembershipCondition.cs
- FolderLevelBuildProvider.cs