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
- DeferrableContent.cs
- WorkflowOperationContext.cs
- figurelengthconverter.cs
- TableCell.cs
- UpDownBaseDesigner.cs
- SupportingTokenDuplexChannel.cs
- TimeSpanOrInfiniteValidator.cs
- Axis.cs
- TextWriterTraceListener.cs
- InputReferenceExpression.cs
- AccessedThroughPropertyAttribute.cs
- ListViewItemSelectionChangedEvent.cs
- WindowsEditBox.cs
- ArgumentNullException.cs
- XmlDataContract.cs
- RequiredAttributeAttribute.cs
- PriorityQueue.cs
- CompensatableTransactionScopeActivityDesigner.cs
- COM2Enum.cs
- StringWriter.cs
- SignerInfo.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- InvalidDocumentContentsException.cs
- HtmlButton.cs
- ACE.cs
- PageParserFilter.cs
- PageAsyncTaskManager.cs
- KnownIds.cs
- ResolveMatchesCD1.cs
- Property.cs
- OleDbEnumerator.cs
- SqlMethodAttribute.cs
- MonthChangedEventArgs.cs
- HelpKeywordAttribute.cs
- DataColumnMappingCollection.cs
- ACE.cs
- WebPartHelpVerb.cs
- BookmarkScopeManager.cs
- CodeAttachEventStatement.cs
- Solver.cs
- SqlParameter.cs
- __ConsoleStream.cs
- DataGridViewColumnConverter.cs
- CommandField.cs
- ObjectItemCollection.cs
- MinMaxParagraphWidth.cs
- Util.cs
- NotConverter.cs
- TextTreeNode.cs
- AutomationPatternInfo.cs
- ApplicationManager.cs
- QuaternionRotation3D.cs
- StringKeyFrameCollection.cs
- DictionaryBase.cs
- FontUnitConverter.cs
- EFAssociationProvider.cs
- StorageMappingFragment.cs
- KeyValuePairs.cs
- DataGridTableCollection.cs
- ColorDialog.cs
- ManagedWndProcTracker.cs
- RadioButtonBaseAdapter.cs
- PrintDialog.cs
- Avt.cs
- Identity.cs
- RawStylusActions.cs
- TypeResolver.cs
- Debug.cs
- SiteMapSection.cs
- ColorContextHelper.cs
- ImageList.cs
- TextControl.cs
- PluralizationService.cs
- InternalBase.cs
- ToolStripOverflowButton.cs
- TextStore.cs
- CapiSymmetricAlgorithm.cs
- ResourceExpressionEditor.cs
- Pen.cs
- QuaternionAnimationBase.cs
- DisplayMemberTemplateSelector.cs
- CursorConverter.cs
- Queue.cs
- DataGridCommandEventArgs.cs
- ExpressionBuilder.cs
- PageMediaSize.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- SystemFonts.cs
- CompModSwitches.cs
- DataRow.cs
- ListViewGroup.cs
- DataGridItem.cs
- SqlConnectionStringBuilder.cs
- DropTarget.cs
- ServiceReference.cs
- SessionStateItemCollection.cs
- InputEventArgs.cs
- HealthMonitoringSection.cs
- ScriptServiceAttribute.cs
- XmlEnumAttribute.cs