Interface ITableMetrics
An interface that encapsulates data about the current TableBase layout.
Namespace: Telerik.Windows.Controls.Pivot
Assembly: Telerik.Windows.Controls.Pivot.dll
Syntax
public interface ITableMetrics
Properties
CellsBounds
Gets the rectangle that contains the visible cells.
Declaration
Rect CellsBounds { get; }
Property Value
System.Windows.Rect
|
ColumnHeadersBounds
Gets the rectangle that contains the visible column headers.
Declaration
Rect ColumnHeadersBounds { get; }
Property Value
System.Windows.Rect
|
Columns
Gets and enumeration with the currently visible columns.
Declaration
IEnumerable<int> Columns { get; }
Property Value
System.Collections.Generic.IEnumerable<System.Int32>
|
RowHeadersBounds
Gets the rectangle that contains the visible row headers.
Declaration
Rect RowHeadersBounds { get; }
Property Value
System.Windows.Rect
|
Rows
Gets an enumeration with the currently visible rows.
Declaration
IEnumerable<int> Rows { get; }
Property Value
System.Collections.Generic.IEnumerable<System.Int32>
|
Methods
ColumnAt(Double)
Gets a column from physical point.
Declaration
int ColumnAt(double x)
Parameters
System.Double
x
The x coordinate. |
Returns
System.Int32
The column id. |
GetCellBounds(Int32, Int32)
Gets the bounds of a cell identified by row and column ids.
Declaration
Rect GetCellBounds(int row, int column)
Parameters
System.Int32
row
The row id. |
System.Int32
column
The column id. |
Returns
System.Windows.Rect
The rectangle that contains the cell. |
GetCellData(Int32, Int32)
Gets the data object displayed in a single cell.
Declaration
object GetCellData(int row, int column)
Parameters
System.Int32
row
The cell's row id. |
System.Int32
column
The cell's column id. |
Returns
System.Object
The data. |
GetColumnHeaderBounds(Int32, Int32)
Gets the bounds of a header identified by header row and column ids.
Declaration
Rect GetColumnHeaderBounds(int headerRow, int column)
Parameters
System.Int32
headerRow
The header row id. |
System.Int32
column
The column id. |
Returns
System.Windows.Rect
The rectangle that contains the header. |
GetRowHeaderBounds(Int32, Int32)
Gets the bounds of a header identified by row and header column ids.
Declaration
Rect GetRowHeaderBounds(int row, int headerColumn)
Parameters
System.Int32
row
The row id. |
System.Int32
headerColumn
The header column id. |
Returns
System.Windows.Rect
The rectangle that contains the header. |
HeaderColumnAt(Double)
Gets a headers column from physical point.
Declaration
int HeaderColumnAt(double x)
Parameters
System.Double
x
The x coordinate. |
Returns
System.Int32
The column id. |
HeaderRowAt(Double)
Gets a headers row from physical point.
Declaration
int HeaderRowAt(double y)
Parameters
System.Double
y
The y coordinate. |
Returns
System.Int32
The row id. |
IsColumnInCurrentBounds(Int32)
Identifies whether the given column index is in the current metrics bounds.
Declaration
bool IsColumnInCurrentBounds(int column)
Parameters
System.Int32
column
|
Returns
System.Boolean
|
IsRowInCurrentBounds(Int32)
Identifies whether the given row index is in the current metrics bounds.
Declaration
bool IsRowInCurrentBounds(int row)
Parameters
System.Int32
row
|
Returns
System.Boolean
|
RowAt(Double)
Gets a row from physical point.
Declaration
int RowAt(double y)
Parameters
System.Double
y
The y coordinate. |
Returns
System.Int32
The row id. |