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
- CompositeControlDesigner.cs
- RelatedEnd.cs
- JournalEntryStack.cs
- QueryResults.cs
- BuildProvider.cs
- COAUTHINFO.cs
- StorageBasedPackageProperties.cs
- CasesDictionary.cs
- GroupItemAutomationPeer.cs
- StandardToolWindows.cs
- ConnectionStringsSection.cs
- TextProviderWrapper.cs
- ClientBuildManager.cs
- TextureBrush.cs
- PersonalizationProvider.cs
- EntityViewGenerationAttribute.cs
- DataSourceCache.cs
- ValidatorCompatibilityHelper.cs
- SQLString.cs
- DocumentReferenceCollection.cs
- Separator.cs
- GrammarBuilderPhrase.cs
- SettingsAttributes.cs
- Gdiplus.cs
- WsdlExporter.cs
- WSHttpBindingBaseElement.cs
- RuleValidation.cs
- EditorZoneAutoFormat.cs
- ConfigXmlElement.cs
- ContentPlaceHolder.cs
- AggregateNode.cs
- FileClassifier.cs
- DispatcherObject.cs
- PropertyStore.cs
- SizeChangedInfo.cs
- SoapElementAttribute.cs
- ImageAttributes.cs
- Currency.cs
- PrinterSettings.cs
- FilterEventArgs.cs
- EpmCustomContentWriterNodeData.cs
- VirtualizedCellInfoCollection.cs
- BitmapFrame.cs
- VirtualPathUtility.cs
- DbDataRecord.cs
- PagedDataSource.cs
- CompensatableTransactionScopeActivity.cs
- CodeIndexerExpression.cs
- CompModSwitches.cs
- RandomDelayQueuedSendsAsyncResult.cs
- XLinq.cs
- Stack.cs
- AstNode.cs
- GridView.cs
- COSERVERINFO.cs
- RoutingTable.cs
- XmlAttribute.cs
- GeometryCollection.cs
- MarshalDirectiveException.cs
- XmlSchemaComplexContent.cs
- InvalidFilterCriteriaException.cs
- TextTreeInsertElementUndoUnit.cs
- SourceFilter.cs
- SourceLineInfo.cs
- SafeArrayTypeMismatchException.cs
- MinMaxParagraphWidth.cs
- Parser.cs
- AsyncResult.cs
- WSTransactionSection.cs
- QilStrConcat.cs
- coordinator.cs
- CompilationUnit.cs
- ImageSourceValueSerializer.cs
- TransformerTypeCollection.cs
- columnmapkeybuilder.cs
- Permission.cs
- IntPtr.cs
- DocumentReferenceCollection.cs
- MdiWindowListItemConverter.cs
- HtmlButton.cs
- KeysConverter.cs
- ProjectionPlanCompiler.cs
- TreeWalkHelper.cs
- XmlObjectSerializerContext.cs
- XmlResolver.cs
- CompressStream.cs
- Win32MouseDevice.cs
- TraceUtils.cs
- ReadOnlyHierarchicalDataSource.cs
- StructuralObject.cs
- FusionWrap.cs
- DataColumn.cs
- WebPartsSection.cs
- TypedReference.cs
- XmlChoiceIdentifierAttribute.cs
- SpecialFolderEnumConverter.cs
- __Filters.cs
- LinearQuaternionKeyFrame.cs
- ExtenderControl.cs
- PolyQuadraticBezierSegmentFigureLogic.cs