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
- ObjectItemAttributeAssemblyLoader.cs
- IIS7UserPrincipal.cs
- Operand.cs
- FontSource.cs
- designeractionlistschangedeventargs.cs
- Stroke2.cs
- BitConverter.cs
- CheckBoxField.cs
- HttpHandlerActionCollection.cs
- DrawingContextDrawingContextWalker.cs
- OracleCommandSet.cs
- ScriptResourceInfo.cs
- RTLAwareMessageBox.cs
- XmlDataSourceNodeDescriptor.cs
- WebPartZoneBase.cs
- WriteableOnDemandPackagePart.cs
- ConfigurationSectionGroupCollection.cs
- InfoCardServiceInstallComponent.cs
- LineServices.cs
- GeneralTransform3D.cs
- TrackingConditionCollection.cs
- parserscommon.cs
- ObjectQuery.cs
- DataGridViewCell.cs
- Native.cs
- WebSysDisplayNameAttribute.cs
- PropertyChangedEventManager.cs
- PropertyGeneratedEventArgs.cs
- ContextStaticAttribute.cs
- ProcessHostMapPath.cs
- lengthconverter.cs
- TextFindEngine.cs
- AspNetHostingPermission.cs
- DataColumnCollection.cs
- DbConnectionPoolCounters.cs
- _ListenerResponseStream.cs
- PersistenceTypeAttribute.cs
- ObjectResult.cs
- RoleGroup.cs
- PackUriHelper.cs
- OleDbTransaction.cs
- ProcessModule.cs
- StringAnimationUsingKeyFrames.cs
- Main.cs
- Base64WriteStateInfo.cs
- NullableConverter.cs
- VerificationException.cs
- CacheOutputQuery.cs
- ToolStripDropDown.cs
- TextRange.cs
- XmlCDATASection.cs
- XmlSerializerOperationBehavior.cs
- BitmapCache.cs
- ProtocolsConfigurationHandler.cs
- GeneralTransform3DTo2D.cs
- ToolStripDesignerAvailabilityAttribute.cs
- VisualBrush.cs
- wgx_exports.cs
- ContextMenuStrip.cs
- XmlComment.cs
- ChangeProcessor.cs
- WmlLabelAdapter.cs
- SecurityContext.cs
- ChangePasswordDesigner.cs
- XmlHierarchicalDataSourceView.cs
- LinqDataSourceContextData.cs
- XmlComment.cs
- PlaceHolder.cs
- EndpointNameMessageFilter.cs
- RemoteWebConfigurationHostStream.cs
- DataServiceQueryProvider.cs
- lengthconverter.cs
- ServiceOperationWrapper.cs
- ListView.cs
- FromReply.cs
- AstTree.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- SafeCryptContextHandle.cs
- Avt.cs
- XmlSchemaAnnotation.cs
- WmfPlaceableFileHeader.cs
- HttpModulesSection.cs
- MasterPage.cs
- OperationParameterInfoCollection.cs
- HostedTcpTransportManager.cs
- ResolvedKeyFrameEntry.cs
- PeerCustomResolverElement.cs
- RefExpr.cs
- HtmlEncodedRawTextWriter.cs
- Focus.cs
- CustomAttributeBuilder.cs
- AQNBuilder.cs
- ValidationErrorCollection.cs
- WebBrowserProgressChangedEventHandler.cs
- VariantWrapper.cs
- InterleavedZipPartStream.cs
- XmlIncludeAttribute.cs
- TextInfo.cs
- DuplicateDetector.cs
- SmiXetterAccessMap.cs