Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / InstanceCreationEditor.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LinearQuaternionKeyFrame.cs
- RoleGroup.cs
- figurelength.cs
- DataReaderContainer.cs
- DataGridTable.cs
- AssemblyCacheEntry.cs
- BasePropertyDescriptor.cs
- FileReservationCollection.cs
- RenderData.cs
- ContentElement.cs
- ClientTargetSection.cs
- BezierSegment.cs
- Misc.cs
- FontUnitConverter.cs
- AsyncContentLoadedEventArgs.cs
- Binding.cs
- HyperLinkColumn.cs
- CodeRemoveEventStatement.cs
- CryptoStream.cs
- ButtonChrome.cs
- DocumentViewerBase.cs
- CopyEncoder.cs
- FailedToStartupUIException.cs
- entityreference_tresulttype.cs
- CloseSequenceResponse.cs
- ScrollChrome.cs
- ReferenceSchema.cs
- DesignerSerializerAttribute.cs
- DocumentPageViewAutomationPeer.cs
- MarshalDirectiveException.cs
- OperatingSystem.cs
- Visual3DCollection.cs
- CacheForPrimitiveTypes.cs
- ContractType.cs
- WindowsGraphics2.cs
- MethodAccessException.cs
- MetadataArtifactLoaderCompositeResource.cs
- GroupBoxAutomationPeer.cs
- DependencyProperty.cs
- ComponentCollection.cs
- DataGridViewToolTip.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- SrgsRulesCollection.cs
- ADMembershipUser.cs
- _TransmitFileOverlappedAsyncResult.cs
- ContentFileHelper.cs
- AllMembershipCondition.cs
- RuntimeWrappedException.cs
- SqlErrorCollection.cs
- InputScope.cs
- PresentationTraceSources.cs
- CLRBindingWorker.cs
- ButtonPopupAdapter.cs
- EntityDataSourceEntitySetNameItem.cs
- LostFocusEventManager.cs
- GeneralTransform3DTo2D.cs
- ControlValuePropertyAttribute.cs
- ForEachDesigner.xaml.cs
- UInt64Converter.cs
- DefaultAuthorizationContext.cs
- InternalRelationshipCollection.cs
- DateTimeUtil.cs
- DataGridViewTextBoxCell.cs
- GlobalizationAssembly.cs
- DataGridView.cs
- _SSPIWrapper.cs
- StackBuilderSink.cs
- ProtocolElement.cs
- HttpCapabilitiesSectionHandler.cs
- returneventsaver.cs
- PeerTransportSecuritySettings.cs
- VirtualDirectoryMappingCollection.cs
- ServiceMetadataBehavior.cs
- SerializationException.cs
- TextPatternIdentifiers.cs
- WebPartUserCapability.cs
- ManagedFilter.cs
- DrawingBrush.cs
- isolationinterop.cs
- GeneralTransform3DTo2D.cs
- FormsAuthentication.cs
- HashAlgorithm.cs
- ToolStripScrollButton.cs
- RoleManagerModule.cs
- FontCacheUtil.cs
- OperationCanceledException.cs
- CellPartitioner.cs
- UInt32Converter.cs
- OpenTypeCommon.cs
- PolyBezierSegmentFigureLogic.cs
- WindowVisualStateTracker.cs
- AsymmetricSignatureFormatter.cs
- ConditionalAttribute.cs
- PriorityBindingExpression.cs
- HijriCalendar.cs
- _ScatterGatherBuffers.cs
- ImplicitInputBrush.cs
- WsdlInspector.cs
- CurrentTimeZone.cs
- mansign.cs