Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / GridItem.cs / 1305376 / GridItem.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.IO; using System.Collections; using System.Globalization; using System.Windows.Forms; using System.Drawing; using System.Drawing.Design; using System.Windows.Forms.Design; using System.Windows.Forms.ComponentModel.Com2Interop; using System.ComponentModel; using System.ComponentModel.Design; using System.Windows.Forms.PropertyGridInternal; using System.Reflection; using System.Runtime.InteropServices; using Microsoft.Win32; ////// /// public abstract class GridItem { private object userData; ///Representaion of one row item in the PropertyGrid. These items represent the /// hierarchy of the grid's "tree-like" view and can be used to get information about /// the grid's state and contents. ///These objects should not be cached because they represent a snapshot of the PropertyGrid's state /// and may be disposed by grid activity. The PropertyGrid often recretates these objects internally even if /// it doesn't appear to change to the user. ///[ SRCategory(SR.CatData), Localizable(false), Bindable(true), SRDescription(SR.ControlTagDescr), DefaultValue(null), TypeConverter(typeof(StringConverter)), ] public object Tag { get { return userData; } set { userData = value; } } /// /// /// public abstract GridItemCollection GridItems { get; } ///Retrieves the child GridItems, if any, of this GridItem ////// /// public abstract GridItemType GridItemType { get; } ///Retrieves type of this GridItem, as a value from System.Windows.Forms.GridItemType ////// /// public abstract string Label { get; } ///Retrieves the text label of this GridItem. This may be different from the actual PropertyName. /// For GridItemType.Property GridItems, retrieve the PropertyDescriptor and check its Name property. ////// /// public abstract GridItem Parent { get; } ///Retrieves parent GridItem of this GridItem, if any ////// /// public abstract PropertyDescriptor PropertyDescriptor { get; } ///If this item is a GridItemType.Property GridItem, this retreives the System.ComponentModel.PropertyDescriptor that is /// associated with this GridItem. This can be used to retrieve infomration such as property Type, Name, or TypeConverter. ////// /// public abstract object Value { get; // note: we don't do set because of the value class semantics, etc. } ///Retrieves the current Value of this grid Item. This may be null. ////// /// public virtual bool Expandable { get { return false; } } ///Retreives whether the given property is expandable. ////// /// public virtual bool Expanded { get { return false; } set { throw new NotSupportedException(SR.GetString(SR.GridItemNotExpandable)); } } ///Retreives or sets whether the GridItem is in an expanded state. ////// /// public abstract bool Select(); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Attempts to select this GridItem in the PropertyGrid. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.IO; using System.Collections; using System.Globalization; using System.Windows.Forms; using System.Drawing; using System.Drawing.Design; using System.Windows.Forms.Design; using System.Windows.Forms.ComponentModel.Com2Interop; using System.ComponentModel; using System.ComponentModel.Design; using System.Windows.Forms.PropertyGridInternal; using System.Reflection; using System.Runtime.InteropServices; using Microsoft.Win32; ////// /// public abstract class GridItem { private object userData; ///Representaion of one row item in the PropertyGrid. These items represent the /// hierarchy of the grid's "tree-like" view and can be used to get information about /// the grid's state and contents. ///These objects should not be cached because they represent a snapshot of the PropertyGrid's state /// and may be disposed by grid activity. The PropertyGrid often recretates these objects internally even if /// it doesn't appear to change to the user. ///[ SRCategory(SR.CatData), Localizable(false), Bindable(true), SRDescription(SR.ControlTagDescr), DefaultValue(null), TypeConverter(typeof(StringConverter)), ] public object Tag { get { return userData; } set { userData = value; } } /// /// /// public abstract GridItemCollection GridItems { get; } ///Retrieves the child GridItems, if any, of this GridItem ////// /// public abstract GridItemType GridItemType { get; } ///Retrieves type of this GridItem, as a value from System.Windows.Forms.GridItemType ////// /// public abstract string Label { get; } ///Retrieves the text label of this GridItem. This may be different from the actual PropertyName. /// For GridItemType.Property GridItems, retrieve the PropertyDescriptor and check its Name property. ////// /// public abstract GridItem Parent { get; } ///Retrieves parent GridItem of this GridItem, if any ////// /// public abstract PropertyDescriptor PropertyDescriptor { get; } ///If this item is a GridItemType.Property GridItem, this retreives the System.ComponentModel.PropertyDescriptor that is /// associated with this GridItem. This can be used to retrieve infomration such as property Type, Name, or TypeConverter. ////// /// public abstract object Value { get; // note: we don't do set because of the value class semantics, etc. } ///Retrieves the current Value of this grid Item. This may be null. ////// /// public virtual bool Expandable { get { return false; } } ///Retreives whether the given property is expandable. ////// /// public virtual bool Expanded { get { return false; } set { throw new NotSupportedException(SR.GetString(SR.GridItemNotExpandable)); } } ///Retreives or sets whether the GridItem is in an expanded state. ////// /// public abstract bool Select(); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Attempts to select this GridItem in the PropertyGrid. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LinearGradientBrush.cs
- CertificateManager.cs
- XmlSchemaDocumentation.cs
- GlyphsSerializer.cs
- TdsParserHelperClasses.cs
- DependencyPropertyHelper.cs
- DateTimeConverter2.cs
- DataGridViewCellStateChangedEventArgs.cs
- WebReferencesBuildProvider.cs
- StartUpEventArgs.cs
- SocketInformation.cs
- StringCollection.cs
- HtmlInputText.cs
- HttpPostLocalhostServerProtocol.cs
- MatrixTransform3D.cs
- DataServiceBuildProvider.cs
- KeysConverter.cs
- LoginView.cs
- ProxyAttribute.cs
- altserialization.cs
- AuthenticationSection.cs
- StorageTypeMapping.cs
- Quaternion.cs
- FixedSchema.cs
- DesignerAdRotatorAdapter.cs
- TransactionScopeDesigner.cs
- PropertyChangeTracker.cs
- ReplyChannel.cs
- DiagnosticsConfiguration.cs
- CodeLabeledStatement.cs
- ArrayConverter.cs
- ADMembershipProvider.cs
- CommunicationException.cs
- DocobjHost.cs
- RelationshipEnd.cs
- CacheMemory.cs
- ExpressionPrefixAttribute.cs
- HiddenFieldPageStatePersister.cs
- ObjectSecurity.cs
- NameScopePropertyAttribute.cs
- DataGridViewRowEventArgs.cs
- PeerApplicationLaunchInfo.cs
- C14NUtil.cs
- ToolStripMenuItem.cs
- ConsumerConnectionPoint.cs
- Hashtable.cs
- WebPartExportVerb.cs
- TableLayoutPanelCellPosition.cs
- ListControl.cs
- UnsafeNativeMethods.cs
- SelectQueryOperator.cs
- Timer.cs
- EncoderReplacementFallback.cs
- WindowsAuthenticationEventArgs.cs
- InstanceDataCollection.cs
- HashSetEqualityComparer.cs
- safesecurityhelperavalon.cs
- SoapSchemaMember.cs
- ReadOnlyNameValueCollection.cs
- NodeFunctions.cs
- VersionConverter.cs
- IdleTimeoutMonitor.cs
- SEHException.cs
- GenerateTemporaryAssemblyTask.cs
- RoleGroup.cs
- ListViewItem.cs
- SR.cs
- WebPartMenuStyle.cs
- ProfilePropertyNameValidator.cs
- ListMarkerSourceInfo.cs
- Action.cs
- ContentDisposition.cs
- PopupControlService.cs
- ExpressionBinding.cs
- RecognizeCompletedEventArgs.cs
- ListViewGroupItemCollection.cs
- FlowSwitch.cs
- ResourceWriter.cs
- WorkflowPrinting.cs
- BlobPersonalizationState.cs
- SqlRecordBuffer.cs
- Size3D.cs
- ObjectDataSourceChooseMethodsPanel.cs
- ControlIdConverter.cs
- TemplateParser.cs
- QilStrConcatenator.cs
- ConfigViewGenerator.cs
- RegistryKey.cs
- UnsafeNativeMethodsPenimc.cs
- PolicyStatement.cs
- DataGridViewBand.cs
- FormParameter.cs
- AdapterUtil.cs
- DesignTimeParseData.cs
- LoginName.cs
- ToolStripSeparator.cs
- ProviderSettings.cs
- WSTrustDec2005.cs
- ColorAnimationBase.cs
- XmlTextEncoder.cs