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
- WriteableOnDemandPackagePart.cs
- ClassHandlersStore.cs
- XsltContext.cs
- SetMemberBinder.cs
- CompressEmulationStream.cs
- oledbconnectionstring.cs
- SynchronizedPool.cs
- SuppressMergeCheckAttribute.cs
- DeclaredTypeValidator.cs
- backend.cs
- DisplayMemberTemplateSelector.cs
- StreamingContext.cs
- SnapshotChangeTrackingStrategy.cs
- TrustSection.cs
- DataGridViewAdvancedBorderStyle.cs
- AllMembershipCondition.cs
- RC2.cs
- SharedPerformanceCounter.cs
- BamlLocalizableResourceKey.cs
- ItemAutomationPeer.cs
- ProgressBarBrushConverter.cs
- ByteFacetDescriptionElement.cs
- MatrixTransform3D.cs
- XmlTextAttribute.cs
- SimpleLine.cs
- ConvertersCollection.cs
- ValidationEventArgs.cs
- ForceCopyBuildProvider.cs
- smtppermission.cs
- TransportSecurityBindingElement.cs
- UriScheme.cs
- ImageDesigner.cs
- HtmlInputImage.cs
- Thickness.cs
- CTreeGenerator.cs
- AppDomainProtocolHandler.cs
- Evaluator.cs
- QueryCacheEntry.cs
- BulletDecorator.cs
- followingquery.cs
- BinaryNode.cs
- GrammarBuilderBase.cs
- TransformedBitmap.cs
- DataSysAttribute.cs
- ResumeStoryboard.cs
- AssemblyInfo.cs
- ToolTip.cs
- Int16Storage.cs
- VirtualDirectoryMapping.cs
- AddressingProperty.cs
- XmlQueryType.cs
- FlowDocument.cs
- HtmlElementCollection.cs
- SymmetricSecurityProtocol.cs
- BorderGapMaskConverter.cs
- WebCategoryAttribute.cs
- ProtocolsSection.cs
- AxDesigner.cs
- odbcmetadatacollectionnames.cs
- UserNamePasswordValidator.cs
- PackageProperties.cs
- CorrelationActionMessageFilter.cs
- ToolStripDropDown.cs
- ActivityInstanceReference.cs
- LinearGradientBrush.cs
- SpellerHighlightLayer.cs
- Matrix.cs
- HandledMouseEvent.cs
- XmlAttributeOverrides.cs
- CookieProtection.cs
- EntityModelSchemaGenerator.cs
- CursorConverter.cs
- SeekStoryboard.cs
- TableItemPatternIdentifiers.cs
- cookie.cs
- AliasExpr.cs
- PageWrapper.cs
- Int16AnimationBase.cs
- WebService.cs
- WasEndpointConfigContainer.cs
- TreeNodeStyleCollection.cs
- RotateTransform3D.cs
- InputChannelAcceptor.cs
- SemanticResolver.cs
- ExpressionWriter.cs
- FreezableCollection.cs
- ScrollChangedEventArgs.cs
- Parameter.cs
- DirectoryObjectSecurity.cs
- QuaternionAnimation.cs
- CaseInsensitiveOrdinalStringComparer.cs
- StorageEndPropertyMapping.cs
- HttpProfileGroupBase.cs
- DynamicPropertyReader.cs
- Span.cs
- HtmlTableRowCollection.cs
- WebDescriptionAttribute.cs
- SQLRoleProvider.cs
- DockingAttribute.cs
- SamlAuthorityBinding.cs