SheetViewport
Manages the visible area and frozen panes of a worksheet, translating between document coordinates and view coordinates.
Definition
Namespace:Telerik.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
Determines whether the viewport contains the specified point within any pane.
public bool Contains(Point point)
The point.
Returns:True if contains the point.
Determines whether the viewport contains the specified bounding rectangle within any pane.
public bool Contains(Rect boundingRectangle)
The bounding rectangle.
Returns:Converts a point from view coordinates to document coordinates, accounting for frozen panes and scaling.
public Point GetDocumentPointFromViewPoint(Point point)
The view point point.
Returns:Point
The document point.
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.
public Point GetTopLeftPoint()
Point
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.
Converts a point from document coordinates to view coordinates, accounting for frozen panes and scaling.
public Point GetViewPointFromDocumentPoint(Point point)
The document point.
Returns:Point
The view point.
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:Point
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.