Code:
/ DotNET / DotNET / 8.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
- PersistenceTypeAttribute.cs
- MediaSystem.cs
- HatchBrush.cs
- RuntimeCompatibilityAttribute.cs
- GridSplitter.cs
- ApplicationServiceManager.cs
- SplineKeyFrames.cs
- VectorKeyFrameCollection.cs
- List.cs
- CompoundFileIOPermission.cs
- MultiplexingFormatMapping.cs
- DataDocumentXPathNavigator.cs
- UnsafeNativeMethods.cs
- DetailsView.cs
- TextBoxAutomationPeer.cs
- RuntimeWrappedException.cs
- XmlIncludeAttribute.cs
- ResolveCriteria11.cs
- UnsafeNativeMethods.cs
- CollectionContainer.cs
- PackageDigitalSignature.cs
- WindowsToolbarAsMenu.cs
- LinkClickEvent.cs
- RecognizedWordUnit.cs
- BitmapEffectState.cs
- ApplicationSecurityInfo.cs
- GridViewUpdatedEventArgs.cs
- PriorityBinding.cs
- _OverlappedAsyncResult.cs
- BindingSource.cs
- CheckBoxRenderer.cs
- Int64Storage.cs
- CellTreeNode.cs
- PropertySourceInfo.cs
- TextModifier.cs
- RegisteredDisposeScript.cs
- Missing.cs
- WbemProvider.cs
- PartialTrustVisibleAssembly.cs
- _ShellExpression.cs
- TextPointerBase.cs
- SafePEFileHandle.cs
- BitStack.cs
- TempFiles.cs
- WebExceptionStatus.cs
- HandlerFactoryCache.cs
- UpdatableWrapper.cs
- Psha1DerivedKeyGenerator.cs
- WsdlBuildProvider.cs
- DSASignatureFormatter.cs
- ParsedRoute.cs
- Expression.cs
- UserMapPath.cs
- CriticalHandle.cs
- Typeface.cs
- Material.cs
- Walker.cs
- XmlSchemaDocumentation.cs
- DataBoundControlAdapter.cs
- ArrangedElement.cs
- LinkUtilities.cs
- XsltException.cs
- JoinTreeNode.cs
- ListControl.cs
- TemplateKeyConverter.cs
- Pkcs7Recipient.cs
- ElementHostPropertyMap.cs
- NumericUpDown.cs
- DataGridViewAccessibleObject.cs
- KeyInterop.cs
- ConstantSlot.cs
- CheckedListBox.cs
- ActivationWorker.cs
- RadioButton.cs
- ToolStripPanelRenderEventArgs.cs
- ClosableStream.cs
- PenContext.cs
- TextEditor.cs
- WindowsListViewItemCheckBox.cs
- TraceListener.cs
- SubMenuStyleCollection.cs
- PersistenceTypeAttribute.cs
- CLSCompliantAttribute.cs
- ApplicationGesture.cs
- LabelEditEvent.cs
- DataViewSetting.cs
- HtmlElementCollection.cs
- InstanceData.cs
- TableParaClient.cs
- TransformGroup.cs
- recordstate.cs
- HtmlTextArea.cs
- TextEditorParagraphs.cs
- RegexMatchCollection.cs
- SQLResource.cs
- UdpTransportBindingElement.cs
- AlignmentXValidation.cs
- Setter.cs
- MessageLogger.cs
- SequenceDesigner.cs