menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CellBordersInfo - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CellBordersInfo

    Provides a StyleInfoSubObjectBase object for borders in a cell. Each border side of the cell can be configured individually with a Pen value. Border sides that have not been initialized will inherit default values from a base style.

    Inheritance
    System.Object
    StyleInfoBase
    StyleInfoSubObjectBase
    CellBordersInfo
    Implements
    IStyleInfo
    ISupportInitialize
    System.IFormattable
    System.Xml.Serialization.IXmlSerializable
    IStyleInfoSubObject
    System.IDisposable
    Inherited Members
    StyleInfoBase.add_Changed(StyleChangedEventHandler)
    StyleInfoBase.add_Changing(StyleChangedEventHandler)
    StyleInfoBase.BeginInit()
    StyleInfoBase.BeginUpdate()
    StyleInfoBase.CacheValues
    StyleInfoBase.Changed
    StyleInfoBase.Changing
    StyleInfoBase.ClearCache()
    StyleInfoBase.CopyFrom(IStyleInfo)
    StyleInfoBase.CreateSubObjectIdentity(StyleInfoProperty)
    StyleInfoBase.Dispose()
    StyleInfoBase.EndInit()
    StyleInfoBase.EndUpdate()
    StyleInfoBase.Equals(Object)
    StyleInfoBase.EqualsObject(Object, Object)
    StyleInfoBase.GetDefaultStyleInfoStore(StyleInfoProperty)
    StyleInfoBase.GetDefaultValue(StyleInfoProperty)
    StyleInfoBase.GetHashCode()
    StyleInfoBase.GetSchema()
    StyleInfoBase.GetShortValue(StyleInfoProperty)
    StyleInfoBase.GetValue(StyleInfoProperty)
    StyleInfoBase.HasValue(StyleInfoProperty)
    StyleInfoBase.Identity
    StyleInfoBase.IsChanged
    StyleInfoBase.IsEmpty
    StyleInfoBase.IsSubset(IStyleInfo)
    StyleInfoBase.IsValueModified(StyleInfoProperty)
    StyleInfoBase.MergeStyle(IStyleInfo)
    StyleInfoBase.ModifyStyle(IStyleInfo, StyleModifyType)
    StyleInfoBase.OnStyleChanging(StyleInfoProperty)
    StyleInfoBase.ParseString(String)
    StyleInfoBase.ReadXml(XmlReader)
    StyleInfoBase.remove_Changed(StyleChangedEventHandler)
    StyleInfoBase.remove_Changing(StyleChangedEventHandler)
    StyleInfoBase.ResetValue(StyleInfoProperty)
    StyleInfoBase.SetStore(StyleInfoStore)
    StyleInfoBase.SetValue(StyleInfoProperty, Int16)
    StyleInfoBase.SetValue(StyleInfoProperty, Object)
    StyleInfoBase.Store
    StyleInfoBase.ToString()
    StyleInfoBase.ToString(String)
    StyleInfoBase.ToString(String, IFormatProvider)
    StyleInfoBase.Updating
    StyleInfoBase.WeakReferenceChangedListeners
    StyleInfoBase.WriteXml(XmlWriter)
    StyleInfoSubObjectBase.Data
    StyleInfoSubObjectBase.IntGetDefaultStyleInfo(StyleInfoProperty)
    StyleInfoSubObjectBase.OnStyleChanged(StyleInfoProperty)
    StyleInfoSubObjectBase.Owner
    StyleInfoSubObjectBase.Sip
    StyleInfoSubObjectBase.SubObjectIdentity
    Namespace: Syncfusion.UI.Xaml.CellGrid.Styles
    Assembly: Syncfusion.SfCellGrid.UWP.dll
    Syntax
    public class CellBordersInfo : StyleInfoSubObjectBase, IStyleInfo, ISupportInitialize, IFormattable, IXmlSerializable, IStyleInfoSubObject, IDisposable
    Examples

    The following code changes border information for cells:

                Pen border = new Pen(Brushes.DarkGray, 1);
                model[rowIndex, colIndex].Borders.Bottom = border;
                model[rowIndex, colIndex].Borders.Right = border;

    The following code hides grid lines for specific cells:

                Pen border = new Pen(Brushes.DarkGray, 0);
                model[rowIndex, colIndex].Borders.Bottom = border;
                model[rowIndex, colIndex].Borders.Right = border;

    Constructors

    CellBordersInfo()

    Initializes a new empty CellBordersInfo object.

    Declaration
    public CellBordersInfo()

    CellBordersInfo(StyleInfoSubObjectIdentity)

    Initalizes a new CellBordersInfo object and associates it with an existing StyleInfoSubObjectIdentity.

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

    A CachedStyleInfoSubObjectIdentity that holds the indentity for this CellBordersInfo.

    CellBordersInfo(StyleInfoSubObjectIdentity, CellBordersInfoStore)

    Initalizes a new CellBordersInfo object and associates it with an existing StyleInfoSubObjectIdentity.

    Declaration
    public CellBordersInfo(StyleInfoSubObjectIdentity identity, CellBordersInfoStore store)
    Parameters
    Type Name Description
    StyleInfoSubObjectIdentity identity

    A StyleInfoSubObjectIdentity that holds the indentity for this CellBordersInfo.

    A CellBordersInfoStore that holds data for this CellBordersInfo. All changes in this style object will saved in the CellBordersInfoStore object.
    CellBordersInfoStore store

    Properties

    All

    Allows you to set all four border sides with one command.

    Declaration
    public Pen All { set; }
    Property Value
    Type
    Pen
    Examples
    model[2, 2].Borders.All = new Pen(new SolidColorBrush(Colors.Green), 2);

    Bottom

    The bottom border

    Declaration
    public Pen Bottom { get; set; }
    Property Value
    Type
    Pen

    Default

    Returns a default CellBordersInfo to be used with a default style.

    Declaration
    public static CellBordersInfo Default { get; }
    Property Value
    Type
    CellBordersInfo

    HasBottom

    Determines if the bottom border has been initialized.

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

    HasLeft

    Determines if the left border has been initialized.

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

    HasRight

    Determines if the right border has been initialized.

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

    HasTop

    Determines if the top border has been initialized.

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

    Item[CellBorderSide]

    Returns the Pen for the specified CellBorderSide

    Declaration
    public Pen this[CellBorderSide side] { get; set; }
    Parameters
    Type Name Description
    CellBorderSide side
    Property Value
    Type
    Pen

    Left

    The left border

    Declaration
    public Pen Left { get; set; }
    Property Value
    Type
    Pen

    Right

    The right border

    Declaration
    public Pen Right { get; set; }
    Property Value
    Type
    Pen

    Top

    The top border

    Declaration
    public Pen Top { get; set; }
    Property Value
    Type
    Pen

    Methods

    CreateObject(StyleInfoSubObjectIdentity, Object)

    Creates the CellBordersInfo object.

    Declaration
    public static object CreateObject(StyleInfoSubObjectIdentity identity, object store)
    Parameters
    Type Name Description
    StyleInfoSubObjectIdentity identity

    The identity.

    System.Object store

    The store.

    Returns
    Type
    System.Object

    Dispose(Boolean)

    Dispose the live resources used by the CellBordersInfo class.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Dispose the instance, if it is True

    Overrides
    StyleInfoSubObjectBase.Dispose(Boolean)

    GetDefaultStyle()

    Returns Default

    Declaration
    protected override StyleInfoBase GetDefaultStyle()
    Returns
    Type Description
    StyleInfoBase

    A CellBordersInfo object with default values.

    Overrides
    StyleInfoBase.GetDefaultStyle()

    MakeCopy(StyleInfoBase, StyleInfoProperty)

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

    ResetAll()

    Resets all four border sides with one command.

    Declaration
    public void ResetAll()

    ResetBottom()

    Resets the bottom border

    Declaration
    public void ResetBottom()

    ResetLeft()

    Resets the left border

    Declaration
    public void ResetLeft()

    ResetRight()

    Resets the right border

    Declaration
    public void ResetRight()

    ResetTop()

    Resets the top border

    Declaration
    public void ResetTop()

    Implements

    IStyleInfo
    ISupportInitialize
    System.IFormattable
    System.Xml.Serialization.IXmlSerializable
    IStyleInfoSubObject
    System.IDisposable

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved