Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / InstanceCreationEditor.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextFormatterImp.cs
- _DisconnectOverlappedAsyncResult.cs
- GridItemPattern.cs
- UIElementParaClient.cs
- ImmutableObjectAttribute.cs
- Int16Animation.cs
- GPPOINTF.cs
- XmlDeclaration.cs
- ClientBuildManagerCallback.cs
- Int32Collection.cs
- CharStorage.cs
- TemplateControlCodeDomTreeGenerator.cs
- ColumnPropertiesGroup.cs
- CallbackHandler.cs
- NoneExcludedImageIndexConverter.cs
- WebProxyScriptElement.cs
- WsdlHelpGeneratorElement.cs
- DrawingImage.cs
- SaveFileDialogDesigner.cs
- ContractReference.cs
- ProfileManager.cs
- Evidence.cs
- DBDataPermissionAttribute.cs
- GridViewRowEventArgs.cs
- AbandonedMutexException.cs
- KeySpline.cs
- GeneralTransform3DGroup.cs
- StringExpressionSet.cs
- RenderData.cs
- ADMembershipProvider.cs
- BatchStream.cs
- SignalGate.cs
- CatalogPart.cs
- DecimalAverageAggregationOperator.cs
- AttributedMetaModel.cs
- VisualStyleInformation.cs
- HttpTransportElement.cs
- SizeAnimationUsingKeyFrames.cs
- ChangePassword.cs
- UnknownWrapper.cs
- AttributeUsageAttribute.cs
- PageThemeParser.cs
- XmlValidatingReaderImpl.cs
- TypeDescriptionProviderAttribute.cs
- Vector3DCollection.cs
- TextEditorTyping.cs
- ImportContext.cs
- MenuItemBindingCollection.cs
- WebZoneDesigner.cs
- HtmlPhoneCallAdapter.cs
- EpmHelper.cs
- TextEditorTyping.cs
- QilReplaceVisitor.cs
- ZoomPercentageConverter.cs
- WindowsGraphicsWrapper.cs
- HandledEventArgs.cs
- X509CertificateRecipientServiceCredential.cs
- EntityDescriptor.cs
- IPAddressCollection.cs
- Base64WriteStateInfo.cs
- CacheDependency.cs
- AttachmentService.cs
- InputDevice.cs
- TextCollapsingProperties.cs
- TypedMessageConverter.cs
- CorePropertiesFilter.cs
- PropertyDescriptorCollection.cs
- WizardPanel.cs
- ResourceDictionaryCollection.cs
- RoleManagerModule.cs
- ThreadStateException.cs
- Signature.cs
- HttpContextBase.cs
- keycontainerpermission.cs
- StructuredTypeInfo.cs
- CatalogZoneBase.cs
- ProgressPage.cs
- GenericParameterDataContract.cs
- FieldBuilder.cs
- SubMenuStyleCollection.cs
- DSASignatureFormatter.cs
- SafeThreadHandle.cs
- AuthenticationConfig.cs
- DataGridViewCheckBoxColumn.cs
- ParserExtension.cs
- XmlElementElementCollection.cs
- MissingMemberException.cs
- Int32RectConverter.cs
- XmlILIndex.cs
- ExpressionBindingCollection.cs
- SizeF.cs
- InvalidCommandTreeException.cs
- SessionParameter.cs
- DeclaredTypeValidatorAttribute.cs
- ElementHost.cs
- WindowsPen.cs
- FileSystemWatcher.cs
- documentsequencetextcontainer.cs
- TrackingProfile.cs
- ColumnTypeConverter.cs