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
Initializes a new instance of the TablePropertiesEditor class.
public TablePropertiesEditor(RadRichTextBox radRichTextBox)
Properties
Gets the current table grid columns count.
public int GridColumnsCount { get; }
The grid columns count.
Gets the current table grid rows count.
public int GridRowsCount { get; }
The grid rows count.
Gets the initial grid column index of the current cell in the current table.
public int InitialGridColumnIndex { get; }
The initial grid column index of the current cell.
Gets the initial grid row index of the current cell in the current table.
public int InitialGridRowIndex { get; }
The initial index of the grid row.
Methods
Changes the table row repeat on every page property.
Clears all cell borders of the current table.
public void ClearAllTableCellBorders()
Clears all the commands.
public void ClearCommands()
Clears all adjacent cell borders of the currently selected cells.
public void ClearSelectedCellBorders()
Executes all the commands.
public void ExecuteCommands()
Gets the width of the grid column.
public TableWidthUnit GetGridColumnWidth(int gridColumnIndex)
Index of the grid column.
Returns:Gets selected cells, or current cell if there isn't selection.
Selects the table column.
public void SelectTableColumn(int gridColumnIndex)
Index of the grid column.
Selects the table row.
Sets the width of the grid column.
public void SetGridColumnWidth(int gridColumnIndex, TableWidthUnit tableWidthUnit)
Index of the grid column.
tableWidthUnitTableWidthUnitThe table width.
Sets the target cells borders.
Changes the spacing between cells.
public void SetTableCellSpacing(double cellSpacing)
The new cell spacing.
Changes the table cells default padding.
public void SetTableDefaultCellPadding(Padding defaultCellPadding)
The default cell padding for the table.
Changes the table flow direction.
public void SetTableFlowDirection(FlowDirection flowDirection)
The flow direction.
public void SetTableHorizontalAlignment(RadHorizontalAlignment tableAlign)
Changes the table indent.
Changes the width of the table.
public void SetTableWidth(TableWidthUnit tableWidth)
Width of the table.
Sets the target cells background.
public void SetTargetCellsBackground(Color backgroundColor)
Color of the background.
Sets the target cells borders.
public void SetTargetCellsBorders(TableCellBorders cellBorders)
The TableCellBorders.
Changes the table cell content alignment.
public void SetTargetCellsContentAlignment(RadTextAlignment textAlignment, RadVerticalAlignment verticalAlignment)
The text alignment.
verticalAlignmentRadVerticalAlignmentThe vertical content alignment.
Changes the table cell content alignment.
public void SetTargetCellsContentAlignment(RadTextAlignment textAlignment)
The text alignment.
Changes the table cell content alignment.
public void SetTargetCellsContentAlignment(RadVerticalAlignment verticalAlignment)
The vertical content alignment.
Changes the table cell padding.
public void SetTargetCellsPadding(Padding cellPadding)
The cell padding.