Class TablePropertiesEditor
Encapsulates logic for editing current table in Rad
Inheritance
Namespace: Telerik.Windows.Documents.UI.Extensibility
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class TablePropertiesEditor : Object
Constructors
TablePropertiesEditor(RadRichTextBox)
Initializes a new instance of the Table
Declaration
public TablePropertiesEditor(RadRichTextBox radRichTextBox)
Parameters
Rad
|
Properties
GridColumnsCount
Gets the current table grid columns count.
Declaration
public int GridColumnsCount { get; }
Property Value
System. The grid columns count. |
GridRowsCount
Gets the current table grid rows count.
Declaration
public int GridRowsCount { get; }
Property Value
System. The grid rows count. |
InitialGridColumnIndex
Gets the initial grid column index of the current cell in the current table.
Declaration
public int InitialGridColumnIndex { get; }
Property Value
System. The initial grid column index of the current cell. |
InitialGridRowIndex
Gets the initial grid row index of the current cell in the current table.
Declaration
public int InitialGridRowIndex { get; }
Property Value
System. The initial index of the grid row. |
Methods
ChangeTableRowHeight(TableRow, Double)
Changes the height of the table row.
Declaration
public void ChangeTableRowHeight(TableRow row, double height)
Parameters
Table The row. |
System. The height. |
ChangeTableRowRepeatOnEveryPage(TableRow)
Changes the table row repeat on every page property.
Declaration
public void ChangeTableRowRepeatOnEveryPage(TableRow row)
Parameters
Table The row. |
ClearAllTableCellBorders()
Clears all cell borders of the current table.
Declaration
public void ClearAllTableCellBorders()
ClearCommands()
Clears all the commands.
Declaration
public void ClearCommands()
ClearSelectedCellBorders()
Clears all adjacent cell borders of the currently selected cells.
Declaration
public void ClearSelectedCellBorders()
ExecuteCommands()
Executes all the commands.
Declaration
public void ExecuteCommands()
GetCurrentTable()
GetGridColumnWidth(Int32)
Gets the width of the grid column.
Declaration
public TableWidthUnit GetGridColumnWidth(int gridColumnIndex)
Parameters
System. Index of the grid column. |
Returns
GetTargetCells()
Gets selected cells, or current cell if there isn't selection.
Declaration
public IEnumerable<TableCell> GetTargetCells()
Returns
System.
|
SelectTableColumn(Int32)
Selects the table column.
Declaration
public void SelectTableColumn(int gridColumnIndex)
Parameters
System. Index of the grid column. |
SelectTableRow(Int32)
Selects the table row.
Declaration
public void SelectTableRow(int gridRowIndex)
Parameters
System. Index of the grid row. |
SetGridColumnWidth(Int32, TableWidthUnit)
Sets the width of the grid column.
Declaration
public void SetGridColumnWidth(int gridColumnIndex, TableWidthUnit tableWidthUnit)
Parameters
System. Index of the grid column. |
Table The table width. |
SetTableBorders(TableBorders)
Sets the target cells borders.
Declaration
public void SetTableBorders(TableBorders tableBorders)
Parameters
Table
|
SetTableCellSpacing(Double)
Changes the spacing between cells.
Declaration
public void SetTableCellSpacing(double cellSpacing)
Parameters
System. The new cell spacing. |
SetTableDefaultCellPadding(Padding)
Changes the table cells default padding.
Declaration
public void SetTableDefaultCellPadding(Padding defaultCellPadding)
Parameters
Padding
defaultCellPadding
The default cell padding for the table. |
SetTableFlowDirection(FlowDirection)
Changes the table flow direction.
Declaration
public void SetTableFlowDirection(FlowDirection flowDirection)
Parameters
System. The flow direction. |
SetTableHorizontalAlignment(RadHorizontalAlignment)
Declaration
public void SetTableHorizontalAlignment(RadHorizontalAlignment tableAlign)
Parameters
Rad
|
SetTableIndent(Double)
Changes the table indent.
Declaration
public void SetTableIndent(double tableIndent)
Parameters
System. The new indent. |
SetTableWidth(TableWidthUnit)
Changes the width of the table.
Declaration
public void SetTableWidth(TableWidthUnit tableWidth)
Parameters
Table Width of the table. |
SetTargetCellsBackground(Color)
Sets the target cells background.
Declaration
public void SetTargetCellsBackground(Color backgroundColor)
Parameters
System. Color of the background. |
SetTargetCellsBorders(TableCellBorders)
Sets the target cells borders.
Declaration
public void SetTargetCellsBorders(TableCellBorders cellBorders)
Parameters
Table The TableCellBorders. |
SetTargetCellsContentAlignment(RadTextAlignment, RadVerticalAlignment)
Changes the table cell content alignment.
Declaration
public void SetTargetCellsContentAlignment(RadTextAlignment textAlignment, RadVerticalAlignment verticalAlignment)
Parameters
Rad The text alignment. |
Rad The vertical content alignment. |
SetTargetCellsPadding(Padding)
Changes the table cell padding.
Declaration
public void SetTargetCellsPadding(Padding cellPadding)
Parameters
Padding
cellPadding
The cell padding. |