Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- OdbcConnectionOpen.cs
- ActivationServices.cs
- processwaithandle.cs
- StateRuntime.cs
- Environment.cs
- XmlSchemaChoice.cs
- DBSchemaTable.cs
- OpenTypeLayout.cs
- CompositeActivityDesigner.cs
- CollectionChangedEventManager.cs
- Automation.cs
- Application.cs
- UInt64Storage.cs
- DataTableMappingCollection.cs
- ResourcePermissionBaseEntry.cs
- documentation.cs
- StateMachineSubscriptionManager.cs
- TextEffect.cs
- BitmapEffectInput.cs
- VersionPair.cs
- XmlSchemaValidationException.cs
- XslCompiledTransform.cs
- GeneratedView.cs
- SingleAnimationUsingKeyFrames.cs
- AuthenticationServiceManager.cs
- OutputCacheProfileCollection.cs
- XPathDocument.cs
- SymbolPair.cs
- PerformanceCounterPermissionEntry.cs
- XhtmlBasicValidationSummaryAdapter.cs
- BufferModeSettings.cs
- ApplicationServicesHostFactory.cs
- ServicePoint.cs
- ResourceContainer.cs
- XamlFxTrace.cs
- BoundField.cs
- AncestorChangedEventArgs.cs
- ExtenderProvidedPropertyAttribute.cs
- AssemblyBuilder.cs
- AddInAdapter.cs
- Attributes.cs
- BaseEntityWrapper.cs
- OptionalMessageQuery.cs
- ButtonField.cs
- EntitySetDataBindingList.cs
- EventLogEntry.cs
- PassportAuthenticationEventArgs.cs
- PointCollection.cs
- SafeLibraryHandle.cs
- DependencyObjectProvider.cs
- CultureSpecificStringDictionary.cs
- ResourceExpressionBuilder.cs
- BitmapEffectGeneralTransform.cs
- TransactionContextManager.cs
- LifetimeServices.cs
- SafeLibraryHandle.cs
- SettingsPropertyCollection.cs
- XamlFigureLengthSerializer.cs
- AtomContentProperty.cs
- AggregateNode.cs
- EventRoute.cs
- XmlnsDictionary.cs
- ColorIndependentAnimationStorage.cs
- DataGridViewLinkColumn.cs
- ColorConvertedBitmap.cs
- XLinq.cs
- DataReaderContainer.cs
- AnimationTimeline.cs
- TextFormatterHost.cs
- AdornerDecorator.cs
- XmlSchemaInferenceException.cs
- CalloutQueueItem.cs
- TypedTableBase.cs
- TdsValueSetter.cs
- XPathNodeHelper.cs
- CodeDOMProvider.cs
- EventSetter.cs
- WebUtil.cs
- SqlBulkCopyColumnMapping.cs
- XpsS0ValidatingLoader.cs
- VersionPair.cs
- SqlConnectionHelper.cs
- ConstructorNeedsTagAttribute.cs
- TypedRowHandler.cs
- ClrPerspective.cs
- ActivityCodeGenerator.cs
- XPathPatternParser.cs
- ScrollChrome.cs
- ToolStripItemRenderEventArgs.cs
- Size.cs
- LinearGradientBrush.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- UserControlAutomationPeer.cs
- EditorServiceContext.cs
- NullableFloatSumAggregationOperator.cs
- ProgressBarAutomationPeer.cs
- Ref.cs
- SqlCachedBuffer.cs
- SessionStateItemCollection.cs
- BrowsableAttribute.cs