officefileapi-devexpress-dot-xtrarichedit-dot-commands-fd3f427d.md
Toggles centered paragraph alignment on and off.
Namespace : DevExpress.XtraRichEdit.Commands
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
public class ToggleParagraphAlignmentCenterCommand :
ToggleChangeParagraphFormattingCommandBase<ParagraphAlignment>
Public Class ToggleParagraphAlignmentCenterCommand
Inherits ToggleChangeParagraphFormattingCommandBase(Of ParagraphAlignment)
Set the Paragraph.Alignment or the ParagraphPropertiesBase.Alignment API property to ParagraphAlignment.Center, to achieve the same result.
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
ParagraphPropertiesBase.Alignment