GridViewport
public readonly struct GridViewport
Namespace SharpCell.Grid · package SharpCell.Grid
What part of the sheet a grid shows: the scroll offset into the sheet and the size of the whole grid on screen, headers included.
Constructors
GridViewport(double, double, double, double)
public GridViewport(double OffsetX, double OffsetY, double Width, double Height)
What part of the sheet a grid shows: the scroll offset into the sheet and the size of the whole grid on screen, headers included.
Parameters
OffsetX: How far the cells are scrolled to the left, in pixels.OffsetY: How far the cells are scrolled up, in pixels.Width: The width of the grid.Height: The height of the grid.
Properties
Height
public double Height { get; init; }
The height of the grid.
OffsetX
public double OffsetX { get; init; }
How far the cells are scrolled to the left, in pixels.
OffsetY
public double OffsetY { get; init; }
How far the cells are scrolled up, in pixels.
Width
public double Width { get; init; }
The width of the grid.