Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / InstanceCreationEditor.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlDataReader.cs
- InvalidEnumArgumentException.cs
- BoundPropertyEntry.cs
- AudioLevelUpdatedEventArgs.cs
- CellCreator.cs
- ElementAction.cs
- CodeDomComponentSerializationService.cs
- FlowDocument.cs
- FrameworkElementFactoryMarkupObject.cs
- ArrangedElementCollection.cs
- TheQuery.cs
- TextPatternIdentifiers.cs
- AutomationInteropProvider.cs
- ControlAdapter.cs
- MultiSelectRootGridEntry.cs
- QilReference.cs
- EnglishPluralizationService.cs
- WebPartMenuStyle.cs
- TableLayoutPanelDesigner.cs
- AttachedPropertyMethodSelector.cs
- ToolStripSettings.cs
- DataMemberAttribute.cs
- Overlapped.cs
- XmlSchemaCollection.cs
- UpdateInfo.cs
- UpdateEventArgs.cs
- CustomWebEventKey.cs
- SchemaManager.cs
- WebZone.cs
- EditorPartChrome.cs
- DataGridViewCellValueEventArgs.cs
- RefreshInfo.cs
- complextypematerializer.cs
- TreeWalker.cs
- OracleTransaction.cs
- ColorKeyFrameCollection.cs
- TokenizerHelper.cs
- WebPartMovingEventArgs.cs
- Item.cs
- XmlRootAttribute.cs
- Helpers.cs
- DesignParameter.cs
- Rectangle.cs
- WebPartCloseVerb.cs
- WindowsMenu.cs
- PixelFormatConverter.cs
- Menu.cs
- TextModifierScope.cs
- JsonObjectDataContract.cs
- TypeSystem.cs
- HideDisabledControlAdapter.cs
- xmlsaver.cs
- ObjectDataSourceSelectingEventArgs.cs
- DataGridViewDataConnection.cs
- PlaceHolder.cs
- FlowDocumentReader.cs
- TakeQueryOptionExpression.cs
- ParameterBuilder.cs
- TreeNodeCollection.cs
- SubMenuStyleCollection.cs
- DateTimeValueSerializerContext.cs
- DynamicFilter.cs
- EasingQuaternionKeyFrame.cs
- ContainerUIElement3D.cs
- CLRBindingWorker.cs
- RecordsAffectedEventArgs.cs
- ExceptionHandlers.cs
- Bold.cs
- complextypematerializer.cs
- FormViewCommandEventArgs.cs
- SingleAnimationUsingKeyFrames.cs
- TabletCollection.cs
- SecurityContext.cs
- CacheOutputQuery.cs
- InvalidateEvent.cs
- SystemIPv6InterfaceProperties.cs
- ProgressBarRenderer.cs
- GraphicsContext.cs
- XmlElementAttribute.cs
- PriorityBindingExpression.cs
- ClientConvert.cs
- DocumentApplication.cs
- ReferentialConstraint.cs
- BinaryFormatter.cs
- CaseInsensitiveHashCodeProvider.cs
- DisableDpiAwarenessAttribute.cs
- WsatRegistrationHeader.cs
- IisTraceListener.cs
- BaseInfoTable.cs
- AtomParser.cs
- HttpListenerContext.cs
- ClientScriptManagerWrapper.cs
- OutputChannelBinder.cs
- Dictionary.cs
- SqlReorderer.cs
- ToolStripPanelRow.cs
- TrackingServices.cs
- OraclePermission.cs
- SafeNativeMethods.cs
- Paragraph.cs