TX Text Control .NET Server

RequestSectionBreakKindCallback Function

Function

Description

Callback function for requests expecting a SectionBreakKind value.

Syntax

function(<SectionBreakKind> breakKind)

Examples

The following example demonstrates RequestSectionBreakKindCallback in a practical document-editing workflow. Callback function for requests expecting a SectionBreakKind value.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function requestSectionBreakKindCallback(breakKind) {
    console.log("break kind:", breakKind);
}

function useRequestSectionBreakKindCallback(sectionFormat) {
    sectionFormat.getBreakKind(requestSectionBreakKindCallback, onTxError);
}