ClassSheetViewport
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
Height
Gets the total visible height across all viewport panes.
ViewportPanes
Gets the array of non-empty viewport panes created by frozen rows or columns.
Declaration
public ViewportPane[] ViewportPanes { get; }
Property Value
The viewport panes.
ViewportPanesCount
Gets the count of non-empty viewport panes created by frozen rows or columns.
Declaration
public int ViewportPanesCount { get; }
Property Value
The viewport panes count.
Width
Gets the total visible width across all viewport panes.
this[ViewportPaneType]
Gets or sets the ViewportPane of the specified type.
Declaration
public ViewportPane this[ViewportPaneType pane] { get; set; }
Parameters
pane
Property Value
The viewport pane.
Methods
Contains(CellIndex)
Determines whether the viewport contains the specified cell index in any visible range.
Contains(Point)
Determines whether the viewport contains the specified point within any pane.
Contains(Rect)
Determines whether the viewport contains the specified bounding rectangle within any pane.
Contains(int, int)
Determines whether the viewport contains the cell at the specified row and column index in any visible range.
ContainsColumnIndex(int)
Determines whether the viewport contains the specified column index in any visible range.
ContainsRowIndex(int)
Determines whether the viewport contains the specified row index in any visible range.
GetCellRangeContainingCellIndex(CellIndex)
Gets the visible range of the viewport pane that contains the specified cell index.
GetCellRangeContainingCellIndex(int, int)
Gets the visible range of the viewport pane that contains the cell at the specified row and column.
GetDocumentPointFromViewPoint(Point)
Converts a point from view coordinates to document coordinates, accounting for frozen panes and scaling.
GetHashCode()
Serves as a hash function for a particular type.
GetLeftMostViewportPaneContainingRowIndex(int)
Gets the leftmost viewport pane that contains the specified row index.
Declaration
public ViewportPane GetLeftMostViewportPaneContainingRowIndex(int rowIndex)
Parameters
rowIndex
Index of the row.
Returns
The viewport pane containing row index.
GetTopLeftPoint()
Gets the top-left corner point of the first non-empty viewport pane.
GetTopMostViewportPaneContainingColumnIndex(int)
Gets the topmost viewport pane that contains the specified column index.
Declaration
public ViewportPane GetTopMostViewportPaneContainingColumnIndex(int columnIndex)
Parameters
columnIndex
Index of the column.
Returns
The viewport pane containing column index.
GetViewPointFromDocumentPoint(Point)
Converts a point from document coordinates to view coordinates, accounting for frozen panes and scaling.
GetViewportPaneContainingCellIndex(CellIndex)
Gets the viewport pane that contains the specified cell index.
Declaration
public ViewportPane GetViewportPaneContainingCellIndex(CellIndex index)
Parameters
index
The index.
Returns
The viewport pane containing cell.
GetViewportPaneFromDocumentPoint(Point)
Determines which viewport pane contains the specified point in document coordinates.
Declaration
public ViewportPane GetViewportPaneFromDocumentPoint(Point point)
Parameters
point
The document point.
Returns
The viewport pane.
Translate(Point, ViewportPaneType)
Translates the specified point to viewport coordinates relative to the containing pane.
Declaration
public Point Translate(Point point, ViewportPaneType pointContainingPaneType)
Parameters
point
The point.
pointContainingPaneType
Type of the pane that contains the point.
Returns
The translated point.
Operators
operator !=(SheetViewport, SheetViewport)
Implements the less operator.
Declaration
public static bool operator !=(SheetViewport first, SheetViewport second)
Parameters
first
The first value.
second
The second value.
Returns
The result of the operator.
operator ==(SheetViewport, SheetViewport)
Implements the equals operator.
Declaration
public static bool operator ==(SheetViewport first, SheetViewport second)
Parameters
first
The first value.
second
The second value.
Returns
The result of the operator.