New to Telerik UI for WinFormsStart a free 30-day trial

Encapsulates logic for editing current table in RadRichTextBox.

Definition

Namespace:Telerik.WinForms.Documents.UI.Extensibility

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class TablePropertiesEditor

Inheritance: objectTablePropertiesEditor

Constructors

Initializes a new instance of the TablePropertiesEditor class.

C#
public TablePropertiesEditor(RadRichTextBox radRichTextBox)
Parameters:radRichTextBoxRadRichTextBox

Properties

Gets the current table grid columns count.

C#
public int GridColumnsCount { get; }
Property Value:

The grid columns count.

Gets the current table grid rows count.

C#
public int GridRowsCount { get; }
Property Value:

The grid rows count.

Gets the initial grid column index of the current cell in the current table.

C#
public int InitialGridColumnIndex { get; }
Property Value:

The initial grid column index of the current cell.

Gets the initial grid row index of the current cell in the current table.

C#
public int InitialGridRowIndex { get; }
Property Value:

The initial index of the grid row.

Methods

Changes the height of the table row.

C#
public void ChangeTableRowHeight(TableRow row, double height)
Parameters:rowTableRow

The row.

heightdouble

The height.

Changes the table row repeat on every page property.

C#
public void ChangeTableRowRepeatOnEveryPage(TableRow row)
Parameters:rowTableRow

The row.

Clears all cell borders of the current table.

C#
public void ClearAllTableCellBorders()

Clears all the commands.

C#
public void ClearCommands()

Clears all adjacent cell borders of the currently selected cells.

C#
public void ClearSelectedCellBorders()

Executes all the commands.

C#
public void ExecuteCommands()
C#
public Table GetCurrentTable()
Returns:

Table

Gets the width of the grid column.

C#
public TableWidthUnit GetGridColumnWidth(int gridColumnIndex)
Parameters:gridColumnIndexint

Index of the grid column.

Returns:

TableWidthUnit

Gets selected cells, or current cell if there isn't selection.

C#
public IEnumerable<TableCell> GetTargetCells()
Returns:

IEnumerable<TableCell>

Selects the table column.

C#
public void SelectTableColumn(int gridColumnIndex)
Parameters:gridColumnIndexint

Index of the grid column.

Selects the table row.

C#
public void SelectTableRow(int gridRowIndex)
Parameters:gridRowIndexint

Index of the grid row.

Sets the width of the grid column.

C#
public void SetGridColumnWidth(int gridColumnIndex, TableWidthUnit tableWidthUnit)
Parameters:gridColumnIndexint

Index of the grid column.

tableWidthUnitTableWidthUnit

The table width.

Sets the target cells borders.

C#
public void SetTableBorders(TableBorders tableBorders)
Parameters:tableBordersTableBorders

Changes the spacing between cells.

C#
public void SetTableCellSpacing(double cellSpacing)
Parameters:cellSpacingdouble

The new cell spacing.

Changes the table cells default padding.

C#
public void SetTableDefaultCellPadding(Padding defaultCellPadding)
Parameters:defaultCellPaddingPadding

The default cell padding for the table.

Changes the table flow direction.

C#
public void SetTableFlowDirection(FlowDirection flowDirection)
Parameters:flowDirectionFlowDirection

The flow direction.

C#
public void SetTableHorizontalAlignment(RadHorizontalAlignment tableAlign)
Parameters:tableAlignRadHorizontalAlignment

Changes the table indent.

C#
public void SetTableIndent(double tableIndent)
Parameters:tableIndentdouble

The new indent.

Changes the width of the table.

C#
public void SetTableWidth(TableWidthUnit tableWidth)
Parameters:tableWidthTableWidthUnit

Width of the table.

Sets the target cells background.

C#
public void SetTargetCellsBackground(Color backgroundColor)
Parameters:backgroundColorColor

Color of the background.

Sets the target cells borders.

C#
public void SetTargetCellsBorders(TableCellBorders cellBorders)
Parameters:cellBordersTableCellBorders

The TableCellBorders.

Changes the table cell content alignment.

C#
public void SetTargetCellsContentAlignment(RadTextAlignment textAlignment, RadVerticalAlignment verticalAlignment)
Parameters:textAlignmentRadTextAlignment

The text alignment.

verticalAlignmentRadVerticalAlignment

The vertical content alignment.

Changes the table cell content alignment.

C#
public void SetTargetCellsContentAlignment(RadTextAlignment textAlignment)
Parameters:textAlignmentRadTextAlignment

The text alignment.

Changes the table cell content alignment.

C#
public void SetTargetCellsContentAlignment(RadVerticalAlignment verticalAlignment)
Parameters:verticalAlignmentRadVerticalAlignment

The vertical content alignment.

Changes the table cell padding.

C#
public void SetTargetCellsPadding(Padding cellPadding)
Parameters:cellPaddingPadding

The cell padding.