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
- EventMappingSettingsCollection.cs
- Rule.cs
- returneventsaver.cs
- UnsafeNativeMethods.cs
- EdmComplexTypeAttribute.cs
- SchemaName.cs
- Peer.cs
- XmlBaseReader.cs
- HtmlContainerControl.cs
- AccessControlEntry.cs
- Span.cs
- ListViewItem.cs
- PlainXmlDeserializer.cs
- OptimalTextSource.cs
- ImageSource.cs
- LessThanOrEqual.cs
- LinkedList.cs
- ExternalDataExchangeClient.cs
- sqlnorm.cs
- ProviderBase.cs
- UIPermission.cs
- UserValidatedEventArgs.cs
- Substitution.cs
- DiscoveryClientDocuments.cs
- BitmapEffectState.cs
- BamlRecords.cs
- PointUtil.cs
- AccessViolationException.cs
- MemberAccessException.cs
- Unit.cs
- UndoUnit.cs
- CompilerParameters.cs
- DataGridViewLayoutData.cs
- RegexBoyerMoore.cs
- TraceSwitch.cs
- ParameterModifier.cs
- DefaultSection.cs
- XmlNodeChangedEventManager.cs
- BamlRecordWriter.cs
- WebControlParameterProxy.cs
- WsdlWriter.cs
- ToolStripSplitButton.cs
- TextEditorMouse.cs
- TextBox.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- basenumberconverter.cs
- MatrixUtil.cs
- EntityDataSourceColumn.cs
- SqlCommandBuilder.cs
- WebReferencesBuildProvider.cs
- MemoryRecordBuffer.cs
- FontFamily.cs
- RotateTransform.cs
- GroupItemAutomationPeer.cs
- Collection.cs
- WinFormsUtils.cs
- AnnotationComponentManager.cs
- EncodingNLS.cs
- XPathAncestorIterator.cs
- IdleTimeoutMonitor.cs
- ExceptionUtility.cs
- OdbcCommandBuilder.cs
- XsdCachingReader.cs
- DummyDataSource.cs
- CustomAttributeSerializer.cs
- TextTreeFixupNode.cs
- InputProcessorProfiles.cs
- Action.cs
- DesignerToolStripControlHost.cs
- FormClosedEvent.cs
- DefaultSerializationProviderAttribute.cs
- OleDbPermission.cs
- ObjectStateEntryDbDataRecord.cs
- ForAllOperator.cs
- DataServiceHostFactory.cs
- AnnotationHighlightLayer.cs
- WebPartDescription.cs
- GeneralTransformGroup.cs
- InternalConfigConfigurationFactory.cs
- ConfigurationPropertyAttribute.cs
- ConnectionPoint.cs
- GridView.cs
- WebPartUtil.cs
- StreamMarshaler.cs
- MailDefinitionBodyFileNameEditor.cs
- ReferenceEqualityComparer.cs
- XmlMtomReader.cs
- WmpBitmapEncoder.cs
- TraceFilter.cs
- OleDbDataAdapter.cs
- UInt16Converter.cs
- SqlLiftWhereClauses.cs
- BasicBrowserDialog.cs
- DefaultAssemblyResolver.cs
- FontNameConverter.cs
- PixelShader.cs
- Helpers.cs
- FileNotFoundException.cs
- Classification.cs
- BlockUIContainer.cs