Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DbExpressionVisitor.cs
- EntityDataSource.cs
- FigureParagraph.cs
- ThreadExceptionEvent.cs
- SafeArrayTypeMismatchException.cs
- GridViewRowEventArgs.cs
- BulletChrome.cs
- QilNode.cs
- OutputCacheProfileCollection.cs
- DockPattern.cs
- SpellerStatusTable.cs
- DesignerSelectionListAdapter.cs
- DSASignatureDeformatter.cs
- OutputWindow.cs
- TreeViewImageKeyConverter.cs
- XPathBinder.cs
- HashCodeCombiner.cs
- DoubleCollectionConverter.cs
- RenderDataDrawingContext.cs
- TextParagraph.cs
- GcHandle.cs
- DefaultPropertyAttribute.cs
- XPathSelfQuery.cs
- ButtonBaseAutomationPeer.cs
- XmlSortKeyAccumulator.cs
- PostBackTrigger.cs
- ToolStripSystemRenderer.cs
- MarshalByValueComponent.cs
- XmlIncludeAttribute.cs
- CommandManager.cs
- FusionWrap.cs
- UrlPath.cs
- ReadOnlyObservableCollection.cs
- SafeCertificateStore.cs
- SystemFonts.cs
- CodeAttributeArgument.cs
- FixedSOMElement.cs
- ExtendedPropertyCollection.cs
- Avt.cs
- XPathPatternParser.cs
- OleDbRowUpdatedEvent.cs
- TranslateTransform.cs
- PointHitTestParameters.cs
- ShapeTypeface.cs
- SelectiveScrollingGrid.cs
- XamlReader.cs
- ProcessHost.cs
- HandlerFactoryWrapper.cs
- recordstate.cs
- DataGridSortCommandEventArgs.cs
- EntityDataSourceWrapperCollection.cs
- SettingsAttributes.cs
- XmlChoiceIdentifierAttribute.cs
- SafeArrayRankMismatchException.cs
- KeyValuePair.cs
- WsrmFault.cs
- BitmapCodecInfoInternal.cs
- DBBindings.cs
- LineUtil.cs
- WindowsGraphicsWrapper.cs
- MethodRental.cs
- FontFamily.cs
- SAPIEngineTypes.cs
- AsymmetricSignatureFormatter.cs
- RegisteredExpandoAttribute.cs
- AesCryptoServiceProvider.cs
- WindowsSlider.cs
- FileFormatException.cs
- ProgressPage.cs
- ToolboxItemWrapper.cs
- SchemaSetCompiler.cs
- XmlDocument.cs
- HwndSourceParameters.cs
- UrlPath.cs
- RelationshipDetailsCollection.cs
- PrivilegeNotHeldException.cs
- control.ime.cs
- StorageAssociationTypeMapping.cs
- DefinitionBase.cs
- TypeDescriptorFilterService.cs
- ReferentialConstraint.cs
- Grant.cs
- FloatUtil.cs
- BrowserCapabilitiesCodeGenerator.cs
- DataTableExtensions.cs
- OleDbFactory.cs
- UserControl.cs
- EntityDataSourceDesignerHelper.cs
- HelpOperationInvoker.cs
- Point3DConverter.cs
- ImpersonateTokenRef.cs
- DocobjHost.cs
- DataGridViewLinkCell.cs
- IOException.cs
- SlipBehavior.cs
- HistoryEventArgs.cs
- TrackBarDesigner.cs
- LoginAutoFormat.cs
- MessagePropertyAttribute.cs
- FormConverter.cs