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
- InstanceContextManager.cs
- SocketElement.cs
- Single.cs
- HtmlInputCheckBox.cs
- WorkerRequest.cs
- CustomCategoryAttribute.cs
- KeySplineConverter.cs
- SHA384Managed.cs
- CollectionViewSource.cs
- SoapCodeExporter.cs
- OrthographicCamera.cs
- DatatypeImplementation.cs
- UidManager.cs
- ApplicationFileParser.cs
- DataMemberAttribute.cs
- MergablePropertyAttribute.cs
- Compiler.cs
- MenuItem.cs
- BindingValueChangedEventArgs.cs
- TableLayoutRowStyleCollection.cs
- SqlCommandSet.cs
- JulianCalendar.cs
- ConfigXmlWhitespace.cs
- xsdvalidator.cs
- SafeNativeMethods.cs
- Argument.cs
- TextBreakpoint.cs
- Menu.cs
- DeadCharTextComposition.cs
- PolyBezierSegmentFigureLogic.cs
- BitmapEffect.cs
- RTLAwareMessageBox.cs
- ValueTable.cs
- VisualProxy.cs
- SecurityDescriptor.cs
- TimeSpanConverter.cs
- DictionaryMarkupSerializer.cs
- BaseResourcesBuildProvider.cs
- EventLogPermissionHolder.cs
- CreateUserWizardStep.cs
- embossbitmapeffect.cs
- WindowsGraphicsCacheManager.cs
- RuntimeHandles.cs
- RadioButton.cs
- FloaterBaseParaClient.cs
- WpfSharedBamlSchemaContext.cs
- AdornerDecorator.cs
- ClientRolePrincipal.cs
- CheckBoxField.cs
- FontDriver.cs
- WebSysDefaultValueAttribute.cs
- NamespaceTable.cs
- AttributeProviderAttribute.cs
- TreeNodeEventArgs.cs
- DashStyles.cs
- DataRowChangeEvent.cs
- AspNetSynchronizationContext.cs
- TablePatternIdentifiers.cs
- TransformCollection.cs
- Regex.cs
- CompareInfo.cs
- ScrollProperties.cs
- DesignerOptionService.cs
- NetworkInformationPermission.cs
- GeometryGroup.cs
- IndexerNameAttribute.cs
- RightsManagementEncryptedStream.cs
- LinkConverter.cs
- StatusBarPanel.cs
- COM2ComponentEditor.cs
- FullTextState.cs
- TextTreeNode.cs
- DataGridViewCellEventArgs.cs
- ArrayWithOffset.cs
- XmlElementAttributes.cs
- ToolZone.cs
- InkCanvasFeedbackAdorner.cs
- ViewUtilities.cs
- ListViewItemCollectionEditor.cs
- PeerInvitationResponse.cs
- Deserializer.cs
- Converter.cs
- BindingEntityInfo.cs
- FrameworkContentElement.cs
- SoapElementAttribute.cs
- HandledEventArgs.cs
- CachedFontFamily.cs
- UrlMapping.cs
- ObjectDisposedException.cs
- TextChange.cs
- AutomationEventArgs.cs
- UriParserTemplates.cs
- Decorator.cs
- DbConvert.cs
- XmlSchemaAttributeGroup.cs
- JsonDataContract.cs
- Binding.cs
- FrameworkElement.cs
- XmlKeywords.cs
- _OverlappedAsyncResult.cs