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
- NotCondition.cs
- DoubleConverter.cs
- DragEventArgs.cs
- SqlParameterCollection.cs
- XPathNodePointer.cs
- DecoderReplacementFallback.cs
- RefType.cs
- IChannel.cs
- NativeMethods.cs
- LocalIdKeyIdentifierClause.cs
- InvariantComparer.cs
- ResolvedKeyFrameEntry.cs
- SpStreamWrapper.cs
- WpfWebRequestHelper.cs
- TableParagraph.cs
- ArglessEventHandlerProxy.cs
- AnimationStorage.cs
- SessionParameter.cs
- AdornerLayer.cs
- PolyBezierSegment.cs
- TreeNodeStyle.cs
- EncodingConverter.cs
- BitmapImage.cs
- DocumentOrderComparer.cs
- Atom10FormatterFactory.cs
- DataGridView.cs
- CapiSymmetricAlgorithm.cs
- MediaScriptCommandRoutedEventArgs.cs
- DataGridRelationshipRow.cs
- KeysConverter.cs
- CancellableEnumerable.cs
- SmiContext.cs
- WebPartMenuStyle.cs
- DocumentScope.cs
- BinaryFormatter.cs
- WindowsListViewItemStartMenu.cs
- OpCopier.cs
- SchemaAttDef.cs
- LabelInfo.cs
- EventMappingSettings.cs
- DBConnection.cs
- SoapIgnoreAttribute.cs
- SystemThemeKey.cs
- BrowsableAttribute.cs
- PrivateFontCollection.cs
- QueryContinueDragEvent.cs
- TreeBuilderXamlTranslator.cs
- SignedPkcs7.cs
- RelationshipEnd.cs
- TimeSpan.cs
- dataobject.cs
- RuntimeIdentifierPropertyAttribute.cs
- DataColumnMapping.cs
- CompatibleComparer.cs
- WebPartsPersonalization.cs
- XmlNodeChangedEventManager.cs
- RegexCaptureCollection.cs
- RowUpdatingEventArgs.cs
- DesignerVerb.cs
- ExcludeFromCodeCoverageAttribute.cs
- GridSplitter.cs
- DataGridItemCollection.cs
- ListViewSelectEventArgs.cs
- StylusButtonCollection.cs
- SqlCommandBuilder.cs
- ContentType.cs
- WindowPattern.cs
- HttpServerVarsCollection.cs
- XhtmlBasicControlAdapter.cs
- TypeContext.cs
- CodeTypeReference.cs
- CacheAxisQuery.cs
- ExpressionVisitor.cs
- VersionPair.cs
- XComponentModel.cs
- NumericUpDownAccelerationCollection.cs
- DataGridItemEventArgs.cs
- EmptyControlCollection.cs
- DescendentsWalkerBase.cs
- DataControlField.cs
- PointCollectionConverter.cs
- PersistChildrenAttribute.cs
- processwaithandle.cs
- MustUnderstandSoapException.cs
- Matrix.cs
- WindowsIPAddress.cs
- ConsumerConnectionPointCollection.cs
- PreviewPageInfo.cs
- XmlTypeAttribute.cs
- SpecialNameAttribute.cs
- XPathConvert.cs
- ConfigurationSettings.cs
- ExternalException.cs
- SqlConnectionStringBuilder.cs
- DrawingContextWalker.cs
- CheckBoxPopupAdapter.cs
- PerformanceCounter.cs
- SecurityTokenSpecification.cs
- HtmlControl.cs
- TransactionScopeDesigner.cs