Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / InstanceCreationEditor.cs / 1305376 / 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
- Style.cs
- _HelperAsyncResults.cs
- ElapsedEventArgs.cs
- CodeBlockBuilder.cs
- ValueUtilsSmi.cs
- AssemblyCollection.cs
- TextBoxLine.cs
- BitmapEffectState.cs
- ObjectContextServiceProvider.cs
- ServerValidateEventArgs.cs
- TransactionException.cs
- MetadataArtifactLoaderResource.cs
- OdbcTransaction.cs
- RequestStatusBarUpdateEventArgs.cs
- System.Data_BID.cs
- CompositeDuplexBindingElementImporter.cs
- WizardStepBase.cs
- TimeoutException.cs
- ManagedIStream.cs
- PersistChildrenAttribute.cs
- XmlSecureResolver.cs
- TextViewBase.cs
- COM2IDispatchConverter.cs
- FrameAutomationPeer.cs
- GCHandleCookieTable.cs
- AssemblyAttributesGoHere.cs
- RijndaelCryptoServiceProvider.cs
- DesignUtil.cs
- WebPartZone.cs
- ClusterUtils.cs
- UpdatableGenericsFeature.cs
- TraceContextRecord.cs
- DataGridTextBoxColumn.cs
- Expander.cs
- ImageDrawing.cs
- CapabilitiesState.cs
- MethodCallTranslator.cs
- NonDualMessageSecurityOverHttpElement.cs
- ToolStripComboBox.cs
- SplineQuaternionKeyFrame.cs
- DataViewSetting.cs
- MobileSysDescriptionAttribute.cs
- Span.cs
- FormattedText.cs
- QueryRewriter.cs
- CodeDesigner.cs
- ColorTransform.cs
- WindowsTooltip.cs
- SrgsText.cs
- COM2IDispatchConverter.cs
- EventHandlerList.cs
- ContractValidationHelper.cs
- XmlAttributeOverrides.cs
- X509SubjectKeyIdentifierClause.cs
- ArrangedElement.cs
- EmptyStringExpandableObjectConverter.cs
- RoleManagerModule.cs
- PDBReader.cs
- XmlSchemaImporter.cs
- ProfileServiceManager.cs
- XmlSerializer.cs
- IChannel.cs
- DataBinder.cs
- TimeSpan.cs
- Padding.cs
- DigitalSignature.cs
- CngAlgorithm.cs
- DependencyPropertyValueSerializer.cs
- WebPartDescription.cs
- EmptyEnumerator.cs
- IncrementalReadDecoders.cs
- TreeNode.cs
- CellIdBoolean.cs
- SafeFileMappingHandle.cs
- RequestUriProcessor.cs
- ConnectionPoint.cs
- DeclarativeCatalogPart.cs
- AsyncCompletedEventArgs.cs
- SamlDelegatingWriter.cs
- MarkupCompilePass1.cs
- EditorPart.cs
- CodeGotoStatement.cs
- MessageSecurityProtocolFactory.cs
- XsltQilFactory.cs
- SqlParameterCollection.cs
- ArglessEventHandlerProxy.cs
- COM2ExtendedTypeConverter.cs
- DesignerTransactionCloseEvent.cs
- ConfigurationFileMap.cs
- StringUtil.cs
- SystemIcmpV6Statistics.cs
- ControlBuilderAttribute.cs
- AspNetHostingPermission.cs
- DbProviderSpecificTypePropertyAttribute.cs
- IMembershipProvider.cs
- PagedDataSource.cs
- SkewTransform.cs
- SplineKeyFrames.cs
- AbsoluteQuery.cs
- WinEventHandler.cs