Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ActivityDesignerLayoutSerializers.cs
- SplitterCancelEvent.cs
- AttachedAnnotation.cs
- BaseParaClient.cs
- MultipleViewProviderWrapper.cs
- SyndicationSerializer.cs
- BinaryMethodMessage.cs
- Repeater.cs
- PropertyDescriptor.cs
- TraceHandlerErrorFormatter.cs
- DataServiceProviderMethods.cs
- Endpoint.cs
- RegexCompilationInfo.cs
- PageContent.cs
- MetadataPropertyvalue.cs
- Operators.cs
- TableLayoutPanelCodeDomSerializer.cs
- ColorAnimationUsingKeyFrames.cs
- TableRowGroup.cs
- Column.cs
- FilterElement.cs
- XmlQueryCardinality.cs
- UnmanagedHandle.cs
- OletxVolatileEnlistment.cs
- IApplicationTrustManager.cs
- SqlProvider.cs
- XmlChildEnumerator.cs
- CalloutQueueItem.cs
- TextTreeDeleteContentUndoUnit.cs
- DirectionalLight.cs
- ButtonBase.cs
- RuntimeConfigLKG.cs
- DocumentViewerAutomationPeer.cs
- Delay.cs
- MessageSmuggler.cs
- SafeThemeHandle.cs
- LicFileLicenseProvider.cs
- PreservationFileWriter.cs
- DoWhileDesigner.xaml.cs
- QilUnary.cs
- ToolStripPanel.cs
- AppDomainFactory.cs
- PathSegmentCollection.cs
- OSFeature.cs
- TextEditorContextMenu.cs
- RadioButtonStandardAdapter.cs
- _HelperAsyncResults.cs
- LoginViewDesigner.cs
- SystemInformation.cs
- ServicePointManager.cs
- GridViewDeleteEventArgs.cs
- DialogResultConverter.cs
- SelectionItemPatternIdentifiers.cs
- Pen.cs
- HttpWebRequest.cs
- XmlSchemaSimpleContentExtension.cs
- WorkflowPersistenceService.cs
- Visual.cs
- Monitor.cs
- Int32Converter.cs
- DirectionalLight.cs
- Label.cs
- WebPartActionVerb.cs
- EventLogPermissionEntry.cs
- DataSourceBooleanViewSchemaConverter.cs
- QuaternionAnimationBase.cs
- SplitterPanel.cs
- ChineseLunisolarCalendar.cs
- LocalizableResourceBuilder.cs
- ItemCheckedEvent.cs
- ITreeGenerator.cs
- SafeMILHandle.cs
- TraceEventCache.cs
- EncoderExceptionFallback.cs
- AuthenticationService.cs
- StopStoryboard.cs
- DebuggerAttributes.cs
- SqlExpander.cs
- WebConfigManager.cs
- CannotUnloadAppDomainException.cs
- NativeObjectSecurity.cs
- Encoder.cs
- SoapElementAttribute.cs
- ResourceExpressionBuilder.cs
- ThreadSafeMessageFilterTable.cs
- embossbitmapeffect.cs
- EntityDataSourceChangedEventArgs.cs
- ConcurrentQueue.cs
- ListMarkerLine.cs
- WhereaboutsReader.cs
- RadioButtonPopupAdapter.cs
- RectConverter.cs
- ContextMenuService.cs
- OracleDateTime.cs
- SoapObjectInfo.cs
- ItemsPanelTemplate.cs
- CustomExpressionEventArgs.cs
- ColumnMapProcessor.cs
- SurrogateEncoder.cs
- PointCollection.cs