Back to Devexpress

ParagraphStyle.Name Property

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

latest5.5 KB
Original Source

ParagraphStyle.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-rich-edit-text-formatting/CS/Text Formatting Example/Form1.cs#L97

csharp
ParagraphStyle chapterStyle = document.ParagraphStyles.CreateNew();
chapterStyle.Name = "MyTitleStyle";
chapterStyle.ForeColor = Color.SteelBlue;

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/Styles.cs#L43

csharp
pstyle = document.ParagraphStyles.CreateNew();
pstyle.Name = "MyPStyle";
pstyle.LineSpacingType = ParagraphLineSpacing.Double;

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/StylesActions.cs#L43

csharp
pstyle = document.ParagraphStyles.CreateNew();
pstyle.Name = "MyPStyle";
pstyle.LineSpacingType = ParagraphLineSpacing.Double;

winforms-richedit-table-of-contents-practical-guide/CS/Form1.cs#L119

csharp
paragraphStyle = Document.ParagraphStyles.CreateNew();
paragraphStyle.Name = styleName;
paragraphStyle.Parent = Document.ParagraphStyles["Normal"];

word-document-api-examples/CS/CodeExamples/StylesActions.cs#L75

csharp
pstyle = document.ParagraphStyles.CreateNew();
pstyle.Name = "MyPStyle";
pstyle.LineSpacingType = ParagraphLineSpacing.Double;

winforms-rich-edit-text-formatting/VB/Text Formatting Example/Form1.vb#L92

vb
Dim chapterStyle As ParagraphStyle = document.ParagraphStyles.CreateNew()
chapterStyle.Name = "MyTitleStyle"
chapterStyle.ForeColor = Color.SteelBlue

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Styles.vb#L39

vb
pstyle = document.ParagraphStyles.CreateNew()
pstyle.Name = "MyPStyle"
pstyle.LineSpacingType = DevExpress.XtraRichEdit.API.Native.ParagraphLineSpacing.[Double]

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/StylesActions.vb#L36

vb
pstyle = document.ParagraphStyles.CreateNew()
pstyle.Name = "MyPStyle"
pstyle.LineSpacingType = ParagraphLineSpacing.Double

word-document-api-examples/VB/CodeExamples/StylesActions.vb#L63

vb
pstyle = document.ParagraphStyles.CreateNew()
pstyle.Name = "MyPStyle"
pstyle.LineSpacingType = DevExpress.XtraRichEdit.API.Native.ParagraphLineSpacing.[Double]

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

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

See Also

ParagraphStyle Interface

ParagraphStyle Members

DevExpress.XtraRichEdit.API.Native Namespace