Back to Devexpress

TableStyle.Name Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-tablestyle-97883064.md

latest4.5 KB
Original Source

TableStyle.Name Property

Gets or sets the name of the style.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
string Name { get; set; }
vb
Property Name As String

Property Value

TypeDescription
String

A string specifying the style name.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Name 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#L126

csharp
tStyleMain.TableLayout = TableLayoutType.Fixed;
tStyleMain.Name = "MyTableStyle";
//Add the style to the document.

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

csharp
tStyleMain.TableLayout = TableLayoutType.Fixed;
tStyleMain.Name = "MyTableStyle";
//Add the style to the document.

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

csharp
tStyleMain.CellBackgroundColor = Color.FromArgb(227, 238, 220);
tStyleMain.Name = "MyTableStyle";

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

csharp
tStyleMain.CellBackgroundColor = Color.FromArgb(227, 238, 220);
tStyleMain.Name = "MyTableStyle";

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

vb
tStyleMain.TableLayout = DevExpress.XtraRichEdit.API.Native.TableLayoutType.Fixed
tStyleMain.Name = "MyTableStyle"
'Add the style to the document.

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

vb
tStyleMain.TableLayout = TableLayoutType.Fixed
tStyleMain.Name = "MyTableStyle"
'Add the style to the document.

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

vb
tStyleMain.CellBackgroundColor = Color.FromArgb(227, 238, 220)
tStyleMain.Name = "MyTableStyle"
' Add the style to the document collection

word-document-api-table-examples/VB/Program.vb#L159

vb
tStyleMain.CellBackgroundColor = Color.FromArgb(227, 238, 220)
tStyleMain.Name = "MyTableStyle"
'Add the style to the document collection

See Also

TableStyle Interface

TableStyle Members

DevExpress.XtraRichEdit.API.Native Namespace