A newer version of this page is available. Switch to the current version.

HEAlignmentCenterRibbonCommand Class

A Ribbon item that allows a paragraph whose content is selected within the design view area to be centered.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v18.2.dll


public class HEAlignmentCenterRibbonCommand :
Public Class HEAlignmentCenterRibbonCommand
    Inherits HERibbonToggleCommandBase


The ASPxHtmlEditor provides alignment formatting for the selected editor's paragraph by using the Align Left (HEAlignmentLeftRibbonCommand), Align Right (HEAlignmentRightRibbonCommand), Align Center (HEAlignmentCenterRibbonCommand) and Justify (HEAlignmentJustifyRibbonCommand) buttons.

You can add these buttons to the ribbon by using either the ASPxHtmlEditor designer at design time, or programmatically.

See Also