menu

WinForms

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

    Show / Hide Table of Contents

    Class CellSpanInfo

    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
    CoveredCellInfo
    Implements
    System.IComparable<CellSpanInfoBase>
    System.IComparable
    Inherited Members
    CellSpanInfoBase.Bottom
    CellSpanInfoBase.CompareTo(CellSpanInfoBase)
    CellSpanInfoBase.Contains(Int32, Int32)
    CellSpanInfoBase.Contains(RowColumnIndex)
    CellSpanInfoBase.ContainsColumn(Int32)
    CellSpanInfoBase.ContainsRow(Int32)
    CellSpanInfoBase.Height
    CellSpanInfoBase.IComparable.CompareTo(Object)
    CellSpanInfoBase.Left
    CellSpanInfoBase.Offset(Int32, Int32)
    CellSpanInfoBase.Offset(Int32, Int32, Boolean, Boolean)
    CellSpanInfoBase.Right
    CellSpanInfoBase.Top
    CellSpanInfoBase.Width
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Syncfusion.Windows.Forms.CellGrid
    Assembly: Syncfusion.Spreadsheet.Windows.dll
    Syntax
    public class CellSpanInfo : CellSpanInfoBase, IComparable<CellSpanInfoBase>, IComparable

    Constructors

    CellSpanInfo()

    Initializes a new instance of the CellSpanInfo class.

    Declaration
    public CellSpanInfo()

    CellSpanInfo(Int32, Int32, Int32, Int32)

    Initializes a new instance of the CellSpanInfo class.

    Declaration
    public CellSpanInfo(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.

    CellSpanInfo(Int32, Int32, Int32, Int32, Boolean, Boolean)

    Initializes a new instance of the CellSpanInfo class.

    Declaration
    public CellSpanInfo(int top, int left, int bottom, int right, bool clipRows, bool clipColumns)
    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.

    System.Boolean clipRows

    if set to true allow estimates for out of view rows.

    System.Boolean clipColumns

    if set to true allow estimates for out of view columns.

    Properties

    ClipColumns

    Gets or sets a value indicating whether to allow estimates for out of view columns when calculating the height in points for the spanned range.

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

    true if estimates are allowed for out of view columns; otherwise, false.

    ClipRows

    Gets or sets a value indicating whether to allow estimates for out of view rows when calculating the height in points for the spanned range.

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

    true if estimates are allowed for out of view rows; otherwise, false.

    Methods

    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
    CellSpanInfoBase.Equals(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
    CellSpanInfoBase.GetHashCode()

    ToString()

    Returns a string describing the state of the object.

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

    Implements

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