[]
        
(Showing Draft Content)

C1.WPF.FlexGrid.CellRange

CellRange Struct

Represents a rectangular group of cells defined by two row indices and two column indices.

Namespace: C1.WPF.FlexGrid
Assembly: C1.WPF.FlexGrid.4.6.2.dll
Syntax
public struct CellRange

Constructors

Name Description
CellRange(int, int)

Initializes a new instance of a CellRange containing a single cell.

CellRange(int, int, int, int)

Initializes a new instance of a CellRange.

CellRange(UIElement)

Initializes a new instance of a CellRange based on a UIElement that represents a cell.

Properties

Name Description
BottomRow

Gets the index of the bottom row in this CellRange.

Cells

Gets an IEnumerable that can be used to iterate over the cells in this CellRange.

Column

Gets or sets the index of the first column in this CellRange.

Column2

Gets or sets the index of the last column in this CellRange.

ColumnCount

Gets cell range column count.

ColumnSpan

Gets or sets the number of columns in CellRange.

Empty

Gets a special value that represents an invalid range.

IsSingleCell

Gets a value that indicates whether this range contains a single cell.

IsValid

Gets a value that indicates whether this range is valid.

LeftColumn

Gets the index of the left column in this CellRange.

RightColumn

Gets the index of the right column in this CellRange.

Row

Gets or sets the index of the first row in this CellRange.

Row2

Gets or sets the index of the last row in this CellRange.

RowCount

Gets cell range row count.

RowSpan

Gets or sets the number of rows in CellRange.

TopRow

Gets the index of the top row in this CellRange.

Methods

Name Description
Contains(CellRange)

Gets a value that indicates whether this range contains another range.

Contains(int, int)

Gets a value that indicates whether this range contains a given cell.

ContainsColumn(int)

Gets a value that indicates whether this range contains a given column.

ContainsRow(int)

Gets a value that indicates whether this range contains a given row.

Equals(object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

Intersection(CellRange)

Gets a CellRange that represents the intersection of this range with a given range.

Intersects(CellRange)

Gets a value that indicates whether this range intersects with a given range.

Normalize()

Returns a new CellRange normalized so Row is less than or equal to Row2 and Column is less than or equal to Column2.

SetRange(int, int)

Sets the value of the Row, Row2, Column, and Column2 properties.

SetRange(int, int, int, int)

Sets the value of the Row, Row2, Column, and Column2 properties.

Union(CellRange)

Gets a CellRange that represents the union of this range with a given range.

Operators

Name Description
operator ==(CellRange, CellRange)

Equality operator for CellRange objects.

operator !=(CellRange, CellRange)

Inequality operator for CellRange objects.