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
- EnterpriseServicesHelper.cs
- ObjectDataSourceChooseMethodsPanel.cs
- Thumb.cs
- TextReader.cs
- GlobalProxySelection.cs
- PackageRelationshipSelector.cs
- CompilationUnit.cs
- ArrangedElementCollection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- SqlException.cs
- BufferedGraphics.cs
- MissingSatelliteAssemblyException.cs
- Duration.cs
- ControlParameter.cs
- SqlDataSourceFilteringEventArgs.cs
- CursorConverter.cs
- EnumConverter.cs
- Container.cs
- WebHttpBehavior.cs
- XmlDataSource.cs
- CultureSpecificStringDictionary.cs
- TextBox.cs
- BrowserInteropHelper.cs
- LogStore.cs
- RedistVersionInfo.cs
- AgileSafeNativeMemoryHandle.cs
- NominalTypeEliminator.cs
- XPathNavigatorReader.cs
- AsyncSerializedWorker.cs
- SQLInt32.cs
- SiteMapPathDesigner.cs
- SplayTreeNode.cs
- CultureTableRecord.cs
- RightNameExpirationInfoPair.cs
- ResolvedKeyFrameEntry.cs
- WorkflowIdleBehavior.cs
- UrlMappingCollection.cs
- CodeVariableDeclarationStatement.cs
- Stylesheet.cs
- UserControl.cs
- XappLauncher.cs
- GroupBoxAutomationPeer.cs
- EtwTrace.cs
- versioninfo.cs
- AssemblySettingAttributes.cs
- SoundPlayerAction.cs
- OdbcParameter.cs
- DataGridColumnDropSeparator.cs
- ExtenderProvidedPropertyAttribute.cs
- Schema.cs
- NeutralResourcesLanguageAttribute.cs
- AliasExpr.cs
- MergePropertyDescriptor.cs
- ColorConvertedBitmap.cs
- ParagraphVisual.cs
- BitmapFrameEncode.cs
- SamlAssertion.cs
- StructuredProperty.cs
- RegexMatch.cs
- OdbcRowUpdatingEvent.cs
- SectionInput.cs
- FormsAuthenticationConfiguration.cs
- PeerApplicationLaunchInfo.cs
- CodeAttributeDeclaration.cs
- DiscreteKeyFrames.cs
- MissingMethodException.cs
- ResXResourceReader.cs
- EntityDataSourceStatementEditor.cs
- MimeTypeAttribute.cs
- RIPEMD160.cs
- TypedReference.cs
- Simplifier.cs
- RewritingValidator.cs
- ToolStripSeparator.cs
- WebEventTraceProvider.cs
- PointUtil.cs
- ParameterElement.cs
- RotateTransform.cs
- ProgressBar.cs
- CompiledELinqQueryState.cs
- Math.cs
- Evidence.cs
- SafeEventLogWriteHandle.cs
- OdbcHandle.cs
- SystemSounds.cs
- TextSimpleMarkerProperties.cs
- TextShapeableCharacters.cs
- Stream.cs
- ThumbAutomationPeer.cs
- Simplifier.cs
- Imaging.cs
- ListViewItemEventArgs.cs
- DeviceSpecificChoice.cs
- ValidatorCompatibilityHelper.cs
- OperationDescription.cs
- ContextMarshalException.cs
- SessionStateModule.cs
- SafeNativeMethodsCLR.cs
- InkCanvasSelection.cs
- DocumentGrid.cs