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
- CodeBinaryOperatorExpression.cs
- BindingCollection.cs
- TagPrefixInfo.cs
- CollectionEditorDialog.cs
- CellIdBoolean.cs
- CustomValidator.cs
- ColumnClickEvent.cs
- ThrowHelper.cs
- DataGridViewSortCompareEventArgs.cs
- NativeConfigurationLoader.cs
- BaseComponentEditor.cs
- DefaultCommandExtensionCallback.cs
- RenderContext.cs
- TaskHelper.cs
- SqlDataSourceConfigureFilterForm.cs
- AsyncResult.cs
- NotifyInputEventArgs.cs
- LocationSectionRecord.cs
- RelationalExpressions.cs
- EventDescriptorCollection.cs
- EntityDescriptor.cs
- SolidBrush.cs
- Vector3D.cs
- Window.cs
- PreviewKeyDownEventArgs.cs
- RowsCopiedEventArgs.cs
- ListComponentEditorPage.cs
- CssStyleCollection.cs
- HtmlButton.cs
- SerializerProvider.cs
- Calendar.cs
- ItemType.cs
- TreeBuilderBamlTranslator.cs
- InArgument.cs
- DrawingState.cs
- SpecialFolderEnumConverter.cs
- TransactionFilter.cs
- DataControlFieldCell.cs
- HtmlInputCheckBox.cs
- ToolBar.cs
- GetKeyedHashRequest.cs
- LinkLabel.cs
- NativeMethods.cs
- QualificationDataAttribute.cs
- DecoratedNameAttribute.cs
- XmlElementList.cs
- ViewStateModeByIdAttribute.cs
- ReadOnlyMetadataCollection.cs
- TemplatedControlDesigner.cs
- CheckableControlBaseAdapter.cs
- WindowsClaimSet.cs
- AtlasWeb.Designer.cs
- RectIndependentAnimationStorage.cs
- odbcmetadatacollectionnames.cs
- SQLInt16.cs
- ReadOnlyDataSourceView.cs
- IncomingWebResponseContext.cs
- DataStreams.cs
- MSHTMLHostUtil.cs
- AssemblyBuilderData.cs
- SQLBytes.cs
- ClientRuntimeConfig.cs
- ErrorReporting.cs
- Filter.cs
- CacheForPrimitiveTypes.cs
- StyleBamlTreeBuilder.cs
- CacheMode.cs
- HtmlInputControl.cs
- UInt16Storage.cs
- DodSequenceMerge.cs
- KeyGestureConverter.cs
- ImageClickEventArgs.cs
- LinkUtilities.cs
- SafeCoTaskMem.cs
- UInt32.cs
- EventBuilder.cs
- AdornerLayer.cs
- TextEndOfLine.cs
- DrawingBrush.cs
- RequestContext.cs
- BamlBinaryReader.cs
- BackStopAuthenticationModule.cs
- ValueOfAction.cs
- EastAsianLunisolarCalendar.cs
- VirtualizedCellInfoCollection.cs
- FormsAuthentication.cs
- AuthenticationSection.cs
- ConfigurationSettings.cs
- ConfigXmlAttribute.cs
- ProfilePropertySettings.cs
- ListBindingHelper.cs
- HostSecurityManager.cs
- UnsignedPublishLicense.cs
- SmtpNetworkElement.cs
- ContainerUIElement3D.cs
- TaiwanLunisolarCalendar.cs
- Visitor.cs
- SettingsPropertyWrongTypeException.cs
- SafeNativeMethods.cs
- GlobalEventManager.cs