Quantcast
Channel: Developer Express Inc.
Viewing all articles
Browse latest Browse all 2370

Word Processing Document API, Rich Text Editors (WinForms and WPF) — Text Rotation in Tables (v23.1)

$
0
0

As you may already know, we recently extended the capabilities of our Table API and added support for content rotation within document tables (v23.1). This feature is available for our word processing product line (Word Processing Document API, desktop Rich Text Editors).

Documents with rotated cell content can be displayed, printed, and exported (across supported file formats) without any content loss.

table with rotated text winforms rich text editor

The TableCell.TextDirection property allows you to specify the rotation angle for table cell content. Use this property as follows:

using (var wordProcessor = new RichEditDocumentServer()) {
   Document document = wordProcessor.Document;
   Table table = document.Tables[0];
   TableCell cell = table[3, 3];
   cell.TextDirection = TextDirection.Upward;
}

New UI elements within our desktop Rich Text Editors (WinForms and WPF) allow you and your users to quickly modify rotation angle within cells. Note that built-in Ribbon alignment buttons reflect the current state of cell content (Text Direction).


Viewing all articles
Browse latest Browse all 2370

Trending Articles