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
- BatchStream.cs
- SerTrace.cs
- ResizeGrip.cs
- AuthenticatedStream.cs
- WindowsSecurityTokenAuthenticator.cs
- BuildResultCache.cs
- SimpleHandlerFactory.cs
- Version.cs
- RecognizerStateChangedEventArgs.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- NetNamedPipeSecurity.cs
- QilName.cs
- LineGeometry.cs
- CodeRegionDirective.cs
- DesignerForm.cs
- RoutingTable.cs
- NaturalLanguageHyphenator.cs
- DataGridPageChangedEventArgs.cs
- ViewLoader.cs
- XmlWriter.cs
- GetWorkflowTree.cs
- SecurityContext.cs
- DataGridViewMethods.cs
- XmlObjectSerializerWriteContext.cs
- RenderCapability.cs
- HeaderedItemsControl.cs
- SessionStateItemCollection.cs
- MetadataSerializer.cs
- CompModSwitches.cs
- ProviderUtil.cs
- URLIdentityPermission.cs
- RegexMatch.cs
- xdrvalidator.cs
- RelationshipEndMember.cs
- FolderBrowserDialog.cs
- TextEmbeddedObject.cs
- PageRequestManager.cs
- Sql8ExpressionRewriter.cs
- DataServiceHostFactory.cs
- RenamedEventArgs.cs
- Bold.cs
- ArrayTypeMismatchException.cs
- PrtCap_Reader.cs
- ResumeStoryboard.cs
- ExpressionNormalizer.cs
- MarkupCompilePass2.cs
- HtmlInputButton.cs
- WorkflowQueuingService.cs
- ConstrainedDataObject.cs
- GridViewUpdateEventArgs.cs
- Utils.cs
- SAPIEngineTypes.cs
- AssemblyContextControlItem.cs
- NativeMethods.cs
- UserControlCodeDomTreeGenerator.cs
- PerformanceCounterCategory.cs
- LinqDataSourceValidationException.cs
- VisualCollection.cs
- CodeAttributeArgumentCollection.cs
- DataTrigger.cs
- StopStoryboard.cs
- TemplateInstanceAttribute.cs
- ReadOnlyDataSource.cs
- DataSourceXmlSerializationAttribute.cs
- CompositeScriptReference.cs
- XmlUnspecifiedAttribute.cs
- CTreeGenerator.cs
- ChildrenQuery.cs
- SqlFormatter.cs
- QuadTree.cs
- EdmToObjectNamespaceMap.cs
- SharedStatics.cs
- SR.cs
- FormViewModeEventArgs.cs
- ResourceAttributes.cs
- Panel.cs
- NumberSubstitution.cs
- Expression.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- IxmlLineInfo.cs
- BlobPersonalizationState.cs
- ScalarOps.cs
- MethodImplAttribute.cs
- SearchForVirtualItemEventArgs.cs
- PropagatorResult.cs
- SqlCacheDependencySection.cs
- MemberMemberBinding.cs
- TextParagraphCache.cs
- ArraySortHelper.cs
- SelectiveScrollingGrid.cs
- SqlNotificationEventArgs.cs
- NumberFunctions.cs
- ExpressionBindingCollection.cs
- EntitySqlQueryCacheEntry.cs
- BlockingCollection.cs
- XmlNullResolver.cs
- DisplayInformation.cs
- SQLStringStorage.cs
- Exception.cs
- DesignerRegionMouseEventArgs.cs