WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridTableCellStyleInfo

    Show / Hide Table of Contents

    Class GridTableCellStyleInfo

    Lets you control almost any aspect of the appearance of the grouping grid like cell backcolor, font, or the cell type. Objects of this class are accessible through the GridTableCellAppearance class, e.g. the AnyCell property.

    Inheritance
    System.Object
    ShouldSerializeBasedPersisterType
    StyleInfoBase
    GridStyleInfo
    GridTableCellStyleInfo
    Implements
    System.ComponentModel.ICustomTypeDescriptor
    System.IDisposable
    IStyleInfo
    System.ComponentModel.ISupportInitialize
    System.IFormattable
    System.IConvertible
    System.Xml.Serialization.IXmlSerializable
    Inherited Members
    GridStyleInfo.GetGridModel()
    GridStyleInfo.GetActiveGridView()
    GridStyleInfo.ModifyStyle(IStyleInfo, StyleModifyType)
    GridStyleInfo.CreateSubObjectIdentity(StyleInfoProperty)
    GridStyleInfo.GetOffLineCopy()
    GridStyleInfo.GetDefaultStyle()
    GridStyleInfo.ResetFont()
    GridStyleInfo.ResetBorders()
    GridStyleInfo.ResetInterior()
    GridStyleInfo.ResetBackColor()
    GridStyleInfo.ResetTextColor()
    GridStyleInfo.ResetReadOnly()
    GridStyleInfo.ResetRightToLeft()
    GridStyleInfo.ResetThemed()
    GridStyleInfo.ResetClickable()
    GridStyleInfo.ResetHotkeyPrefix()
    GridStyleInfo.ResetTrimming()
    GridStyleInfo.ResetHorizontalAlignment()
    GridStyleInfo.ResetCharacterCasing()
    GridStyleInfo.ResetVerticalAlignment()
    GridStyleInfo.ResetRadioButtonAlignment()
    GridStyleInfo.ResetTextAlign()
    GridStyleInfo.ResetWrapText()
    GridStyleInfo.ResetWrapRotatedText()
    GridStyleInfo.ResetVerticalScrollbar()
    GridStyleInfo.ResetAutoSize()
    GridStyleInfo.ResetAllowEnter()
    GridStyleInfo.ResetEnabled()
    GridStyleInfo.ResetTriState()
    GridStyleInfo.ResetExclusiveChoiceList()
    GridStyleInfo.ResetDropDownStyle()
    GridStyleInfo.IsAutoComplete()
    GridStyleInfo.ResetFloatCell()
    GridStyleInfo.ResetFloodCell()
    GridStyleInfo.ResetMergeCell()
    GridStyleInfo.ResetCellAppearance()
    GridStyleInfo.ResetAutoFit()
    GridStyleInfo.ResetAutoFitChar()
    GridStyleInfo.ResetMaxLength()
    GridStyleInfo.ResetChoiceList()
    GridStyleInfo.ResetDescription()
    GridStyleInfo.ResetFormat()
    GridStyleInfo.ResetDisplayMember()
    GridStyleInfo.ResetValueMember()
    GridStyleInfo.ResetDataSource()
    GridStyleInfo.ResetPropertyDescriptor()
    GridStyleInfo.ResetText()
    GridStyleInfo.ResetCellValue()
    GridStyleInfo.ResetCellValueType()
    GridStyleInfo.ResetImageFromByteArray()
    GridStyleInfo.ResetError()
    GridStyleInfo.ResetStrictValueType()
    GridStyleInfo.ResetTag()
    GridStyleInfo.ResetControl()
    GridStyleInfo.ResetFormulaTag()
    GridStyleInfo.GetCulture(Boolean)
    GridStyleInfo.ResetCultureInfo()
    GridStyleInfo.ResetValidateValue()
    GridStyleInfo.ResetCurrencyEdit()
    GridStyleInfo.ResetCommentTip()
    GridStyleInfo.ResetMaskEdit()
    GridStyleInfo.ResetProgressBar()
    GridStyleInfo.ResetNumericUpDown()
    GridStyleInfo.ResetCheckBoxOptions()
    GridStyleInfo.ResetTextMargins()
    GridStyleInfo.ResetBorderMargins()
    GridStyleInfo.ResetShowButtons()
    GridStyleInfo.ResetPasswordChar()
    GridStyleInfo.ResetCellTipText()
    GridStyleInfo.ResetImageIndex()
    GridStyleInfo.ResetImageSizeMode()
    GridStyleInfo.ResetImageList()
    GridStyleInfo.ResetBackgroundImageMode()
    GridStyleInfo.ResetBackgroundImageID()
    GridStyleInfo.ResetBackgroundImage()
    GridStyleInfo.ResetParseFormats()
    GridStyleInfo.GetFormattedText(Object)
    GridStyleInfo.ApplyFormattedText(String)
    GridStyleInfo.GetFormattedText(Object, Int32)
    GridStyleInfo.ApplyFormattedText(String, Int32)
    GridStyleInfo.GetText(Object)
    GridStyleInfo.ApplyText(String)
    GridStyleInfo.CellIdentity
    GridStyleInfo.Store
    GridStyleInfo.CustomProperties
    GridStyleInfo.Default
    GridStyleInfo.CellModel
    GridStyleInfo.GdipFont
    GridStyleInfo.ReadOnlyFont
    GridStyleInfo.Font
    GridStyleInfo.HasFont
    GridStyleInfo.Borders
    GridStyleInfo.ReadOnlyBorders
    GridStyleInfo.FixSubObjectsDerivedFromRowandColStyle
    GridStyleInfo.HasBorders
    GridStyleInfo.Interior
    GridStyleInfo.HasInterior
    GridStyleInfo.BackColor
    GridStyleInfo.TextColor
    GridStyleInfo.HasTextColor
    GridStyleInfo.ReadOnly
    GridStyleInfo.HasReadOnly
    GridStyleInfo.RightToLeft
    GridStyleInfo.HasRightToLeft
    GridStyleInfo.Themed
    GridStyleInfo.HasThemed
    GridStyleInfo.Clickable
    GridStyleInfo.HasClickable
    GridStyleInfo.HotkeyPrefix
    GridStyleInfo.HasHotkeyPrefix
    GridStyleInfo.Trimming
    GridStyleInfo.HasTrimming
    GridStyleInfo.HorizontalAlignment
    GridStyleInfo.HasHorizontalAlignment
    GridStyleInfo.CharacterCasing
    GridStyleInfo.HasCharacterCasing
    GridStyleInfo.VerticalAlignment
    GridStyleInfo.HasVerticalAlignment
    GridStyleInfo.RadioButtonAlignment
    GridStyleInfo.HasRadioButtonAlignment
    GridStyleInfo.TextAlign
    GridStyleInfo.HasTextAlign
    GridStyleInfo.HasBaseStyle
    GridStyleInfo.WrapText
    GridStyleInfo.HasWrapText
    GridStyleInfo.WrapRotatedText
    GridStyleInfo.HasWrapRotatedText
    GridStyleInfo.VerticalScrollbar
    GridStyleInfo.HasVerticalScrollbar
    GridStyleInfo.AutoSize
    GridStyleInfo.HasAutoSize
    GridStyleInfo.AllowEnter
    GridStyleInfo.HasAllowEnter
    GridStyleInfo.Enabled
    GridStyleInfo.HasEnabled
    GridStyleInfo.TriState
    GridStyleInfo.HasTriState
    GridStyleInfo.ExclusiveChoiceList
    GridStyleInfo.HasExclusiveChoiceList
    GridStyleInfo.DropDownStyle
    GridStyleInfo.HasDropDownStyle
    GridStyleInfo.AutoCompleteInEditMode
    GridStyleInfo.FloatCell
    GridStyleInfo.HasFloatCell
    GridStyleInfo.FloodCell
    GridStyleInfo.HasFloodCell
    GridStyleInfo.MergeCell
    GridStyleInfo.HasMergeCell
    GridStyleInfo.CellAppearance
    GridStyleInfo.HasCellAppearance
    GridStyleInfo.AutoFit
    GridStyleInfo.HasAutoFit
    GridStyleInfo.AutoFitChar
    GridStyleInfo.HasAutoFitChar
    GridStyleInfo.MaxLength
    GridStyleInfo.HasMaxLength
    GridStyleInfo.HasCellType
    GridStyleInfo.ChoiceList
    GridStyleInfo.HasChoiceList
    GridStyleInfo.Description
    GridStyleInfo.HasDescription
    GridStyleInfo.Format
    GridStyleInfo.HasFormat
    GridStyleInfo.DisplayMember
    GridStyleInfo.HasDisplayMember
    GridStyleInfo.ValueMember
    GridStyleInfo.HasValueMember
    GridStyleInfo.DataSource
    GridStyleInfo.HasDataSource
    GridStyleInfo.PropertyDescriptor
    GridStyleInfo.HasPropertyDescriptor
    GridStyleInfo.Text
    GridStyleInfo.HasText
    GridStyleInfo.CellValue
    GridStyleInfo.HasCellValue
    GridStyleInfo.CellValueType
    GridStyleInfo.HasCellValueType
    GridStyleInfo.ImageFromByteArray
    GridStyleInfo.HasImageFromByteArray
    GridStyleInfo.Error
    GridStyleInfo.HasError
    GridStyleInfo.StrictValueType
    GridStyleInfo.HasStrictValueType
    GridStyleInfo.Tag
    GridStyleInfo.HasTag
    GridStyleInfo.Control
    GridStyleInfo.HasControl
    GridStyleInfo.FormulaTag
    GridStyleInfo.HasFormulaTag
    GridStyleInfo.CultureInfo
    GridStyleInfo.HasCultureInfo
    GridStyleInfo.ValidateValue
    GridStyleInfo.ReadOnlyValidateValue
    GridStyleInfo.HasValidateValue
    GridStyleInfo.CurrencyEdit
    GridStyleInfo.HasCurrencyEdit
    GridStyleInfo.CommentTip
    GridStyleInfo.HasCommentTip
    GridStyleInfo.MaskEdit
    GridStyleInfo.HasMaskEdit
    GridStyleInfo.ProgressBar
    GridStyleInfo.HasProgressBar
    GridStyleInfo.NumericUpDown
    GridStyleInfo.ReadOnlyNumericUpDown
    GridStyleInfo.HasNumericUpDown
    GridStyleInfo.CheckBoxOptions
    GridStyleInfo.ReadOnlyCheckBoxOptions
    GridStyleInfo.HasCheckBoxOptions
    GridStyleInfo.TextMargins
    GridStyleInfo.ReadOnlyTextMargins
    GridStyleInfo.HasTextMargins
    GridStyleInfo.BorderMargins
    GridStyleInfo.ReadOnlyBorderMargins
    GridStyleInfo.HasBorderMargins
    GridStyleInfo.ShowButtons
    GridStyleInfo.HasShowButtons
    GridStyleInfo.PasswordChar
    GridStyleInfo.HasPasswordChar
    GridStyleInfo.CellTipText
    GridStyleInfo.HasCellTipText
    GridStyleInfo.ImageIndex
    GridStyleInfo.HasImageIndex
    GridStyleInfo.ImageSizeMode
    GridStyleInfo.HasImageSizeMode
    GridStyleInfo.ImageList
    GridStyleInfo.HasImageList
    GridStyleInfo.BackgroundImageMode
    GridStyleInfo.HasBackgroundImageMode
    GridStyleInfo.BackgroundImageID
    GridStyleInfo.HasBackgroundImageID
    GridStyleInfo.BackgroundImage
    GridStyleInfo.HasBackgroundImage
    GridStyleInfo.ParseFormats
    GridStyleInfo.HasParseFormats
    GridStyleInfo.Provider
    GridStyleInfo.FormatPreview
    GridStyleInfo.FormattedText
    StyleInfoBase.WriteXml(XmlWriter)
    StyleInfoBase.ReadXml(XmlReader)
    StyleInfoBase.SetStore(StyleInfoStore)
    StyleInfoBase.ClearCache()
    StyleInfoBase.Dispose()
    StyleInfoBase.Dispose(Boolean)
    StyleInfoBase.Equals(Object)
    StyleInfoBase.EqualsObject(Object, Object)
    StyleInfoBase.GetHashCode()
    StyleInfoBase.ToString()
    StyleInfoBase.ToString(String)
    StyleInfoBase.ToString(String, IFormatProvider)
    StyleInfoBase.ParseString(String)
    StyleInfoBase.BeginInit()
    StyleInfoBase.EndInit()
    StyleInfoBase.BeginUpdate()
    StyleInfoBase.EndUpdate()
    StyleInfoBase.GetDefaultStyleInfoStore(StyleInfoProperty)
    StyleInfoBase.IntGetDefaultStyleInfo(StyleInfoProperty)
    StyleInfoBase.OnStyleChanging(StyleInfoProperty)
    StyleInfoBase.IsSubset(IStyleInfo)
    StyleInfoBase.CopyFrom(IStyleInfo)
    StyleInfoBase.InheritStyle(IStyleInfo, StyleModifyType)
    StyleInfoBase.MergeStyle(IStyleInfo)
    StyleInfoBase.HasValue(StyleInfoProperty)
    StyleInfoBase.IsValueModified(StyleInfoProperty)
    StyleInfoBase.ResetValue(StyleInfoProperty)
    StyleInfoBase.GetValue(StyleInfoProperty)
    StyleInfoBase.GetDefaultValue(StyleInfoProperty)
    StyleInfoBase.GetShortValue(StyleInfoProperty)
    StyleInfoBase.SetValue(StyleInfoProperty, Object)
    StyleInfoBase.SetValue(StyleInfoProperty, Int16)
    StyleInfoBase.IConvertible.ToUInt64(IFormatProvider)
    StyleInfoBase.IConvertible.ToSByte(IFormatProvider)
    StyleInfoBase.IConvertible.ToDouble(IFormatProvider)
    StyleInfoBase.IConvertible.ToDateTime(IFormatProvider)
    StyleInfoBase.IConvertible.ToSingle(IFormatProvider)
    StyleInfoBase.IConvertible.ToBoolean(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt32(IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt16(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt16(IFormatProvider)
    StyleInfoBase.IConvertible.ToString(IFormatProvider)
    StyleInfoBase.IConvertible.ToByte(IFormatProvider)
    StyleInfoBase.IConvertible.ToChar(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt64(IFormatProvider)
    StyleInfoBase.IConvertible.GetTypeCode()
    StyleInfoBase.IConvertible.ToDecimal(IFormatProvider)
    StyleInfoBase.IConvertible.ToType(Type, IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt32(IFormatProvider)
    StyleInfoBase.Identity
    StyleInfoBase.CacheValues
    StyleInfoBase.WeakReferenceChangedListeners
    StyleInfoBase.Updating
    StyleInfoBase.IsEmpty
    StyleInfoBase.IsChanged
    StyleInfoBase.Changed
    StyleInfoBase.Changing
    ShouldSerializeBasedPersisterType.GetNewAttributesCount(PropertyDescriptor)
    ShouldSerializeBasedPersisterType.AddNewAttributes(PropertyDescriptor, Attribute[], Int32)
    ShouldSerializeBasedPersisterType.GetCustomPDC(PropertyDescriptorCollection)
    ShouldSerializeBasedPersisterType.CheckAllProperties
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Grid.Grouping
    Assembly: Syncfusion.Grid.Grouping.Windows.dll
    Syntax
    public class GridTableCellStyleInfo : GridStyleInfo, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable
    Remarks

    The GridTableCellAppearance class stores GridTableCellStyleInfo information for all cell elements in a grouping grid. GridTableCellAppearance has an inheritance mechanism that allows child elements to inherit default settings from parent elements. GridTableCellAppearance lets you control almost any aspect of the appearance of the grouping grid like cell backcolor, font or the cell type.

    GridTableCellAppearance supports both inheritance of style properties from parent elements and also inheritance of style settings within cell elements of one appearance object.

    Inheritance of style properties is defined by the GridTableCellStyleInfoIdentity object. It has a GetBaseStyles(IStyleInfo) method that returns the GridStyleInfo objects that form a inheritance chain. Check the GetBaseStyleNames() method to get a string/debug information about the inheritance chain for a specific element. Also, the designer will show this debug information about inheritance chain in a tooltip when you hover the mouse over a cell within the "Preview and Edit" window.

    Constructors

    GridTableCellStyleInfo()

    Initializes a new style object.

    Declaration
    public GridTableCellStyleInfo()

    GridTableCellStyleInfo(StyleInfoIdentityBase)

    Initializes a new style object and associates it with an existing GridTableCellStyleInfoIdentity.

    Declaration
    public GridTableCellStyleInfo(StyleInfoIdentityBase identity)
    Parameters
    Type Name Description
    StyleInfoIdentityBase identity

    A GridTableCellStyleInfoIdentity that holds the identity for this GridTableCellStyleInfo.

    GridTableCellStyleInfo(StyleInfoIdentityBase, GridStyleInfoStore)

    Initializes a new style object and associates it with an existing GridTableCellStyleInfoIdentity.

    Declaration
    public GridTableCellStyleInfo(StyleInfoIdentityBase identity, GridStyleInfoStore store)
    Parameters
    Type Name Description
    StyleInfoIdentityBase identity

    A GridTableCellStyleInfoIdentity that holds the identity for this GridTableCellStyleInfo.

    GridStyleInfoStore store

    A GridStyleInfoStore that holds data for this GridTableCellStyleInfo. All changes in this style object will saved in the GridStyleInfoStore object.

    GridTableCellStyleInfo(GridStyleInfoStore)

    Initializes a new style object and associates it with an existing GridStyleInfoStore.

    Declaration
    public GridTableCellStyleInfo(GridStyleInfoStore store)
    Parameters
    Type Name Description
    GridStyleInfoStore store

    A GridStyleInfoStore that holds data for this GridTableCellStyleInfo. All changes in this style object will saved in the GridStyleInfoStore object.

    GridTableCellStyleInfo(GridTableCellStyleInfo)

    Initializes a new style object and copies all data from an existing style object.

    Declaration
    public GridTableCellStyleInfo(GridTableCellStyleInfo style)
    Parameters
    Type Name Description
    GridTableCellStyleInfo style

    The style object that contains the original data.

    Fields

    Empty

    An empty style object.

    Declaration
    public static readonly GridTableCellStyleInfo Empty
    Field Value
    Type Description
    GridTableCellStyleInfo

    Properties

    BaseStyle

    Specifies the BaseStyle for this style instance with default values for properties that are not initialized for this style object.

    Declaration
    public string BaseStyle { get; set; }
    Property Value
    Type Description
    System.String

    CellType

    Contains cell type information of a cell.

    Declaration
    public string CellType { get; set; }
    Property Value
    Type Description
    System.String

    GroupingGridProvider

    Gets the value of the grouping grid UIA provider

    Declaration
    public GroupingGridCellUIAProvider GroupingGridProvider { get; }
    Property Value
    Type Description
    GroupingGridCellUIAProvider

    IsTableCell

    Checks whether this style object has a GridTableCellStyleInfoIdentity attached.

    Declaration
    public bool IsTableCell { get; }
    Property Value
    Type Description
    System.Boolean

    TableCellIdentity

    Returns the GridTableCellStyleInfoIdentity object with Identity information about this style object.

    Declaration
    public GridTableCellStyleInfoIdentity TableCellIdentity { get; }
    Property Value
    Type Description
    GridTableCellStyleInfoIdentity

    Methods

    GetTableCellIdentity(GridStyleInfo)

    Gets the GridTableCellStyleInfoIdentity for a style, checks also the InnerIdentity of the Identity.

    Declaration
    public static GridTableCellStyleInfoIdentity GetTableCellIdentity(GridStyleInfo style)
    Parameters
    Type Name Description
    GridStyleInfo style

    The style object.

    Returns
    Type Description
    GridTableCellStyleInfoIdentity

    The TableCellIdentity if found; NULL otherwise.

    OnStyleChanged(StyleInfoProperty)

    Declaration
    protected override void OnStyleChanged(StyleInfoProperty sip)
    Parameters
    Type Name Description
    StyleInfoProperty sip
    Overrides
    GridStyleInfo.OnStyleChanged(StyleInfoProperty)

    ResetBaseStyle()

    Resets BaseStyle.

    Declaration
    public void ResetBaseStyle()

    ResetCellType()

    Resets CellType.

    Declaration
    public void ResetCellType()

    Implements

    System.ComponentModel.ICustomTypeDescriptor
    System.IDisposable
    IStyleInfo
    System.ComponentModel.ISupportInitialize
    System.IFormattable
    System.IConvertible
    System.Xml.Serialization.IXmlSerializable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved