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