Back to Devexpress

ToggleParagraphAlignmentCenterCommand Class

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

latest2.9 KB
Original Source

ToggleParagraphAlignmentCenterCommand Class

Toggles centered paragraph alignment on and off.

Namespace : DevExpress.XtraRichEdit.Commands

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public class ToggleParagraphAlignmentCenterCommand :
    ToggleChangeParagraphFormattingCommandBase<ParagraphAlignment>
vb
Public Class ToggleParagraphAlignmentCenterCommand
    Inherits ToggleChangeParagraphFormattingCommandBase(Of ParagraphAlignment)

Remarks

Set the Paragraph.Alignment or the ParagraphPropertiesBase.Alignment API property to ParagraphAlignment.Center, to achieve the same result.

Inheritance

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.ChangeParagraphFormattingCommandBase<DevExpress.XtraRichEdit.Model.ParagraphAlignment> DevExpress.XtraRichEdit.Commands.ToggleChangeParagraphFormattingCommandBase<DevExpress.XtraRichEdit.Model.ParagraphAlignment> ToggleParagraphAlignmentCenterCommand

See Also

ToggleParagraphAlignmentCenterCommand Members

Paragraph.Alignment

ParagraphPropertiesBase.Alignment

Keyboard Shortcuts in Rich Text Editor

DevExpress.XtraRichEdit.Commands Namespace