The CellRange type exposes the following members.

Constructors

  Name Description
Public method CellRange(UIElement)
Initializes a new instance of a CellRange based on a UIElement that represents a cell.
Public method CellRange(Int32, Int32)
Initializes a new instance of a CellRange containing a single cell.
Public method CellRange(Int32, Int32, Int32, Int32)
Initializes a new instance of a CellRange.

Methods

  Name Description
Public method Contains(CellRange)
Gets a value that indicates whether this range contains another range.
Public method Contains(Int32, Int32)
Gets a value that indicates whether this range contains a given cell.
Public method ContainsColumn
Gets a value that indicates whether this range contains a given column.
Public method ContainsRow
Gets a value that indicates whether this range contains a given row.
Public method Equals
Indicates whether this instance and a specified object are equal.
(Overrides ValueType..::..Equals(Object).)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Returns the hash code for this instance.
(Overrides ValueType..::..GetHashCode()()()().)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method Intersection
Gets a CellRange that represents the intersection of this range with a given range.
Public method Intersects
Gets a value that indicates whether this range intersects with a given range.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Normalize
Returns a new CellRange normalized so Row is less than or equal to Row2 and Column is less than or equal to Column2.
Public method SetRange(Int32, Int32)
Sets the value of the Row, Row2, Column, and Column2 properties.
Public method SetRange(Int32, Int32, Int32, Int32)
Sets the value of the Row, Row2, Column, and Column2 properties.
Public method ToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Public method Union
Gets a CellRange that represents the union of this range with a given range.

Operators

  Name Description
Public operator Static member Equality
Equality operator for CellRange objects.
Public operator Static member Inequality
Inequality operator for CellRange objects.

Properties

  Name Description
Public property BottomRow
Gets the index of the bottom row in this CellRange.
Public property Cells
Gets an IEnumerable that can be used to iterate over the cells in this CellRange.
Public property Column
Gets or sets the index of the first column in this CellRange.
Public property Column2
Gets or sets the index of the last column in this CellRange.
Public property ColumnSpan
Gets or sets the number of columns in CellRange.
Public property Static member Empty
Gets a special value that represents an invalid range.
Public property IsSingleCell
Gets a value that indicates whether this range contains a single cell.
Public property IsValid
Gets a value that indicates whether this range is valid.
Public property LeftColumn
Gets the index of the left column in this CellRange.
Public property RightColumn
Gets the index of the right column in this CellRange.
Public property Row
Gets or sets the index of the first row in this CellRange.
Public property Row2
Gets or sets the index of the last row in this CellRange.
Public property RowSpan
Gets or sets the number of rows in CellRange.
Public property TopRow
Gets the index of the top row in this CellRange.

See Also