Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RenameRuleObjectDialog.Designer.cs
- PackageFilter.cs
- MoveSizeWinEventHandler.cs
- Helper.cs
- WasAdminWrapper.cs
- XmlNamespaceDeclarationsAttribute.cs
- Drawing.cs
- ExpressionDumper.cs
- VSWCFServiceContractGenerator.cs
- TextInfo.cs
- ProfileManager.cs
- dsa.cs
- MetadataPropertyCollection.cs
- ClientTargetCollection.cs
- FixedHighlight.cs
- DoubleAnimation.cs
- ElementNotEnabledException.cs
- TableColumnCollectionInternal.cs
- LocalizableAttribute.cs
- XamlLoadErrorInfo.cs
- BitmapEditor.cs
- AddressAlreadyInUseException.cs
- WorkflowDefinitionDispenser.cs
- HostProtectionException.cs
- ToolStripSettings.cs
- Application.cs
- DispatcherHookEventArgs.cs
- Byte.cs
- StorageEntityContainerMapping.cs
- SymbolDocumentInfo.cs
- EventDescriptorCollection.cs
- UniqueConstraint.cs
- MetaForeignKeyColumn.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ClientOperationFormatterProvider.cs
- TabControlDesigner.cs
- WorkflowServiceAttributes.cs
- NamespaceListProperty.cs
- DataSpaceManager.cs
- precedingquery.cs
- RuleConditionDialog.cs
- DatagridviewDisplayedBandsData.cs
- XmlSchemaInfo.cs
- PieceNameHelper.cs
- WaitForChangedResult.cs
- BasePattern.cs
- StreamHelper.cs
- DummyDataSource.cs
- CodeIterationStatement.cs
- IERequestCache.cs
- DataGridItem.cs
- HitTestFilterBehavior.cs
- RadioButtonPopupAdapter.cs
- XmlBinaryReaderSession.cs
- SettingsBase.cs
- DesignerWithHeader.cs
- GraphicsPathIterator.cs
- Line.cs
- MatrixCamera.cs
- UpdateDelegates.Generated.cs
- SignatureDescription.cs
- RuntimeResourceSet.cs
- InvokeMethodActivityDesigner.cs
- SHA384.cs
- WebPartConnectionsCancelVerb.cs
- TemplateControlParser.cs
- OLEDB_Enum.cs
- RijndaelManagedTransform.cs
- WorkflowRuntimeServiceElementCollection.cs
- ToolStripItemImageRenderEventArgs.cs
- METAHEADER.cs
- WebPartTransformer.cs
- DeliveryRequirementsAttribute.cs
- DataGridViewImageCell.cs
- IMembershipProvider.cs
- XhtmlBasicCalendarAdapter.cs
- GridViewSortEventArgs.cs
- SourceFilter.cs
- Timer.cs
- BitSet.cs
- SerialStream.cs
- OutputCacheProfile.cs
- SmtpAuthenticationManager.cs
- PhysicalFontFamily.cs
- TextStore.cs
- SafeLocalAllocation.cs
- FrameworkObject.cs
- AsyncDataRequest.cs
- SQLInt16Storage.cs
- VerificationAttribute.cs
- CircleEase.cs
- IPCCacheManager.cs
- ClientTargetCollection.cs
- DataSysAttribute.cs
- CachedTypeface.cs
- ScrollPattern.cs
- XmlUtilWriter.cs
- _emptywebproxy.cs
- ResXResourceWriter.cs
- InheritablePropertyChangeInfo.cs