Code:
/ FX-1434 / FX-1434 / 1.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
- ExpressionVisitor.cs
- ListView.cs
- ContactManager.cs
- LayoutEditorPart.cs
- EditCommandColumn.cs
- OrderedDictionaryStateHelper.cs
- LoginStatusDesigner.cs
- ReceiveSecurityHeaderEntry.cs
- WebBrowserBase.cs
- EdmSchemaAttribute.cs
- XmlDictionary.cs
- SiteOfOriginPart.cs
- XsdBuilder.cs
- ChannelDemuxer.cs
- StatusBarPanel.cs
- PolicyChain.cs
- ZipIOModeEnforcingStream.cs
- SecurityTokenAuthenticator.cs
- Utils.cs
- WaitHandle.cs
- HeaderedContentControl.cs
- VsPropertyGrid.cs
- SystemResourceHost.cs
- Misc.cs
- DbSource.cs
- ScrollContentPresenter.cs
- CapabilitiesState.cs
- ImmutableObjectAttribute.cs
- ImageSource.cs
- DiscoveryExceptionDictionary.cs
- TransformCollection.cs
- SystemIPv4InterfaceProperties.cs
- NamespaceEmitter.cs
- SpecularMaterial.cs
- PassportAuthentication.cs
- WebPartDisplayModeCancelEventArgs.cs
- FocusManager.cs
- TextRenderer.cs
- ProfileServiceManager.cs
- URLAttribute.cs
- TransformationRules.cs
- WsatTransactionFormatter.cs
- Directory.cs
- XmlValidatingReader.cs
- FixUp.cs
- BaseAppDomainProtocolHandler.cs
- DesignerVerb.cs
- BitmapEffectInputConnector.cs
- ObjectDataSourceSelectingEventArgs.cs
- CloudCollection.cs
- CommonDialog.cs
- MemberMaps.cs
- ValidatorCollection.cs
- _emptywebproxy.cs
- MarshalByRefObject.cs
- MessageSmuggler.cs
- CodeVariableDeclarationStatement.cs
- SettingsPropertyValue.cs
- EventManager.cs
- TagPrefixCollection.cs
- DataGridCaption.cs
- LifetimeManager.cs
- DocumentAutomationPeer.cs
- BackgroundFormatInfo.cs
- NotifyIcon.cs
- DrawingAttributeSerializer.cs
- DBConnection.cs
- XmlCompatibilityReader.cs
- StretchValidation.cs
- Lock.cs
- LinearGradientBrush.cs
- ImageField.cs
- ListParagraph.cs
- BitmapEffectGroup.cs
- KoreanCalendar.cs
- WebPartConnectionsDisconnectVerb.cs
- ListenerAdaptersInstallComponent.cs
- ConfigurationValidatorAttribute.cs
- TagPrefixInfo.cs
- CompilerScopeManager.cs
- CustomMenuItemCollection.cs
- ConstructorNeedsTagAttribute.cs
- Lease.cs
- Environment.cs
- BaseCodePageEncoding.cs
- TreeWalker.cs
- SQLGuid.cs
- ResolveCompletedEventArgs.cs
- DataControlPagerLinkButton.cs
- _UriTypeConverter.cs
- StaticDataManager.cs
- KeyGestureConverter.cs
- Rules.cs
- ItemsChangedEventArgs.cs
- DataObject.cs
- LayoutTable.cs
- TextBreakpoint.cs
- FunctionMappingTranslator.cs
- InputLangChangeEvent.cs
- AssemblyResourceLoader.cs