SheetViewport
Manages the visible area and frozen panes of a worksheet, translating between document coordinates and view coordinates.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Layout
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class SheetViewport
Inheritance: objectSheetViewport
Properties
Gets the total visible height across all viewport panes.
public double Height { get; }
The height.
Gets or sets the ViewportPane of the specified type.
public ViewportPane this[ViewportPaneType pane] { get; set; }
The viewport pane.
Gets the array of non-empty viewport panes created by frozen rows or columns.
public ViewportPane[] ViewportPanes { get; }
The viewport panes.
Gets the count of non-empty viewport panes created by frozen rows or columns.
public int ViewportPanesCount { get; }
The viewport panes count.
Methods
Gets the leftmost viewport pane that contains the specified row index.
public ViewportPane GetLeftMostViewportPaneContainingRowIndex(int rowIndex)
Index of the row.
Returns:The viewport pane containing row index.
Gets the top-left corner point of the first non-empty viewport pane.
Gets the topmost viewport pane that contains the specified column index.
public ViewportPane GetTopMostViewportPaneContainingColumnIndex(int columnIndex)
Index of the column.
Returns:The viewport pane containing column index.
Gets the viewport pane that contains the specified cell index.
public ViewportPane GetViewportPaneContainingCellIndex(CellIndex index)
The index.
Returns:The viewport pane containing cell.
Determines which viewport pane contains the specified point in document coordinates.
public ViewportPane GetViewportPaneFromDocumentPoint(Point point)
The document point.
Returns:The viewport pane.
Translates the specified point to viewport coordinates relative to the containing pane.
public Point Translate(Point point, ViewportPaneType pointContainingPaneType)
The point.
pointContainingPaneTypeViewportPaneTypeType of the pane that contains the point.
Returns:The translated point.
Operators
Implements the less operator.
public static bool operator !=(SheetViewport first, SheetViewport second)
The first value.
secondSheetViewportThe second value.
Returns:The result of the operator.
Implements the equals operator.
public static bool operator ==(SheetViewport first, SheetViewport second)
The first value.
secondSheetViewportThe second value.
Returns:The result of the operator.