WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CurrentCellStyleInfo - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CurrentCellStyleInfo

    Represents a class that contains the properties for customizing the styles of the selection.

    Inheritance
    System.Object
    ShouldSerializeBasedPersisterType
    StyleInfoBase
    StyleInfoSubObjectBase
    CurrentCellStyleInfo
    Implements
    System.ComponentModel.ICustomTypeDescriptor
    System.IDisposable
    IStyleInfo
    System.ComponentModel.ISupportInitialize
    System.IFormattable
    System.IConvertible
    System.Xml.Serialization.IXmlSerializable
    IStyleInfoSubObject
    Inherited Members
    StyleInfoSubObjectBase.Dispose(Boolean)
    StyleInfoSubObjectBase.OnStyleChanged(StyleInfoProperty)
    StyleInfoSubObjectBase.IntGetDefaultStyleInfo(StyleInfoProperty)
    StyleInfoSubObjectBase.SubObjectIdentity
    StyleInfoSubObjectBase.Sip
    StyleInfoSubObjectBase.Data
    StyleInfoSubObjectBase.Owner
    StyleInfoBase.WriteXml(XmlWriter)
    StyleInfoBase.ReadXml(XmlReader)
    StyleInfoBase.SetStore(StyleInfoStore)
    StyleInfoBase.ClearCache()
    StyleInfoBase.Dispose()
    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.OnStyleChanging(StyleInfoProperty)
    StyleInfoBase.IsSubset(IStyleInfo)
    StyleInfoBase.CopyFrom(IStyleInfo)
    StyleInfoBase.ModifyStyle(IStyleInfo, StyleModifyType)
    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.WinForms.DataGrid.Styles
    Assembly: Syncfusion.SfDataGrid.WinForms.dll
    Syntax
    public class CurrentCellStyleInfo : StyleInfoSubObjectBase, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject

    Constructors

    CurrentCellStyleInfo()

    Initializes a new instance of the CurrentCellStyleInfo class.

    Declaration
    public CurrentCellStyleInfo()

    CurrentCellStyleInfo(StyleInfoSubObjectIdentity)

    Initializes a new instance of the CurrentCellStyleInfo class.

    Declaration
    public CurrentCellStyleInfo(StyleInfoSubObjectIdentity identity)
    Parameters
    Type Name Description
    StyleInfoSubObjectIdentity identity

    .

    CurrentCellStyleInfo(StyleInfoSubObjectIdentity, CurrentCellStyleInfoStore)

    Initializes a new instance of the CurrentCellStyleInfo class.

    Declaration
    public CurrentCellStyleInfo(StyleInfoSubObjectIdentity identity, CurrentCellStyleInfoStore store)
    Parameters
    Type Name Description
    StyleInfoSubObjectIdentity identity

    .

    CurrentCellStyleInfoStore store

    The CurrentCellStyleInfo.

    CurrentCellStyleInfo(CurrentCellStyleInfo)

    Initializes a new instance of the CurrentCellStyleInfo class.

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

    The CurrentCellStyleInfo that need to be initialized.

    CurrentCellStyleInfo(CurrentCellStyleInfoStore)

    Initializes a new instance of the CurrentCellStyleInfo class.

    Declaration
    public CurrentCellStyleInfo(CurrentCellStyleInfoStore store)
    Parameters
    Type Name Description
    CurrentCellStyleInfoStore store

    The CurrentCellStyleInfoStore.

    Fields

    Empty

    Maintains the default style of the currentcell to read.

    Declaration
    public static readonly CurrentCellStyleInfo Empty
    Field Value
    Type Description
    CurrentCellStyleInfo

    Properties

    BackColor

    Gets or sets the back color of the selection.

    Declaration
    public Color BackColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color
    Remarks

    If the Interior property is initialized, BackColor will not be considered for rendering.

    BorderColor

    Gets or sets the border color of the selection.

    Declaration
    public Color BorderColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    BorderThickness

    Gets or sets the border color of the selection.

    Declaration
    public GridBorderWeight BorderThickness { get; set; }
    Property Value
    Type Description
    GridBorderWeight

    Default

    Gets the default size of the CurrentCellStyleInfo.

    Declaration
    public static CurrentCellStyleInfo Default { get; }
    Property Value
    Type Description
    CurrentCellStyleInfo

    HasInterior

    Gets a value indicating whether the Interior property has been modified.

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

    HasTextColor

    Gets a value indicating whether the TextColor property has been modified.

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

    Interior

    Gets or sets the brush for drawing the interior of the current cell.

    Declaration
    public BrushInfo Interior { get; set; }
    Property Value
    Type Description
    BrushInfo
    Remarks

    The default value is null and will be considered only if it is initialized.

    Store

    Gets the CurrentCellStyleInfo object that holds all the data for this style object.

    Declaration
    public CurrentCellStyleInfoStore Store { get; }
    Property Value
    Type Description
    CurrentCellStyleInfoStore

    TextColor

    Gets or sets the text color of the selection.

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    Methods

    CreateSubObjectIdentity(StyleInfoProperty)

    Overridden to create the SubObjectIdentity for the style info property.

    Declaration
    public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip)
    Parameters
    Type Name Description
    StyleInfoProperty sip

    The style info property that needs to create the sub objects.

    Returns
    Type Description
    StyleInfoSubObjectIdentity

    Returns the DataGridStyleInfoSubObjectIdentity for the given property.

    Overrides
    StyleInfoBase.CreateSubObjectIdentity(StyleInfoProperty)

    GetDefaultStyle()

    Retrieves the default style of the current cell.

    Declaration
    protected override StyleInfoBase GetDefaultStyle()
    Returns
    Type Description
    StyleInfoBase

    Returns the default style of the current cell.

    Overrides
    StyleInfoBase.GetDefaultStyle()

    MakeCopy(StyleInfoBase, StyleInfoProperty)

    Makes an exact copy of the current object.

    Declaration
    public override IStyleInfoSubObject MakeCopy(StyleInfoBase newOwner, StyleInfoProperty sip)
    Parameters
    Type Name Description
    StyleInfoBase newOwner

    The new owner style object for the copied object.

    StyleInfoProperty sip

    The identifier for this object.

    Returns
    Type Description
    IStyleInfoSubObject

    A copy of the current object registered with the new owner style object.

    Overrides
    StyleInfoSubObjectBase.MakeCopy(StyleInfoBase, StyleInfoProperty)

    Implements

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