skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class TablePropertiesEditor

Encapsulates logic for editing current table in RadRichTextBox.

Inheritance
System.Object
TablePropertiesEditor
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 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()

Retrieves the current table from the Table Properties Editor.

Declaration
public Table GetCurrentTable()
Returns
Table

The current table as an object of type T, or null if no table is currently selected.

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
System.Windows.FlowDirection flowDirection

The flow direction.

SetTableHorizontalAlignment(RadHorizontalAlignment)

Sets the horizontal alignment of the table.

Declaration
public void SetTableHorizontalAlignment(RadHorizontalAlignment tableAlign)
Parameters
RadHorizontalAlignment tableAlign

The RadHorizontalAlignment value that specifies the horizontal alignment to set for the table.

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
System.Windows.Media.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, 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.

SetTargetCellsPadding(Padding)

Changes the table cell padding.

Declaration
public void SetTargetCellsPadding(Padding cellPadding)
Parameters
Padding cellPadding

The cell padding.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.