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
- XmlFormatExtensionAttribute.cs
- EmissiveMaterial.cs
- LinqDataSourceSelectEventArgs.cs
- UrlMappingsModule.cs
- ObjectItemCollection.cs
- HScrollBar.cs
- SiteMapHierarchicalDataSourceView.cs
- PathSegment.cs
- WindowsStatic.cs
- WebHeaderCollection.cs
- CompensationToken.cs
- NGCPageContentSerializerAsync.cs
- SoapConverter.cs
- WebPartCollection.cs
- DateTimePickerDesigner.cs
- Journal.cs
- ResourceReferenceKeyNotFoundException.cs
- MetadataArtifactLoaderComposite.cs
- _SpnDictionary.cs
- SoapEnumAttribute.cs
- WebSysDefaultValueAttribute.cs
- UTF32Encoding.cs
- XmlSerializableWriter.cs
- BamlStream.cs
- LifetimeServices.cs
- MenuCommands.cs
- PrintControllerWithStatusDialog.cs
- TextElementEnumerator.cs
- BitmapEffectGroup.cs
- RawStylusInput.cs
- EntityDataSourceWrapperCollection.cs
- XmlSchemaAttributeGroup.cs
- DbParameterHelper.cs
- BaseProcessor.cs
- tabpagecollectioneditor.cs
- XmlSchemaExternal.cs
- GridViewAutomationPeer.cs
- TreeViewAutomationPeer.cs
- Classification.cs
- VirtualPath.cs
- SettingsPropertyCollection.cs
- TreeNodeCollection.cs
- NativeWindow.cs
- WindowsStatic.cs
- PanelDesigner.cs
- DataGridViewCellParsingEventArgs.cs
- ADConnectionHelper.cs
- InstanceDescriptor.cs
- WindowsTokenRoleProvider.cs
- FactoryGenerator.cs
- WebHttpBinding.cs
- ListBase.cs
- FileIOPermission.cs
- ParallelRangeManager.cs
- WebEventTraceProvider.cs
- ToolStripActionList.cs
- XPathEmptyIterator.cs
- RawAppCommandInputReport.cs
- Property.cs
- StatusBar.cs
- ScriptControlDescriptor.cs
- _HeaderInfo.cs
- SrgsToken.cs
- ApplicationSecurityInfo.cs
- FlowLayoutPanel.cs
- ConfigXmlWhitespace.cs
- Vector3dCollection.cs
- RadioButtonBaseAdapter.cs
- MergablePropertyAttribute.cs
- DeviceContexts.cs
- RuleInfoComparer.cs
- ConnectionPoint.cs
- WeakReference.cs
- XmlAnyElementAttribute.cs
- SaveFileDialog.cs
- DescendantQuery.cs
- DrawListViewColumnHeaderEventArgs.cs
- OdbcParameter.cs
- PeerApplicationLaunchInfo.cs
- FloaterBaseParaClient.cs
- HScrollBar.cs
- ActivationService.cs
- CategoryNameCollection.cs
- ControlBuilderAttribute.cs
- FreezableCollection.cs
- InternalResources.cs
- UnsafeCollabNativeMethods.cs
- SqlDataAdapter.cs
- SelectedDatesCollection.cs
- WebSysDisplayNameAttribute.cs
- CookieProtection.cs
- ProxyBuilder.cs
- VisualProxy.cs
- AssemblyContextControlItem.cs
- XmlException.cs
- PerspectiveCamera.cs
- SecurityHelper.cs
- WebSysDisplayNameAttribute.cs
- DataBoundControl.cs
- DependencyObject.cs