WinForms

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

    Show / Hide Table of Contents

    Class CoveredCellInfo

    Represents a class that used to define the merge cells range by top, left, bottom and right.

    Inheritance
    System.Object
    CoveredCellInfo
    Implements
    System.IComparable<CoveredCellInfo>
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.WinForms.DataGrid
    Assembly: Syncfusion.SfDataGrid.WinForms.dll
    Syntax
    public class CoveredCellInfo : IComparable<CoveredCellInfo>

    Constructors

    CoveredCellInfo(Int32, Int32, Int32, Int32)

    Initializes a new instance of the CoveredCellInfo class.

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

    The left index of the range.

    System.Int32 right

    The right index of the range.

    System.Int32 top

    The top index of the range.

    System.Int32 bottom

    The bottom index of the range.

    Properties

    Bottom

    Gets the bottom index of the covered range.

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

    Height

    Gets the height of the range.

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

    Left

    Gets the left index of the covered range.

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

    Right

    Gets the right index of the covered range.

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

    Top

    Gets the top index of the covered range.

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

    Width

    Gets the width of the covered cells.

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

    Methods

    CompareTo(CoveredCellInfo)

    Compares the given range with the existing range.

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

    The range which needs to be compared.

    Returns
    Type Description
    System.Int32

    Return 0, if both values are equals; otherwise return Non-Zero.

    Contains(Int32, Int32)

    Checks whether the given row and column index is present in the range or not.

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

    The row index.

    System.Int32 columnIndex

    The column index.

    Returns
    Type Description
    System.Boolean

    Returns true, If the row index is present with in the range; Otherwise return false.

    ContainsColumn(Int32)

    Determines the specified column is inside range.

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

    The column index.

    Returns
    Type Description
    System.Boolean

    Return true, when the given column index is present in the range; otherwise return false.

    ContainsRow(Int32)

    Determines the specified row is inside span.

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

    The row index.

    Returns
    Type Description
    System.Boolean

    Returns true if the row is present in the covered cells range; otherwise return false.

    Equals(Object)

    Overridden to compare the given object with the CoveredCellInfo.

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

    The object which needs to be compared.

    Returns
    Type Description
    System.Boolean

    Returns true if both objects are equal, otherwise return false.

    Overrides
    System.Object.Equals(System.Object)

    Implements

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