menu

WPF

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

    Show / Hide Table of Contents

    Class CellSpanInfoBase

    This a base class for spanned ranges such as covered cells and cell spanned backgrounds. It contains Top, Left, Bottom and Right row and column index for the spanned range.

    Inheritance
    System.Object
    CellSpanInfoBase
    CellSpanInfo
    Implements
    System.IDisposable
    System.IComparable<CellSpanInfoBase>
    System.IComparable
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Syncfusion.Windows.Controls.Cells
    Assembly: Syncfusion.GridCommon.Wpf.dll
    Syntax
    public class CellSpanInfoBase : IDisposable, IComparable<CellSpanInfoBase>, IComparable

    Constructors

    CellSpanInfoBase()

    Initializes a new instance of the CellSpanInfoBase class.

    Declaration
    public CellSpanInfoBase()

    CellSpanInfoBase(Int32, Int32, Int32, Int32)

    Initializes a new instance of the CellSpanInfoBase class.

    Declaration
    public CellSpanInfoBase(int top, int left, int bottom, int right)
    Parameters
    Type Name Description
    System.Int32 top

    The top row index.

    System.Int32 left

    The left column index.

    System.Int32 bottom

    The bottom row index.

    System.Int32 right

    The right column index.

    Fields

    bottom

    Declaration
    protected int bottom
    Field Value
    Type
    System.Int32

    left

    Declaration
    protected int left
    Field Value
    Type
    System.Int32

    right

    Declaration
    protected int right
    Field Value
    Type
    System.Int32

    top

    Declaration
    protected int top
    Field Value
    Type
    System.Int32

    Properties

    Bottom

    Gets the bottom row index.

    Declaration
    public int Bottom { get; }
    Property Value
    Type Description
    System.Int32

    The bottom.

    Height

    Gets the number of rows.

    Declaration
    public int Height { get; }
    Property Value
    Type Description
    System.Int32

    The height.

    Left

    Gets the left column index.

    Declaration
    public int Left { get; }
    Property Value
    Type Description
    System.Int32

    The left.

    Right

    Gets the right column index.

    Declaration
    public int Right { get; }
    Property Value
    Type Description
    System.Int32

    The right.

    Top

    Gets the top row index.

    Declaration
    public int Top { get; }
    Property Value
    Type Description
    System.Int32

    The top.

    Width

    Gets the number of columns.

    Declaration
    public int Width { get; }
    Property Value
    Type Description
    System.Int32

    The width.

    Methods

    CompareTo(CellSpanInfoBase)

    Compares the current object with another object of the same type.

    Declaration
    public int CompareTo(CellSpanInfoBase other)
    Parameters
    Type Name Description
    CellSpanInfoBase other

    An object to compare with this object.

    Returns
    Type Description
    System.Int32

    A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has the following meanings: Value Meaning Less than zero This object is less than the other parameter.Zero This object is equal to other. Greater than zero This object is greater than other.

    Contains(RowColumnIndex)

    Determines whether the specified cell is inside the span.

    Declaration
    public bool Contains(RowColumnIndex cellRowColumnIndex)
    Parameters
    Type Name Description
    RowColumnIndex cellRowColumnIndex

    The cell

    Returns
    Type Description
    System.Boolean

    true if cell is inside the span; false otherwise.

    Contains(Int32, Int32)

    Determines whether the specified cell is inside the span.

    Declaration
    public bool Contains(int rowIndex, int columnIndex)
    Parameters
    Type Name Description
    System.Int32 rowIndex

    Index of the row.

    System.Int32 columnIndex

    Index of the column.

    Returns
    Type Description
    System.Boolean

    true if cell is inside the span; false otherwise.

    ContainsColumn(Int32)

    Determines whether the specified column is inside the span.

    Declaration
    public bool ContainsColumn(int columnIndex)
    Parameters
    Type Name Description
    System.Int32 columnIndex

    The column index

    Returns
    Type Description
    System.Boolean

    true if column is inside the span; false otherwise.

    ContainsRow(Int32)

    Determines whether the specified row is inside the span.

    Declaration
    public bool ContainsRow(int rowIndex)
    Parameters
    Type Name Description
    System.Int32 rowIndex

    The row index

    Returns
    Type Description
    System.Boolean

    true if row is inside the span; false otherwise.

    Dispose()

    Declaration
    public virtual void Dispose()

    Equals(Object)

    Determines whether the specified System.Object is equal to the current System.Object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj

    The System.Object to compare with the current System.Object.

    Returns
    Type Description
    System.Boolean

    true if the specified System.Object is equal to the current System.Object; otherwise, false.

    Overrides
    System.Object.Equals(System.Object)

    GetHashCode()

    Serves as a hash function for a particular type.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    A hash code for the current System.Object.

    Overrides
    System.Object.GetHashCode()

    Offset(Int32, Int32)

    Offsets the span with the specified row and column count.

    Declaration
    public void Offset(int rowCount, int columnCount)
    Parameters
    Type Name Description
    System.Int32 rowCount

    The row count.

    System.Int32 columnCount

    The column count.

    Offset(Int32, Int32, Boolean, Boolean)

    Offsets the span with the specified row and column count.

    Declaration
    public void Offset(int rowCount, int columnCount, bool adjustStartIndex, bool adjustEndIndex)
    Parameters
    Type Name Description
    System.Int32 rowCount

    The row count.

    System.Int32 columnCount

    The column count.

    System.Boolean adjustStartIndex

    Determines whether adjust starting row and column

    System.Boolean adjustEndIndex

    ToString()

    Returns a string describing the state of the object.

    Declaration
    public override string ToString()
    Returns
    Type
    System.String
    Overrides
    System.Object.ToString()

    Explicit Interface Implementations

    IComparable.CompareTo(Object)

    Declaration
    int IComparable.CompareTo(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type
    System.Int32

    Implements

    System.IDisposable
    System.IComparable<T>
    System.IComparable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved