Class LayoutHelper
Provides utility methods for calculating cell content sizes, column widths, and layout boxes within a worksheet.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Layout
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public static class LayoutHelper
Methods
CalculateCellContentSize(Worksheet, Int32, Int32)
Calculates the size required to render the content of the cell at the specified row and column, accounting for text wrapping and formatting.
Declaration
public static Size CalculateCellContentSize(Worksheet worksheet, int rowIndex, int columnIndex)
Parameters
|
Worksheet
worksheet
The worksheet. |
|
System.Int32
rowIndex
Index of the row. |
|
System.Int32
columnIndex
Index of the column. |
Returns
|
System.Windows.Size
The size of the cell content. |
CalculateCellContentSize(Worksheet, CellIndex)
Calculates the size required to render the content of the specified cell, accounting for text wrapping and formatting.
Declaration
public static Size CalculateCellContentSize(Worksheet worksheet, CellIndex cellIndex)
Parameters
|
Worksheet
worksheet
The worksheet. |
|
CellIndex
cellIndex
Index of the cell. |
Returns
|
System.Windows.Size
The size of the cell content. |
CalculateCellLayoutBox(Worksheet, Int32, Int32)
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
worksheet
The worksheet. |
|
System.Int32
rowIndex
Index of the row. |
|
System.Int32
columnIndex
Index of the column. |
Returns
|
CellLayoutBox
The cell layout box. |
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
worksheet
The worksheet. |
|
CellIndex
cellIndex
Index of the cell. |
Returns
|
CellLayoutBox
The cell layout box. |