Back to Devexpress

SetParagraphHeading2LevelCommand Class

officefileapi-devexpress-dot-xtrarichedit-dot-commands-dot-setparagraphheading2levelcommand.md

latest3.0 KB
Original Source

SetParagraphHeading2LevelCommand Class

Applies the Heading 2 built-in style to the text so it is shown at the second level of the Table of Contents.

Namespace : DevExpress.XtraRichEdit.Commands

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[SubstituteDescriptionStringId(XtraRichEditStringId.MenuCmd_SetParagraphHeading2LevelDescription)]
[SubstituteMenuCaptionStringId(XtraRichEditStringId.MenuCmd_SetParagraphHeading2Level)]
public class SetParagraphHeading2LevelCommand :
    SetParagraphHeadingLevelCommandBase
vb
<SubstituteMenuCaptionStringId(XtraRichEditStringId.MenuCmd_SetParagraphHeading2Level)>
<SubstituteDescriptionStringId(XtraRichEditStringId.MenuCmd_SetParagraphHeading2LevelDescription)>
Public Class SetParagraphHeading2LevelCommand
    Inherits SetParagraphHeadingLevelCommandBase

Remarks

Use the SetParagraphHeading2LevelCommand command to mark the selected text as the sub-heading and show it at the second TOC level.

To include the text into the Table of Contents without changing the text appearance, use the Paragraph.OutlineLevel property.

Inheritance

Show 11 items

Object Command DevExpress.Utils.Commands.ControlCommand<IRichEditControl, RichEditCommandId, DevExpress.XtraRichEdit.Localization.XtraRichEditStringId> DevExpress.XtraRichEdit.Commands.RichEditCommandBase<DevExpress.XtraRichEdit.Localization.XtraRichEditStringId> RichEditCommand DevExpress.XtraRichEdit.Commands.SelectionBasedCommandBase SelectionBasedPropertyChangeCommandBase DevExpress.XtraRichEdit.Commands.Internal.ChangeParagraphStyleCommandBase DevExpress.XtraRichEdit.Commands.ChangeHeadingLevelCommandBase DevExpress.XtraRichEdit.Commands.SetParagraphHeadingLevelCommandBase SetParagraphHeading2LevelCommand

See Also

SetParagraphHeading2LevelCommand Members

DevExpress.XtraRichEdit.Commands Namespace