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
- DataGridColumn.cs
- CollectionChange.cs
- HyperLinkField.cs
- QualifiedCellIdBoolean.cs
- CallInfo.cs
- DependencyObjectPropertyDescriptor.cs
- Monitor.cs
- XmlBinaryWriterSession.cs
- Vector3DAnimationBase.cs
- CallbackException.cs
- EntityDataSourceContextCreatingEventArgs.cs
- MessageQueue.cs
- SmtpFailedRecipientException.cs
- ClrProviderManifest.cs
- ExpressionPrefixAttribute.cs
- View.cs
- AsyncResult.cs
- HostedBindingBehavior.cs
- CTreeGenerator.cs
- EpmSyndicationContentSerializer.cs
- SocketStream.cs
- ExternalDataExchangeClient.cs
- TextRangeEdit.cs
- CodeCompiler.cs
- StrokeDescriptor.cs
- TraceListener.cs
- FormViewRow.cs
- GeneralTransform3D.cs
- Utils.cs
- ProgramNode.cs
- Rect.cs
- ActivityCodeDomReferenceService.cs
- VariableBinder.cs
- CodeCompileUnit.cs
- SqlDependency.cs
- FontDriver.cs
- ProfilePropertySettingsCollection.cs
- XmlNamespaceManager.cs
- SafeHandle.cs
- TimeSpanParse.cs
- SimpleWebHandlerParser.cs
- Transform.cs
- IResourceProvider.cs
- Quad.cs
- InputProcessorProfiles.cs
- validationstate.cs
- ValidationSummary.cs
- IsolatedStorageException.cs
- CounterSetInstanceCounterDataSet.cs
- MultiView.cs
- IdentityHolder.cs
- CmsInterop.cs
- ReceiveCompletedEventArgs.cs
- EntityWrapper.cs
- SqlResolver.cs
- ManualResetEvent.cs
- MultiAsyncResult.cs
- JulianCalendar.cs
- DataSourceComponent.cs
- ExtendedTransformFactory.cs
- TextDecorations.cs
- TableDesigner.cs
- XmlEventCache.cs
- ACE.cs
- HMAC.cs
- PropertyHelper.cs
- XmlSchemaAppInfo.cs
- Control.cs
- XmlSchemaComplexContent.cs
- ImportContext.cs
- TimeSpanMinutesConverter.cs
- WmlPageAdapter.cs
- FontFaceLayoutInfo.cs
- ImageAnimator.cs
- DecimalConverter.cs
- Expressions.cs
- DesignerAttributeInfo.cs
- VirtualPath.cs
- pingexception.cs
- SecurityCredentialsManager.cs
- Expression.DebuggerProxy.cs
- IdentifierCreationService.cs
- HttpWriter.cs
- BoolLiteral.cs
- WebPartEditorOkVerb.cs
- CharacterMetricsDictionary.cs
- EventLogTraceListener.cs
- KeyConverter.cs
- StickyNoteHelper.cs
- DoneReceivingAsyncResult.cs
- DictionaryBase.cs
- IgnoreDataMemberAttribute.cs
- DataGridViewAutoSizeModeEventArgs.cs
- __Error.cs
- SecurityResources.cs
- ComboBoxAutomationPeer.cs
- KnownTypesProvider.cs
- OptionUsage.cs
- SmiConnection.cs
- XPathDocumentBuilder.cs