Back to Devexpress

Table.Style Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-table-83f7ad21.md

latest5.3 KB
Original Source

Table.Style Property

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

Declaration

csharp
TableStyle Style { get; set; }
vb
Property Style As TableStyle

Property Value

TypeDescription
TableStyle

A TableStyle interface specifying a style specific to tables in a document.

|

Remarks

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

csharp
// Apply a previously defined style.
table.Style = tStyleMain;
document.EndUpdate();

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/TableActions.cs#L107

csharp
// Apply a previously defined style.
table.Style = tStyleMain;
document.EndUpdate();

winforms-richedit-tables-simple-example/CS/TablesSimpleExample/Form1.cs#L227

csharp
// Apply a previously defined style to the table
document.Tables[0].Style = tStyleMain;
document.EndUpdate();

word-document-api-table-examples/CS/Program.cs#L211

csharp
// Apply a previously defined style to the table
    document.Tables[0].Style = tStyleMain;
}

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Table.vb#L127

vb
' Apply a previously defined style.
table.Style = tStyleMain
document.EndUpdate()

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/TableActions.vb#L97

vb
' Apply a previously defined style.
table.Style = tStyleMain
document.EndUpdate()

winforms-richedit-tables-simple-example/VB/TablesSimpleExample/Form1.vb#L185

vb
' Apply a previously defined style to the table
document.Tables(0).Style = tStyleMain
document.EndUpdate()

word-document-api-examples/VB/CodeExamples/TablesActions.vb#L209

vb
' 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

vb
' Apply a previously defined style to the table
    document.Tables(0).Style = tStyleMain
End Sub

See Also

TableStyleCollection

DefaultTableProperties

Table Interface

Table Members

DevExpress.XtraRichEdit.API.Native Namespace