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
- ErrorEventArgs.cs
- DiagnosticTrace.cs
- SchemaNamespaceManager.cs
- SapiRecognizer.cs
- ArcSegment.cs
- HealthMonitoringSectionHelper.cs
- SqlSupersetValidator.cs
- HtmlTextArea.cs
- ClientSettings.cs
- ReplacementText.cs
- DataServiceQueryProvider.cs
- HierarchicalDataSourceIDConverter.cs
- CacheDependency.cs
- SchemaContext.cs
- Menu.cs
- IProvider.cs
- PrtCap_Builder.cs
- AttributeAction.cs
- SystemIPGlobalStatistics.cs
- ResourceReferenceKeyNotFoundException.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- OpCopier.cs
- CellTreeNodeVisitors.cs
- ToolStripProgressBar.cs
- ParseNumbers.cs
- DataColumnMapping.cs
- Stylesheet.cs
- SchemaElementLookUpTable.cs
- StrokeCollectionDefaultValueFactory.cs
- ResizingMessageFilter.cs
- TextServicesDisplayAttributePropertyRanges.cs
- ListItemParagraph.cs
- ListControl.cs
- Label.cs
- ServiceOperation.cs
- SetIterators.cs
- TemplateGroupCollection.cs
- MatrixCamera.cs
- ColorDialog.cs
- ExclusiveHandle.cs
- Int16Converter.cs
- RichTextBoxDesigner.cs
- HtmlInputReset.cs
- compensatingcollection.cs
- CompilerLocalReference.cs
- IEnumerable.cs
- WindowsGraphicsCacheManager.cs
- DbSourceParameterCollection.cs
- OptimalBreakSession.cs
- CanonicalXml.cs
- MatrixCamera.cs
- CodeEventReferenceExpression.cs
- NetNamedPipeBindingElement.cs
- BaseAddressPrefixFilterElementCollection.cs
- ListViewSelectEventArgs.cs
- HyperLinkColumn.cs
- SendSecurityHeader.cs
- LineVisual.cs
- URLString.cs
- IconConverter.cs
- CheckBoxList.cs
- DataSourceXmlClassAttribute.cs
- InternalConfigRoot.cs
- DataControlField.cs
- PropertyDescriptorCollection.cs
- XPathSelectionIterator.cs
- LineGeometry.cs
- DataGridItem.cs
- StylusCollection.cs
- DefaultValueMapping.cs
- SqlAggregateChecker.cs
- SimpleType.cs
- EventProviderWriter.cs
- SQLGuid.cs
- XPathNodeList.cs
- DataControlCommands.cs
- SqlVersion.cs
- NativeMethods.cs
- ConfigurationStrings.cs
- MenuItemBinding.cs
- HtmlInputSubmit.cs
- XamlParser.cs
- FilterFactory.cs
- GroupBoxRenderer.cs
- Processor.cs
- DispatcherFrame.cs
- LZCodec.cs
- DeviceSpecificChoiceCollection.cs
- FlowDocumentView.cs
- IconHelper.cs
- StringUtil.cs
- LinkLabel.cs
- PathGeometry.cs
- BinHexDecoder.cs
- Popup.cs
- IgnoreSectionHandler.cs
- XMLDiffLoader.cs
- ListParaClient.cs
- Error.cs
- ConnectionManagementElementCollection.cs