The requested page is not available for the requested platform. You are viewing the content for Default platform.
cut

RichEditCommands.changeTabs Property

Gets a command to change the default tab stop value of a document and apply custom tab settings to the selected paragraphs.

Declaration

readonly changeTabs: ChangeTabsCommand

Property Value

Type Description
ChangeTabsCommand

A ChangeTabsCommand object that provides methods for executing the command and checking its state.

Remarks

You can invoke this command by calling the execute method.

The execute method checks the command state (obtained using the getState method) before executing, and decides whether the action can be performed. The execute and getState methods are members of the ChangeTabsCommand class.

The command includes size parameters assigned in twips. Use the ASPxClientRichEdit.unitConverter to convert size measure units (inches, points, pixels, centimeters) to twips.

Usage example:


var tabSettings = {
    defaultTabStop: richEdit.unitConverter.pixelsToTwips(40),
    tabs: [{
        alignment: ASPx.TabAlign.Center,
        leader: ASPx.TabLeaderType.ThickLine,
        position: richEdit.unitConverter.pixelsToTwips(90),
        deleted: false
    }, {
        alignment: ASPx.TabAlign.Right,
        leader: ASPx.TabLeaderType.EqualSign,
        position: richEdit.unitConverter.pixelsToTwips(200),
        deleted: false
    }]
};

richEdit.commands.changeTabs.execute(tabSettings);
See Also