officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-table-83f7ad21.md
Gets or sets the style applied to the table.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
TableStyle Style { get; set; }
Property Style As TableStyle
| Type | Description |
|---|---|
| TableStyle |
A TableStyle interface specifying a style specific to tables in a document.
|
Use the TableStyleCollection.CreateNew method to create a new style.
To specify default table formatting, you can use the Document.DefaultTableProperties property.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Style property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/Table.cs#L139
// Apply a previously defined style.
table.Style = tStyleMain;
document.EndUpdate();
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/TableActions.cs#L107
// Apply a previously defined style.
table.Style = tStyleMain;
document.EndUpdate();
winforms-richedit-tables-simple-example/CS/TablesSimpleExample/Form1.cs#L227
// Apply a previously defined style to the table
document.Tables[0].Style = tStyleMain;
document.EndUpdate();
word-document-api-table-examples/CS/Program.cs#L211
// Apply a previously defined style to the table
document.Tables[0].Style = tStyleMain;
}
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Table.vb#L127
' Apply a previously defined style.
table.Style = tStyleMain
document.EndUpdate()
wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/TableActions.vb#L97
' Apply a previously defined style.
table.Style = tStyleMain
document.EndUpdate()
winforms-richedit-tables-simple-example/VB/TablesSimpleExample/Form1.vb#L185
' Apply a previously defined style to the table
document.Tables(0).Style = tStyleMain
document.EndUpdate()
word-document-api-examples/VB/CodeExamples/TablesActions.vb#L209
' Apply the created style to the table.
table.Style = myNewStyle
' Apply special formatting to the first row and first column.
word-document-api-table-examples/VB/Program.vb#L169
' Apply a previously defined style to the table
document.Tables(0).Style = tStyleMain
End Sub
See Also