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
- TypeToArgumentTypeConverter.cs
- CompoundFileDeflateTransform.cs
- ECDiffieHellmanCngPublicKey.cs
- FileAuthorizationModule.cs
- StrongNameUtility.cs
- AttributeUsageAttribute.cs
- DateTimeConverter.cs
- DoubleLinkListEnumerator.cs
- RelationshipManager.cs
- Literal.cs
- ScriptManagerProxy.cs
- DbDataAdapter.cs
- DecodeHelper.cs
- ThemeableAttribute.cs
- InkCanvasFeedbackAdorner.cs
- MethodExpression.cs
- AnnotationResourceCollection.cs
- Transform3DGroup.cs
- MediaCommands.cs
- CultureTableRecord.cs
- Vector3dCollection.cs
- SmtpDigestAuthenticationModule.cs
- ValidatedControlConverter.cs
- ManagementObjectCollection.cs
- HttpModule.cs
- PresentationTraceSources.cs
- xamlnodes.cs
- XmlDataLoader.cs
- ObjectAssociationEndMapping.cs
- TileBrush.cs
- XLinq.cs
- StorageInfo.cs
- BaseCollection.cs
- WebRequestModulesSection.cs
- SelectionBorderGlyph.cs
- CopyCodeAction.cs
- ControlCollection.cs
- InheritedPropertyChangedEventArgs.cs
- ResizeGrip.cs
- CompositeDataBoundControl.cs
- AuthorizationBehavior.cs
- GotoExpression.cs
- SamlAuthenticationClaimResource.cs
- HighlightVisual.cs
- XmlSchemaExporter.cs
- UiaCoreProviderApi.cs
- JoinQueryOperator.cs
- DocumentStatusResources.cs
- WebEventTraceProvider.cs
- OutOfMemoryException.cs
- XmlHelper.cs
- COMException.cs
- ModuleBuilder.cs
- TraceShell.cs
- NotFiniteNumberException.cs
- ClientFormsIdentity.cs
- PropertyOverridesTypeEditor.cs
- RootDesignerSerializerAttribute.cs
- CompModSwitches.cs
- TypePropertyEditor.cs
- XamlWriter.cs
- TypeDelegator.cs
- Cursor.cs
- PerfCounters.cs
- WebPartConnectionsDisconnectVerb.cs
- Bits.cs
- ColumnMapVisitor.cs
- EntryWrittenEventArgs.cs
- Rule.cs
- WindowsIPAddress.cs
- HtmlInputButton.cs
- WebPartEditVerb.cs
- HtmlImage.cs
- Context.cs
- MeshGeometry3D.cs
- AtomServiceDocumentSerializer.cs
- FixedHyperLink.cs
- CancelEventArgs.cs
- Roles.cs
- KnownColorTable.cs
- ConstantCheck.cs
- CommandExpr.cs
- DataStreamFromComStream.cs
- SelectingProviderEventArgs.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- LinqDataSourceView.cs
- PropertyChangedEventArgs.cs
- KeyedHashAlgorithm.cs
- WsdlBuildProvider.cs
- FontCacheLogic.cs
- TextOutput.cs
- InstanceLockQueryResult.cs
- Query.cs
- DateTimeOffsetConverter.cs
- LicenseException.cs
- _CookieModule.cs
- UpDownEvent.cs
- ScriptControlDescriptor.cs
- DataRowCollection.cs
- SafeThreadHandle.cs