Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / GridItem.cs / 1 / 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
- SoapAttributes.cs
- PermissionRequestEvidence.cs
- CompilationPass2Task.cs
- TextTreeInsertElementUndoUnit.cs
- TabletDeviceInfo.cs
- NativeMethods.cs
- Parallel.cs
- Axis.cs
- WebBaseEventKeyComparer.cs
- CounterSetInstanceCounterDataSet.cs
- CommandEventArgs.cs
- CellLabel.cs
- SynchronizedRandom.cs
- ResourceProviderFactory.cs
- PtsHost.cs
- HttpCacheVary.cs
- Nullable.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- AnimatedTypeHelpers.cs
- KoreanLunisolarCalendar.cs
- CodeExporter.cs
- KeyEvent.cs
- AnnotationResourceChangedEventArgs.cs
- IsolatedStorageFileStream.cs
- PrintEvent.cs
- SHA256CryptoServiceProvider.cs
- UserControlFileEditor.cs
- mediapermission.cs
- FileCodeGroup.cs
- NativeActivityFaultContext.cs
- HtmlAnchor.cs
- Currency.cs
- SmtpDigestAuthenticationModule.cs
- AnnotationResourceCollection.cs
- DelegatedStream.cs
- ClearCollection.cs
- Keyboard.cs
- Italic.cs
- Message.cs
- ButtonField.cs
- AdRotator.cs
- ArithmeticException.cs
- WebConfigurationManager.cs
- UIElement.cs
- MembershipPasswordException.cs
- ExpressionList.cs
- ControlPaint.cs
- TextEditorSpelling.cs
- OdbcCommand.cs
- CacheHelper.cs
- DataColumnMappingCollection.cs
- InputLanguageEventArgs.cs
- InternalsVisibleToAttribute.cs
- VirtualDirectoryMapping.cs
- ChineseLunisolarCalendar.cs
- SelfIssuedAuthAsymmetricKey.cs
- ScriptDescriptor.cs
- MatrixTransform.cs
- storepermissionattribute.cs
- WebEventTraceProvider.cs
- ComponentResourceKeyConverter.cs
- TypeAccessException.cs
- ServiceOperation.cs
- HMACRIPEMD160.cs
- PenLineCapValidation.cs
- XmlExtensionFunction.cs
- OperationAbortedException.cs
- DataTemplateSelector.cs
- ProfilePropertySettingsCollection.cs
- XmlWriterSettings.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- ToolZone.cs
- DbSourceParameterCollection.cs
- ConfigurationSectionCollection.cs
- ResourceExpression.cs
- AutomationPropertyInfo.cs
- RecordBuilder.cs
- DefaultValidator.cs
- SessionEndedEventArgs.cs
- BamlLocalizableResourceKey.cs
- SqlXml.cs
- CapabilitiesState.cs
- As.cs
- MulticastOption.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- unsafenativemethodsother.cs
- AdapterUtil.cs
- InvokeProviderWrapper.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- Accessors.cs
- SignatureToken.cs
- FieldMetadata.cs
- DataGridViewCellStyleConverter.cs
- QuaternionRotation3D.cs
- MobileTemplatedControlDesigner.cs
- CodeTypeReference.cs
- WindowsAltTab.cs
- Scanner.cs
- AttachedAnnotationChangedEventArgs.cs
- SystemShuttingDownException.cs