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
- StateMachine.cs
- WebRequestModuleElement.cs
- CroppedBitmap.cs
- DirectoryNotFoundException.cs
- WriteableBitmap.cs
- DoubleAnimationClockResource.cs
- IssuerInformation.cs
- XmlUtil.cs
- RequestCache.cs
- ScrollPatternIdentifiers.cs
- ContextProperty.cs
- MessageOperationFormatter.cs
- ObjectAnimationBase.cs
- BitmapPalettes.cs
- HandledEventArgs.cs
- IpcPort.cs
- GridLengthConverter.cs
- WebPartDisplayModeCollection.cs
- ActiveDocumentEvent.cs
- IndexedString.cs
- SourceFilter.cs
- PathSegmentCollection.cs
- OperandQuery.cs
- StatusBarPanel.cs
- NameValuePermission.cs
- BamlBinaryReader.cs
- OracleConnection.cs
- HierarchicalDataSourceControl.cs
- FileLoadException.cs
- Int64Converter.cs
- _AcceptOverlappedAsyncResult.cs
- DocumentGrid.cs
- InvokeMethodDesigner.xaml.cs
- CompositeTypefaceMetrics.cs
- DateBoldEvent.cs
- LateBoundBitmapDecoder.cs
- RenderCapability.cs
- CodeObject.cs
- EditorAttribute.cs
- COMException.cs
- Enlistment.cs
- ParserStreamGeometryContext.cs
- CommandBinding.cs
- TimerElapsedEvenArgs.cs
- KeyPullup.cs
- AutomationPatternInfo.cs
- UpdateTranslator.cs
- ActiveXSerializer.cs
- MonitorWrapper.cs
- ObservableDictionary.cs
- DocumentGridPage.cs
- ProviderConnectionPoint.cs
- StateItem.cs
- EntityContainerRelationshipSet.cs
- Environment.cs
- BuildResult.cs
- PathFigureCollectionValueSerializer.cs
- GC.cs
- StylusPointDescription.cs
- XmlName.cs
- Select.cs
- DataSvcMapFileSerializer.cs
- RawContentTypeMapper.cs
- TCPListener.cs
- BlockExpression.cs
- SessionEndingEventArgs.cs
- Compilation.cs
- ParentUndoUnit.cs
- RealProxy.cs
- ResumeStoryboard.cs
- SystemFonts.cs
- XPathSelectionIterator.cs
- DescendentsWalkerBase.cs
- ProgressiveCrcCalculatingStream.cs
- DbMetaDataColumnNames.cs
- MarshalByRefObject.cs
- SafeNativeHandle.cs
- Int32CollectionConverter.cs
- Expression.cs
- TransformedBitmap.cs
- UIElementCollection.cs
- JulianCalendar.cs
- SecurityHelper.cs
- QueryableDataSourceHelper.cs
- ObjectStorage.cs
- FilterException.cs
- MasterPage.cs
- EncodingInfo.cs
- LinkedResourceCollection.cs
- FormView.cs
- ButtonFlatAdapter.cs
- SHA256.cs
- DeclarativeCatalogPartDesigner.cs
- HttpServerUtilityBase.cs
- Imaging.cs
- ZipIOBlockManager.cs
- webproxy.cs
- DataGridItem.cs
- HebrewNumber.cs
- ParameterModifier.cs