Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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); } } // 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
- SerializationInfoEnumerator.cs
- GifBitmapEncoder.cs
- ScrollBar.cs
- BaseDataBoundControl.cs
- PostBackOptions.cs
- ObjectKeyFrameCollection.cs
- CodeDOMUtility.cs
- GridLength.cs
- ControlPropertyNameConverter.cs
- MessageEventSubscriptionService.cs
- TextDecoration.cs
- CacheEntry.cs
- ProcessStartInfo.cs
- NativeMethods.cs
- CachedRequestParams.cs
- TargetFrameworkUtil.cs
- ControlLocalizer.cs
- RequestDescription.cs
- RayMeshGeometry3DHitTestResult.cs
- AliasedSlot.cs
- TrimSurroundingWhitespaceAttribute.cs
- ConfigurationUtility.cs
- FrameworkElement.cs
- BigInt.cs
- ScriptReference.cs
- XmlLinkedNode.cs
- _UriSyntax.cs
- RotateTransform3D.cs
- TemplateManager.cs
- CodeSnippetExpression.cs
- LogicalExpr.cs
- pingexception.cs
- PathHelper.cs
- WebPartMovingEventArgs.cs
- ControlIdConverter.cs
- HostUtils.cs
- OneOfTypeConst.cs
- PrintPreviewGraphics.cs
- GridViewDeleteEventArgs.cs
- NGCSerializerAsync.cs
- StrongTypingException.cs
- BulletDecorator.cs
- configsystem.cs
- MachineKeySection.cs
- DateTimeFormat.cs
- PartitionedStream.cs
- UriTemplatePathSegment.cs
- ObjectDataProvider.cs
- lengthconverter.cs
- ProfilePropertyMetadata.cs
- SchemaImporter.cs
- _SSPIWrapper.cs
- SqlBuffer.cs
- XXXOnTypeBuilderInstantiation.cs
- PropertyGroupDescription.cs
- ColumnMapTranslator.cs
- InputScopeManager.cs
- StaticExtension.cs
- StatusBarPanel.cs
- ParallelSeparator.xaml.cs
- BinHexDecoder.cs
- SelectManyQueryOperator.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- FigureParaClient.cs
- PointLightBase.cs
- DispatchWrapper.cs
- SqlBulkCopyColumnMapping.cs
- XmlSchemaAttributeGroupRef.cs
- FormClosingEvent.cs
- EventLogSession.cs
- CompressStream.cs
- XmlDataDocument.cs
- ComProxy.cs
- LogRecordSequence.cs
- CodeAccessSecurityEngine.cs
- ErrorActivity.cs
- SafeNativeMethods.cs
- SID.cs
- DragStartedEventArgs.cs
- CryptoConfig.cs
- ToolStripPanelRenderEventArgs.cs
- JsonWriterDelegator.cs
- SpeechUI.cs
- ParameterCollection.cs
- CacheForPrimitiveTypes.cs
- Tablet.cs
- TranslateTransform3D.cs
- TextSpanModifier.cs
- IsolatedStorageException.cs
- GroupQuery.cs
- BindingList.cs
- MessageEncoder.cs
- StrongName.cs
- CommandManager.cs
- UxThemeWrapper.cs
- GacUtil.cs
- Win32Exception.cs
- TimeoutValidationAttribute.cs
- ComponentRenameEvent.cs
- TraceUtility.cs