officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-tablestyle-799f8680.md
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
TableStyle Parent { get; set; }
Property Parent As TableStyle
| Type | Description |
|---|---|
| TableStyle |
A TableStyle object that is the parent style.
|
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
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
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
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
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
' 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