Holds per-sheet UI state (undo/redo history, rendering layout) that is not part of the document model.
Object
Namespace: Radzen.Blazor.Spreadsheet
Assembly: Radzen.Blazor.dll
public class SheetViewInitializes a new instance of the SheetView class.
public SheetView(Documents.Spreadsheet.Worksheet sheet)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Worksheet | sheet |
Gets or sets the header offset for columns (width of row headers in pixels).
public double ColumnHeaderOffset { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the header offset for columns (width of row headers in pixels). |
Gets the per-sheet undo/redo stack.
public Spreadsheet.UndoRedoStack Commands { get; }
| Type | Description |
|---|---|
| Spreadsheet.UndoRedoStack | Gets the per-sheet undo/redo stack. |
Gets the per-sheet editor.
public Spreadsheet.Editor Editor { get; }
| Type | Description |
|---|---|
| Spreadsheet.Editor | Gets the per-sheet editor. |
Gets or sets the header offset for rows (height of column headers in pixels).
public double RowHeaderOffset { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the header offset for rows (height of column headers in pixels). |
Gets or sets the horizontal scroll position for this sheet.
public double ScrollLeft { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the horizontal scroll position for this sheet. |
Gets or sets the vertical scroll position for this sheet.
public double ScrollTop { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the vertical scroll position for this sheet. |
Gets the total scrollable height including the row header offset.
public double TotalHeight { get; }
| Type | Description |
|---|---|
| double | Gets the total scrollable height including the row header offset. |
Gets the total scrollable width including the column header offset.
public double TotalWidth { get; }
| Type | Description |
|---|---|
| double | Gets the total scrollable width including the column header offset. |
Gets the document sheet this view wraps.
public Documents.Spreadsheet.Worksheet Worksheet { get; }
| Type | Description |
|---|---|
| Documents.Spreadsheet.Worksheet | Gets the document sheet this view wraps. |
Gets the pixel range for the specified column indices, offset by the column header width.
public Spreadsheet.PixelRange GetColumnPixelRange(int startIndex, int endIndex)
| Type | Name | Description |
|---|---|---|
| int | startIndex | |
| int | endIndex |
| Type | Description |
|---|---|
| Spreadsheet.PixelRange |
Gets the pixel range for the specified column indices, offset by the column header width.
public Spreadsheet.PixelRange GetColumnPixelRange(int index)
| Type | Name | Description |
|---|---|---|
| int | index |
| Type | Description |
|---|---|
| Spreadsheet.PixelRange |
Gets the visible column index range for the given scroll position and viewport width. Accounts for the column header offset.
public Spreadsheet.IndexRange GetColumnRange(double start, double end, bool includeFrozen)
| Type | Name | Description |
|---|---|---|
| double | start | |
| double | end | |
| bool | includeFrozen |
| Type | Description |
|---|---|
| Spreadsheet.IndexRange |
Splits a range into regions based on frozen pane boundaries for rendering.
public IEnumerable<Spreadsheet.RangeInfo> GetRanges(Documents.Spreadsheet.RangeRef range)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.RangeRef | range |
| Type | Description |
|---|---|
| IEnumerable<Spreadsheet.RangeInfo> |
Gets the pixel range for the specified row indices, offset by the row header height.
public Spreadsheet.PixelRange GetRowPixelRange(int startIndex, int endIndex)
| Type | Name | Description |
|---|---|---|
| int | startIndex | |
| int | endIndex |
| Type | Description |
|---|---|
| Spreadsheet.PixelRange |
Gets the pixel range for the specified row indices, offset by the row header height.
public Spreadsheet.PixelRange GetRowPixelRange(int index)
| Type | Name | Description |
|---|---|---|
| int | index |
| Type | Description |
|---|---|
| Spreadsheet.PixelRange |
Gets the visible row index range for the given scroll position and viewport height. Accounts for the row header offset.
public Spreadsheet.IndexRange GetRowRange(double start, double end, bool includeFrozen)
| Type | Name | Description |
|---|---|---|
| double | start | |
| double | end | |
| bool | includeFrozen |
| Type | Description |
|---|---|
| Spreadsheet.IndexRange |