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
- RegisteredScript.cs
- SoapMessage.cs
- MSAAWinEventWrap.cs
- OleDbPropertySetGuid.cs
- MediaEntryAttribute.cs
- HyperLinkField.cs
- Add.cs
- FreeFormPanel.cs
- LinearQuaternionKeyFrame.cs
- X509ScopedServiceCertificateElementCollection.cs
- SqlDependency.cs
- COM2ComponentEditor.cs
- XmlWrappingReader.cs
- SettingsAttributeDictionary.cs
- HttpWriter.cs
- CodeDirectiveCollection.cs
- DSGeneratorProblem.cs
- SimpleBitVector32.cs
- Base64Encoder.cs
- CryptoHandle.cs
- MaterialCollection.cs
- HttpWebRequest.cs
- TraceSection.cs
- EventRouteFactory.cs
- Journaling.cs
- Transform3DGroup.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- SqlTypesSchemaImporter.cs
- TypeReference.cs
- WebEvents.cs
- WindowsListViewItem.cs
- TargetControlTypeAttribute.cs
- DesignerCalendarAdapter.cs
- DataSourceControl.cs
- _CookieModule.cs
- VirtualDirectoryMapping.cs
- D3DImage.cs
- FigureParaClient.cs
- ConnectionManagementElementCollection.cs
- CapabilitiesPattern.cs
- DataGridRow.cs
- HttpCacheVary.cs
- DynamicResourceExtensionConverter.cs
- SmtpDateTime.cs
- Vector3D.cs
- MemoryFailPoint.cs
- InternalEnumValidator.cs
- TextBreakpoint.cs
- UpdatableWrapper.cs
- DBCommandBuilder.cs
- ToolStripContainer.cs
- CellConstantDomain.cs
- ThreadAttributes.cs
- ServiceObjectContainer.cs
- ModelTreeEnumerator.cs
- VectorAnimation.cs
- XmlFormatReaderGenerator.cs
- Parser.cs
- DefaultBinder.cs
- MDIWindowDialog.cs
- XmlCDATASection.cs
- ConfigXmlWhitespace.cs
- AssertSection.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ThemeableAttribute.cs
- OleDbMetaDataFactory.cs
- HtmlElementEventArgs.cs
- TypeDescriptor.cs
- TabItemWrapperAutomationPeer.cs
- SettingsProviderCollection.cs
- ContainerControl.cs
- WorkflowMessageEventHandler.cs
- DynamicActionMessageFilter.cs
- FixedStringLookup.cs
- CodeConstructor.cs
- GetPageCompletedEventArgs.cs
- PartialCachingControl.cs
- ForceCopyBuildProvider.cs
- Bezier.cs
- Soap11ServerProtocol.cs
- Vector3D.cs
- Section.cs
- XmlnsCache.cs
- XmlNamespaceMappingCollection.cs
- BitStream.cs
- StringExpressionSet.cs
- ThemeableAttribute.cs
- FlowSwitchLink.cs
- BufferedStream.cs
- Int64Storage.cs
- MetaModel.cs
- PageTrueTypeFont.cs
- WMIInterop.cs
- XPathPatternParser.cs
- HtmlDocument.cs
- EntityKey.cs
- CodeTypeParameterCollection.cs
- CryptoStream.cs
- MultiAsyncResult.cs
- StoreAnnotationsMap.cs