New to Telerik UI for WinFormsStart a free 30-day trial

Represents a viewport pane within a worksheet view, defining a rectangular region and its visible cell range.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Layout

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

C#
public class ViewportPane

Inheritance: objectViewportPane

Constructors

Initializes a new ViewportPane with the specified rectangle and type.

C#
public ViewportPane(Rect rect, ViewportPaneType viewportPaneType)
Parameters:rectRect

The rect.

viewportPaneTypeViewportPaneType

Type of the viewport pane.

Initializes a new ViewportPane with the specified type.

C#
public ViewportPane(ViewportPaneType viewportPaneType)
Parameters:viewportPaneTypeViewportPaneType

Type of the viewport pane.

Properties

Gets or sets the bounding rectangle defining this pane's position and size in view coordinates.

C#
public Rect BoundingRect { get; }
Property Value:

The bounding rect.

Gets whether this pane has zero width or height.

C#
public bool IsEmpty { get; }
Property Value:

The is empty.

Gets or sets the rectangle defining this pane's position and size in document coordinates.

C#
public Rect Rect { get; }
Property Value:

The rect.

Gets the type of this viewport pane, indicating its position relative to frozen rows and columns.

C#
public ViewportPaneType ViewportPaneType { get; }
Property Value:

The type of the viewport pane.

Gets or sets the cell range currently visible within this viewport pane.

C#
public CellRange VisibleRange { get; }
Property Value:

The visible range.

Methods

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

True if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()