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
- LogWriteRestartAreaState.cs
- XmlChildNodes.cs
- QueryTaskGroupState.cs
- SingleBodyParameterMessageFormatter.cs
- COM2AboutBoxPropertyDescriptor.cs
- SmtpNetworkElement.cs
- SevenBitStream.cs
- ToolStripMenuItem.cs
- StorageConditionPropertyMapping.cs
- ByteArrayHelperWithString.cs
- XmlSchemaRedefine.cs
- UrlAuthorizationModule.cs
- EmptyEnumerator.cs
- ToolStripRendererSwitcher.cs
- OleCmdHelper.cs
- InputLanguageSource.cs
- TraceHandlerErrorFormatter.cs
- ModulesEntry.cs
- AnnotationHighlightLayer.cs
- CertificateReferenceElement.cs
- SafeThemeHandle.cs
- OrderByBuilder.cs
- BoundColumn.cs
- DrawingGroupDrawingContext.cs
- DataListCommandEventArgs.cs
- CqlLexerHelpers.cs
- FontConverter.cs
- ToolStripHighContrastRenderer.cs
- CollectionViewGroupInternal.cs
- WizardPanel.cs
- DataSourceProvider.cs
- SmiMetaDataProperty.cs
- EditCommandColumn.cs
- EventLogEntryCollection.cs
- SoapFormatterSinks.cs
- Emitter.cs
- SynthesizerStateChangedEventArgs.cs
- DbSourceParameterCollection.cs
- ActivityBindForm.cs
- WindowsSolidBrush.cs
- ComplexType.cs
- OpenTypeLayout.cs
- PaperSource.cs
- MainMenu.cs
- AssemblyLoader.cs
- RequiredAttributeAttribute.cs
- ObjectItemAssemblyLoader.cs
- DragDeltaEventArgs.cs
- ListMarkerSourceInfo.cs
- ParserStreamGeometryContext.cs
- Util.cs
- TextParaLineResult.cs
- BuildResult.cs
- FileDialogCustomPlaces.cs
- EasingQuaternionKeyFrame.cs
- RadioButtonStandardAdapter.cs
- QueryOutputWriterV1.cs
- BufferedReadStream.cs
- WebPartExportVerb.cs
- PolicyException.cs
- TransportChannelListener.cs
- Certificate.cs
- DelegateSerializationHolder.cs
- CreateUserWizard.cs
- TrackingMemoryStream.cs
- BrowserInteropHelper.cs
- ObjectDataSourceDisposingEventArgs.cs
- MultiAsyncResult.cs
- Vector3DConverter.cs
- Size3DConverter.cs
- HashCodeCombiner.cs
- SelectManyQueryOperator.cs
- WebControlsSection.cs
- SoapMessage.cs
- ProxyGenerationError.cs
- XpsFilter.cs
- GridView.cs
- DataRowExtensions.cs
- InputScopeManager.cs
- HttpHandlerAction.cs
- PathFigureCollectionConverter.cs
- SQLInt64.cs
- XmlStreamedByteStreamReader.cs
- InputScopeManager.cs
- Blend.cs
- XmlRootAttribute.cs
- WebBrowserNavigatedEventHandler.cs
- CqlErrorHelper.cs
- SuppressIldasmAttribute.cs
- LinkArea.cs
- ColorMap.cs
- ReceiveContextCollection.cs
- QueryCreatedEventArgs.cs
- KernelTypeValidation.cs
- DbProviderSpecificTypePropertyAttribute.cs
- SizeAnimationUsingKeyFrames.cs
- BitmapEffectGeneralTransform.cs
- EventHandlersStore.cs
- ToolboxSnapDragDropEventArgs.cs
- JobDuplex.cs