Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- CodeDirectionExpression.cs
- SizeFConverter.cs
- FocusTracker.cs
- StylusEditingBehavior.cs
- IResourceProvider.cs
- TableCell.cs
- FontFamilyConverter.cs
- MenuItemAutomationPeer.cs
- BmpBitmapDecoder.cs
- ApplicationDirectoryMembershipCondition.cs
- ObjectHelper.cs
- DispatcherTimer.cs
- PrintDialog.cs
- SyndicationPerson.cs
- ListItemParagraph.cs
- DbParameterCollectionHelper.cs
- Animatable.cs
- DeferredReference.cs
- EditingScopeUndoUnit.cs
- ImageListStreamer.cs
- securitycriticaldata.cs
- XmlLanguage.cs
- PartialCachingAttribute.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- StylusPointProperties.cs
- AssertUtility.cs
- XmlLanguageConverter.cs
- InheritablePropertyChangeInfo.cs
- SafeCryptContextHandle.cs
- RegionInfo.cs
- GPStream.cs
- IdentityElement.cs
- PropertyPathWorker.cs
- SiteOfOriginContainer.cs
- SByteStorage.cs
- XmlElementList.cs
- RegionIterator.cs
- XsdDuration.cs
- MutexSecurity.cs
- ImageAnimator.cs
- DebugController.cs
- RulePatternOps.cs
- ElementAction.cs
- CodeDomSerializationProvider.cs
- SchemaContext.cs
- ObjectStateManager.cs
- ZipIOExtraFieldPaddingElement.cs
- PostBackOptions.cs
- LineProperties.cs
- UserMapPath.cs
- FixedSOMPage.cs
- TransformerConfigurationWizardBase.cs
- XmlSecureResolver.cs
- ReferenceEqualityComparer.cs
- ReflectionUtil.cs
- GetPageCompletedEventArgs.cs
- WindowsToolbarAsMenu.cs
- ObjectParameter.cs
- LifetimeManager.cs
- ToolStripTextBox.cs
- FormViewCommandEventArgs.cs
- KeyTime.cs
- DesignerActionList.cs
- CryptoKeySecurity.cs
- HttpPostClientProtocol.cs
- XmlUtil.cs
- LineServicesCallbacks.cs
- DataListAutoFormat.cs
- DataGrid.cs
- HttpInputStream.cs
- DragCompletedEventArgs.cs
- Transform.cs
- HtmlTableRowCollection.cs
- AsyncPostBackErrorEventArgs.cs
- PerfService.cs
- DocumentPageView.cs
- TreeViewDataItemAutomationPeer.cs
- SqlGenericUtil.cs
- ColorAnimationUsingKeyFrames.cs
- InputLanguageCollection.cs
- SerializableAttribute.cs
- SynchronizationLockException.cs
- ObjectQueryProvider.cs
- UnescapedXmlDiagnosticData.cs
- EncodingDataItem.cs
- SoapEnumAttribute.cs
- LoadedEvent.cs
- Schema.cs
- CodeAttributeArgumentCollection.cs
- BoolExpressionVisitors.cs
- GenericTextProperties.cs
- XmlSchemaAll.cs
- x509store.cs
- WindowsListViewItem.cs
- CountdownEvent.cs
- EncoderParameter.cs
- XmlObjectSerializerReadContext.cs
- XmlBaseWriter.cs
- Scene3D.cs
- SystemKeyConverter.cs