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