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
- ColumnMap.cs
- AppSettingsExpressionBuilder.cs
- IProvider.cs
- WebPageTraceListener.cs
- TransformerConfigurationWizardBase.cs
- MetricEntry.cs
- ADMembershipUser.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- MembershipUser.cs
- DataGridToolTip.cs
- Compilation.cs
- ChannelSinkStacks.cs
- PeerNameRecordCollection.cs
- QuaternionRotation3D.cs
- SiteIdentityPermission.cs
- WorkflowOperationBehavior.cs
- SQLMoneyStorage.cs
- SamlEvidence.cs
- ModelItem.cs
- DateTimeParse.cs
- MenuItemBinding.cs
- EncryptedPackage.cs
- ParseHttpDate.cs
- ReadOnlyDictionary.cs
- NamedObjectList.cs
- TextChangedEventArgs.cs
- CellRelation.cs
- FtpCachePolicyElement.cs
- StorageAssociationSetMapping.cs
- ArrayConverter.cs
- MetadataItemEmitter.cs
- FontDifferentiator.cs
- CodeArgumentReferenceExpression.cs
- LongTypeConverter.cs
- DockPatternIdentifiers.cs
- DataSourceView.cs
- XmlTextAttribute.cs
- BridgeDataReader.cs
- DbConnectionStringCommon.cs
- DataServiceProcessingPipelineEventArgs.cs
- DesignerLoader.cs
- GridErrorDlg.cs
- Expressions.cs
- TimeoutValidationAttribute.cs
- ObjectResult.cs
- InheritedPropertyChangedEventArgs.cs
- PresentationTraceSources.cs
- HttpCapabilitiesSectionHandler.cs
- UserPreferenceChangingEventArgs.cs
- BridgeDataRecord.cs
- QilInvokeEarlyBound.cs
- StoryFragments.cs
- DocumentCollection.cs
- BooleanProjectedSlot.cs
- StringDictionary.cs
- Roles.cs
- MasterPageCodeDomTreeGenerator.cs
- ChineseLunisolarCalendar.cs
- DataTableClearEvent.cs
- BitmapInitialize.cs
- Timer.cs
- SoapFormatExtensions.cs
- ViewCellSlot.cs
- SamlConditions.cs
- XmlValueConverter.cs
- BindToObject.cs
- GeneralTransformGroup.cs
- Point4DConverter.cs
- DesignerLinkAdapter.cs
- File.cs
- ComplexBindingPropertiesAttribute.cs
- SafeEventHandle.cs
- X509ChainPolicy.cs
- ArraySortHelper.cs
- LinkArea.cs
- DbConnectionInternal.cs
- RemoteCryptoSignHashRequest.cs
- ModelFactory.cs
- DesignerSerializationOptionsAttribute.cs
- MediaSystem.cs
- ReadOnlyDictionary.cs
- ToolStripHighContrastRenderer.cs
- HtmlFormWrapper.cs
- VideoDrawing.cs
- Permission.cs
- KnowledgeBase.cs
- TimeoutException.cs
- SortDescription.cs
- UInt16.cs
- URLMembershipCondition.cs
- DynamicPropertyHolder.cs
- RegexCompiler.cs
- ResourceDictionary.cs
- DataGridViewRowConverter.cs
- LoadRetryHandler.cs
- XmlQueryStaticData.cs
- DataGridPageChangedEventArgs.cs
- RequiredAttributeAttribute.cs
- StylusEventArgs.cs
- TreeView.cs