Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DataPagerFieldCommandEventArgs.cs
- LexicalChunk.cs
- SizeValueSerializer.cs
- ExtensionSimplifierMarkupObject.cs
- WeakRefEnumerator.cs
- MutexSecurity.cs
- HashCodeCombiner.cs
- PrivilegeNotHeldException.cs
- WaitForChangedResult.cs
- DataGridRow.cs
- HttpWebRequest.cs
- XslTransform.cs
- SqlOuterApplyReducer.cs
- MenuItem.cs
- WebPartCancelEventArgs.cs
- BinaryObjectReader.cs
- HttpCapabilitiesBase.cs
- StubHelpers.cs
- DictionaryChange.cs
- Trace.cs
- _AuthenticationState.cs
- TypeDescriptor.cs
- SqlCacheDependencyDatabaseCollection.cs
- BasicExpandProvider.cs
- HtmlInputFile.cs
- ISCIIEncoding.cs
- WebPartMinimizeVerb.cs
- Internal.cs
- LocalizationComments.cs
- BitStack.cs
- LinearQuaternionKeyFrame.cs
- Graph.cs
- DataGridViewCellValidatingEventArgs.cs
- PageCodeDomTreeGenerator.cs
- SettingsProperty.cs
- CompatibleComparer.cs
- XmlSchemaAnyAttribute.cs
- BlockingCollection.cs
- Convert.cs
- xsdvalidator.cs
- SynchronizingStream.cs
- SelectionUIHandler.cs
- HTMLTextWriter.cs
- PreProcessor.cs
- StateDesigner.Layouts.cs
- MonitoringDescriptionAttribute.cs
- EntityDesignerDataSourceView.cs
- MouseButton.cs
- ComplexPropertyEntry.cs
- HMACSHA512.cs
- SqlConnectionPoolGroupProviderInfo.cs
- Label.cs
- DefaultValueAttribute.cs
- ValidationEventArgs.cs
- DataGridColumnReorderingEventArgs.cs
- DataGridPageChangedEventArgs.cs
- XmlAttributeProperties.cs
- EnumBuilder.cs
- BitmapFrame.cs
- FilteredDataSetHelper.cs
- VScrollBar.cs
- AutoScrollExpandMessageFilter.cs
- ThrowHelper.cs
- TraceContextEventArgs.cs
- Selector.cs
- HttpProfileBase.cs
- OrderByBuilder.cs
- InternalBufferOverflowException.cs
- TextEditorSpelling.cs
- KerberosSecurityTokenProvider.cs
- StreamGeometryContext.cs
- CommandBinding.cs
- ConstructorExpr.cs
- __Error.cs
- LifetimeServices.cs
- ImageBrush.cs
- xmlsaver.cs
- TagNameToTypeMapper.cs
- JapaneseCalendar.cs
- HtmlInputRadioButton.cs
- ComponentDesigner.cs
- EnumValAlphaComparer.cs
- ProgressiveCrcCalculatingStream.cs
- Command.cs
- PeerApplication.cs
- WriteTimeStream.cs
- RangeValuePattern.cs
- FormViewUpdatedEventArgs.cs
- documentsequencetextcontainer.cs
- SerializationSectionGroup.cs
- InternalPermissions.cs
- TextContainerChangeEventArgs.cs
- ProviderConnectionPointCollection.cs
- KeysConverter.cs
- BamlTreeNode.cs
- HttpValueCollection.cs
- UpdateExpressionVisitor.cs
- BamlRecordWriter.cs
- DataRecordInfo.cs
- SymbolDocumentInfo.cs