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
- TokenCreationException.cs
- ActivityCodeDomSerializationManager.cs
- ipaddressinformationcollection.cs
- DataMemberConverter.cs
- DataColumn.cs
- PolicyManager.cs
- XPathNavigator.cs
- ZoneLinkButton.cs
- RotateTransform3D.cs
- StringOutput.cs
- GeometryGroup.cs
- PropertyValue.cs
- XsltLibrary.cs
- XPathSelectionIterator.cs
- ListSurrogate.cs
- XmlSerializerNamespaces.cs
- BlobPersonalizationState.cs
- HyperLinkStyle.cs
- categoryentry.cs
- EditorZone.cs
- HandleRef.cs
- WorkflowRuntimeElement.cs
- DataColumnMappingCollection.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ElementUtil.cs
- CheckBox.cs
- CheckBoxStandardAdapter.cs
- Stack.cs
- RijndaelCryptoServiceProvider.cs
- PostBackTrigger.cs
- EntityDataSourceDataSelection.cs
- XmlSchemaProviderAttribute.cs
- OletxTransactionFormatter.cs
- IriParsingElement.cs
- SafeThreadHandle.cs
- ExpressionBuilder.cs
- ThousandthOfEmRealDoubles.cs
- mediaeventshelper.cs
- GraphicsPathIterator.cs
- LiteralTextParser.cs
- FixedLineResult.cs
- BoundConstants.cs
- RemotingConfiguration.cs
- COM2PropertyDescriptor.cs
- TemplatePropertyEntry.cs
- HtmlUtf8RawTextWriter.cs
- FrameworkElementAutomationPeer.cs
- ListBox.cs
- MessagePartDescription.cs
- CapabilitiesState.cs
- ItemsPanelTemplate.cs
- CapabilitiesRule.cs
- AutoResetEvent.cs
- ByteAnimationBase.cs
- LOSFormatter.cs
- ToolStripItemTextRenderEventArgs.cs
- InitializerFacet.cs
- ExpressionContext.cs
- EncodingInfo.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- StringUtil.cs
- ToolStripSplitButton.cs
- SiteMapNodeItem.cs
- MediaTimeline.cs
- ThicknessAnimationBase.cs
- FileRecordSequenceHelper.cs
- PngBitmapDecoder.cs
- SchemaInfo.cs
- Permission.cs
- HtmlElementErrorEventArgs.cs
- HttpConfigurationSystem.cs
- SessionPageStateSection.cs
- OdbcParameterCollection.cs
- LOSFormatter.cs
- OutOfProcStateClientManager.cs
- PageThemeCodeDomTreeGenerator.cs
- InputReferenceExpression.cs
- FontDifferentiator.cs
- ReliableReplySessionChannel.cs
- ManagementObject.cs
- Tokenizer.cs
- HttpRawResponse.cs
- EndpointReference.cs
- EllipseGeometry.cs
- OpenFileDialog.cs
- HttpCapabilitiesEvaluator.cs
- PrintPreviewGraphics.cs
- TextTreeTextNode.cs
- GlobalizationAssembly.cs
- GeneratedCodeAttribute.cs
- ActivityDesignerLayoutSerializers.cs
- DebugView.cs
- PathFigure.cs
- ColorConvertedBitmap.cs
- SqlProcedureAttribute.cs
- Triplet.cs
- EtwTrace.cs
- QuaternionAnimationBase.cs
- WebPartCollection.cs
- PageRequestManager.cs