officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraphstyle-3939fa36.md
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
string Name { get; set; }
Property Name As String
| Type | Description |
|---|---|
| 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
ParagraphStyle chapterStyle = document.ParagraphStyles.CreateNew();
chapterStyle.Name = "MyTitleStyle";
chapterStyle.ForeColor = Color.SteelBlue;
winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/Styles.cs#L43
pstyle = document.ParagraphStyles.CreateNew();
pstyle.Name = "MyPStyle";
pstyle.LineSpacingType = ParagraphLineSpacing.Double;
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/StylesActions.cs#L43
pstyle = document.ParagraphStyles.CreateNew();
pstyle.Name = "MyPStyle";
pstyle.LineSpacingType = ParagraphLineSpacing.Double;
winforms-richedit-table-of-contents-practical-guide/CS/Form1.cs#L119
paragraphStyle = Document.ParagraphStyles.CreateNew();
paragraphStyle.Name = styleName;
paragraphStyle.Parent = Document.ParagraphStyles["Normal"];
word-document-api-examples/CS/CodeExamples/StylesActions.cs#L75
pstyle = document.ParagraphStyles.CreateNew();
pstyle.Name = "MyPStyle";
pstyle.LineSpacingType = ParagraphLineSpacing.Double;
winforms-rich-edit-text-formatting/VB/Text Formatting Example/Form1.vb#L92
Dim chapterStyle As ParagraphStyle = document.ParagraphStyles.CreateNew()
chapterStyle.Name = "MyTitleStyle"
chapterStyle.ForeColor = Color.SteelBlue
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Styles.vb#L39
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
pstyle = document.ParagraphStyles.CreateNew()
pstyle.Name = "MyPStyle"
pstyle.LineSpacingType = ParagraphLineSpacing.Double
word-document-api-examples/VB/CodeExamples/StylesActions.vb#L63
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
paragraphStyle = Document.ParagraphStyles.CreateNew()
paragraphStyle.Name = styleName
paragraphStyle.Parent = Document.ParagraphStyles("Normal")
See Also