Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- XmlSchemaSubstitutionGroup.cs
- Privilege.cs
- CredentialCache.cs
- MenuBindingsEditorForm.cs
- HttpPostedFile.cs
- AccessDataSource.cs
- MethodRental.cs
- GcSettings.cs
- ColorDialog.cs
- PublishLicense.cs
- SinglePhaseEnlistment.cs
- InfiniteTimeSpanConverter.cs
- BufferAllocator.cs
- FrameAutomationPeer.cs
- TextEffect.cs
- XmlSchemaParticle.cs
- DataGridColumnEventArgs.cs
- AutoSizeToolBoxItem.cs
- XmlBinaryReader.cs
- ArithmeticException.cs
- ActivityValidator.cs
- ToolStripRenderer.cs
- DataGridViewCellStyleChangedEventArgs.cs
- Input.cs
- PolicyException.cs
- _NegotiateClient.cs
- CodeNamespace.cs
- HtmlProps.cs
- EntityCommandDefinition.cs
- EntityKey.cs
- DispatcherHooks.cs
- DiscreteKeyFrames.cs
- ClientSettingsSection.cs
- WebEventTraceProvider.cs
- Policy.cs
- TraceSwitch.cs
- ToolStripItemTextRenderEventArgs.cs
- CallbackValidatorAttribute.cs
- ECDiffieHellman.cs
- ObjectToIdCache.cs
- DBCommand.cs
- RuntimeArgumentHandle.cs
- WebScriptClientGenerator.cs
- MetaData.cs
- TlsnegoTokenAuthenticator.cs
- ParameterInfo.cs
- OrderedDictionary.cs
- DbConnectionPoolCounters.cs
- ViewStateModeByIdAttribute.cs
- TextDpi.cs
- DtrList.cs
- _SSPIWrapper.cs
- StylusPoint.cs
- Section.cs
- IDispatchConstantAttribute.cs
- StringArrayConverter.cs
- XmlIterators.cs
- AnonymousIdentificationSection.cs
- CallbackDebugBehavior.cs
- UInt32.cs
- LinkedResourceCollection.cs
- coordinatorscratchpad.cs
- ListViewInsertionMark.cs
- DesignerSerializationOptionsAttribute.cs
- AsymmetricKeyExchangeFormatter.cs
- DynamicResourceExtensionConverter.cs
- MergeFailedEvent.cs
- SystemThemeKey.cs
- Selection.cs
- InstanceDescriptor.cs
- contentDescriptor.cs
- PerspectiveCamera.cs
- ExpressionConverter.cs
- AdRotator.cs
- XsltException.cs
- TextCompositionManager.cs
- Matrix.cs
- MissingMemberException.cs
- ColorAnimation.cs
- FontFamilyValueSerializer.cs
- ToolboxBitmapAttribute.cs
- SpellerStatusTable.cs
- GenericAuthenticationEventArgs.cs
- Compiler.cs
- DataGridItem.cs
- Main.cs
- EndpointAddressAugust2004.cs
- WebPartConnectVerb.cs
- ValueTypePropertyReference.cs
- OverflowException.cs
- DynamicPropertyReader.cs
- PageStatePersister.cs
- NoClickablePointException.cs
- HtmlTitle.cs
- WindowsTreeView.cs
- CompilerTypeWithParams.cs
- OracleTimeSpan.cs
- ProfilePropertySettingsCollection.cs
- wgx_exports.cs
- TextMetrics.cs