Back to Devexpress

TableStyle.Parent Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-tablestyle-799f8680.md

latest4.1 KB
Original Source

TableStyle.Parent Property

Gets or sets the style from which the current style inherits.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

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

Property Value

TypeDescription
TableStyle

A TableStyle object that is the parent style.

|

Remarks

When creating a new style, you do not have to specify all properties. Instead you can specify the parent style and change only the required properties.

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

csharp
TableStyle myNewStyle = document.TableStyles.CreateNew();
myNewStyle.Parent = document.TableStyles["Grid Table 5 Dark Accent 1"];
// Create conditional styles (styles for table elements)

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

csharp
TableStyle myNewStyle = document.TableStyles.CreateNew();
myNewStyle.Parent = document.TableStyles["Grid Table 5 Dark Accent 1"];
// Create conditional styles (styles for table elements)

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

vb
Dim myNewStyle As DevExpress.XtraRichEdit.API.Native.TableStyle = document.TableStyles.CreateNew()
myNewStyle.Parent = document.TableStyles("Grid Table 5 Dark Accent 1")
' Create conditional styles (styles for table elements)

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

vb
Dim myNewStyle As TableStyle = document.TableStyles.CreateNew()
myNewStyle.Parent = document.TableStyles("Grid Table 5 Dark Accent 1")
' Create conditional styles (styles for table elements)

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

vb
' The created style inherits from the 'Grid Table 5 Dark Accent 1' style defined in the loaded document.
myNewStyle.Parent = document.TableStyles("Grid Table 5 Dark Accent 1")
' Create conditional styles for table elements.

See Also

TableStyle Interface

TableStyle Members

DevExpress.XtraRichEdit.API.Native Namespace