ClassLayoutHelper
Provides utility methods for calculating cell content sizes, column widths, and layout boxes within a worksheet.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Layout
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public static class LayoutHelper
Inheritance: objectLayoutHelper
Methods
CalculateCellContentSize(Worksheet, CellIndex)
Calculates the size required to render the content of the specified cell, accounting for text wrapping and formatting.
CalculateCellContentSize(Worksheet, int, int)
Calculates the size required to render the content of the cell at the specified row and column, accounting for text wrapping and formatting.
CalculateCellLayoutBox(Worksheet, CellIndex)
Calculates the positioned layout box for the specified cell, handling merged cell regions when present.
Declaration
public static CellLayoutBox CalculateCellLayoutBox(Worksheet worksheet, CellIndex cellIndex)
Parameters
worksheet
The worksheet.
cellIndex
Index of the cell.
Returns
The cell layout box.
CalculateCellLayoutBox(Worksheet, int, int)
Calculates the positioned layout box for the cell at the specified row and column, handling merged cell regions when present.
Declaration
public static CellLayoutBox CalculateCellLayoutBox(Worksheet worksheet, int rowIndex, int columnIndex)
Parameters
worksheet
The worksheet.
rowIndex
Index of the row.
columnIndex
Index of the column.
Returns
The cell layout box.