Back to Devexpress

ParagraphStyle.Parent Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraphstyle.md

latest3.4 KB
Original Source

ParagraphStyle.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
ParagraphStyle Parent { get; set; }
vb
Property Parent As ParagraphStyle

Property Value

TypeDescription
ParagraphStyle

A CharacterStyle object representing the parent style.

|

Remarks

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

csharp
paragraphStyle.Name = styleName;
paragraphStyle.Parent = Document.ParagraphStyles["Normal"];
paragraphStyle.OutlineLevel = level;

word-processing-table-of-contents-practical-guide/CS/Program.cs#L156

csharp
paragraphStyle.Name = styleName;
paragraphStyle.Parent = document.ParagraphStyles["Normal"];
paragraphStyle.OutlineLevel = level;

winforms-richedit-table-of-contents-practical-guide/VB/Form1.vb#L111

vb
paragraphStyle.Name = styleName
paragraphStyle.Parent = Document.ParagraphStyles("Normal")
paragraphStyle.OutlineLevel = level

word-processing-table-of-contents-practical-guide/VB/Program.vb#L150

vb
paragraphStyle.Name = styleName
paragraphStyle.Parent = document.ParagraphStyles("Normal")
paragraphStyle.OutlineLevel = level

See Also

ParagraphStyle Interface

ParagraphStyle Members

DevExpress.XtraRichEdit.API.Native Namespace