officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraphstyle.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
ParagraphStyle Parent { get; set; }
Property Parent As ParagraphStyle
| Type | Description |
|---|---|
| ParagraphStyle |
A CharacterStyle object representing the parent style.
|
When creating a new style, you do not have to specify all formatting 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-table-of-contents-practical-guide/CS/Form1.cs#L120
paragraphStyle.Name = styleName;
paragraphStyle.Parent = Document.ParagraphStyles["Normal"];
paragraphStyle.OutlineLevel = level;
word-processing-table-of-contents-practical-guide/CS/Program.cs#L156
paragraphStyle.Name = styleName;
paragraphStyle.Parent = document.ParagraphStyles["Normal"];
paragraphStyle.OutlineLevel = level;
winforms-richedit-table-of-contents-practical-guide/VB/Form1.vb#L111
paragraphStyle.Name = styleName
paragraphStyle.Parent = Document.ParagraphStyles("Normal")
paragraphStyle.OutlineLevel = level
word-processing-table-of-contents-practical-guide/VB/Program.vb#L150
paragraphStyle.Name = styleName
paragraphStyle.Parent = document.ParagraphStyles("Normal")
paragraphStyle.OutlineLevel = level
See Also