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
- Point3DAnimationUsingKeyFrames.cs
- DrawingContextWalker.cs
- BackgroundWorker.cs
- Bidi.cs
- WebProxyScriptElement.cs
- DesignerActionGlyph.cs
- ApplyTemplatesAction.cs
- HierarchicalDataSourceControl.cs
- DecoderFallback.cs
- RotateTransform3D.cs
- MachineKeyValidationConverter.cs
- DataKey.cs
- XmlWriter.cs
- HttpEncoderUtility.cs
- _NativeSSPI.cs
- StylusOverProperty.cs
- PartialTrustVisibleAssembliesSection.cs
- TableCellCollection.cs
- Win32NamedPipes.cs
- DataTemplate.cs
- ConfigErrorGlyph.cs
- SrgsNameValueTag.cs
- RefreshResponseInfo.cs
- EntityDataSourceSelectingEventArgs.cs
- AstNode.cs
- SHA1Managed.cs
- DocumentViewerBase.cs
- ProfileSettings.cs
- EntityDataSourceChangingEventArgs.cs
- LinqToSqlWrapper.cs
- VideoDrawing.cs
- documentsequencetextview.cs
- securitymgrsite.cs
- DataTemplate.cs
- TreeNodeClickEventArgs.cs
- WindowsImpersonationContext.cs
- BStrWrapper.cs
- HelloOperationAsyncResult.cs
- FtpWebResponse.cs
- KoreanCalendar.cs
- ToolStripPanelCell.cs
- ObjectPersistData.cs
- PEFileReader.cs
- BitSet.cs
- QueryContext.cs
- InputLanguageEventArgs.cs
- DXD.cs
- DataContractSet.cs
- dataobject.cs
- XPathScanner.cs
- Config.cs
- SafeNativeMethods.cs
- HiddenField.cs
- DataGridViewDataConnection.cs
- SqlMethods.cs
- XmlDocumentViewSchema.cs
- MetadataArtifactLoaderComposite.cs
- DataGridCell.cs
- ReadContentAsBinaryHelper.cs
- CustomWebEventKey.cs
- DeclarativeExpressionConditionDeclaration.cs
- DesignSurface.cs
- RC2CryptoServiceProvider.cs
- WebPartTransformerCollection.cs
- TimerElapsedEvenArgs.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Menu.cs
- OletxEnlistment.cs
- SystemWebCachingSectionGroup.cs
- SqlCacheDependencySection.cs
- ToolTipAutomationPeer.cs
- RegexMatchCollection.cs
- DataServiceResponse.cs
- Iis7Helper.cs
- ExpressionConverter.cs
- DesignRelationCollection.cs
- AssemblyHash.cs
- AdapterUtil.cs
- OracleBinary.cs
- Timer.cs
- ObjectSet.cs
- storepermission.cs
- Quaternion.cs
- ContactManager.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- RegexWorker.cs
- SqlDelegatedTransaction.cs
- BitmapSizeOptions.cs
- TransformerConfigurationWizardBase.cs
- ToolStripGrip.cs
- DomainUpDown.cs
- DataGridColumn.cs
- OleDbDataAdapter.cs
- CollectionView.cs
- LogPolicy.cs
- TextCompositionEventArgs.cs
- EncodingTable.cs
- ValidationHelper.cs
- KeyedHashAlgorithm.cs
- ConditionCollection.cs