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
- IItemContainerGenerator.cs
- TypefaceMap.cs
- SqlWebEventProvider.cs
- ExtendedPropertyDescriptor.cs
- ConfigXmlElement.cs
- EncryptedPackage.cs
- BoundColumn.cs
- Line.cs
- XmlSchema.cs
- CompoundFileDeflateTransform.cs
- FixedSOMPage.cs
- Stack.cs
- UrlMappingsSection.cs
- ActivationProxy.cs
- Completion.cs
- FontNamesConverter.cs
- StateManagedCollection.cs
- ThaiBuddhistCalendar.cs
- WhitespaceRuleLookup.cs
- ValueSerializerAttribute.cs
- ArcSegment.cs
- IUnknownConstantAttribute.cs
- EventMap.cs
- PageThemeParser.cs
- ApplicationInfo.cs
- DocumentApplicationJournalEntry.cs
- NamespaceList.cs
- SystemSounds.cs
- ToolStripItemCollection.cs
- QuaternionValueSerializer.cs
- ClientScriptItemCollection.cs
- DataTableTypeConverter.cs
- WorkflowRuntime.cs
- SchemeSettingElementCollection.cs
- PropertyGrid.cs
- Span.cs
- BulletChrome.cs
- TextWriter.cs
- JournalNavigationScope.cs
- basemetadatamappingvisitor.cs
- NativeMethods.cs
- ClientRuntimeConfig.cs
- ToolStripContentPanelRenderEventArgs.cs
- Directory.cs
- WorkflowRuntimeServiceElement.cs
- XsltArgumentList.cs
- DBSchemaTable.cs
- PageAction.cs
- TransformValueSerializer.cs
- ApplicationInfo.cs
- XmlToDatasetMap.cs
- DesignTimeParseData.cs
- ContentDisposition.cs
- TraceContextRecord.cs
- ProfileBuildProvider.cs
- HostingEnvironment.cs
- AddInBase.cs
- unitconverter.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- EventBuilder.cs
- FontFamilyConverter.cs
- InputProviderSite.cs
- LayoutInformation.cs
- AccessKeyManager.cs
- EmissiveMaterial.cs
- SelectionEditingBehavior.cs
- XmlQueryType.cs
- KeyManager.cs
- IdentityHolder.cs
- MinimizableAttributeTypeConverter.cs
- CriticalFinalizerObject.cs
- DispatcherExceptionFilterEventArgs.cs
- CollectionType.cs
- XmlSchemaException.cs
- ItemsChangedEventArgs.cs
- Atom10FormatterFactory.cs
- SQLDecimalStorage.cs
- ServiceControllerDesigner.cs
- Emitter.cs
- DataGridViewCellFormattingEventArgs.cs
- PrinterUnitConvert.cs
- DefaultValueConverter.cs
- SmiConnection.cs
- ProjectionQueryOptionExpression.cs
- WebUtil.cs
- SystemSounds.cs
- HScrollBar.cs
- ButtonDesigner.cs
- PathParser.cs
- PathStreamGeometryContext.cs
- InkCanvasAutomationPeer.cs
- ElementHostAutomationPeer.cs
- TripleDES.cs
- DataGridViewRowPrePaintEventArgs.cs
- NameScopePropertyAttribute.cs
- ReflectionPermission.cs
- DataRowChangeEvent.cs
- RecordConverter.cs
- FieldBuilder.cs
- WizardStepBase.cs