Skip to main content

OH_ArkUI_TextLayoutManager_GetLineCount

Function OH_ArkUI_TextLayoutManager_GetLineCount 

Source
pub unsafe extern "C" fn OH_ArkUI_TextLayoutManager_GetLineCount(
    layoutManager: *mut ArkUI_TextLayoutManager,
    outLineCount: *mut i32,
) -> ArkUiResult
Available on crate features api-12 and api-22 only.
Expand description

Gets the line count.

§Arguments

  • layoutManager - Indicates the pointer to an ArkUI_TextLayoutManager object.

  • outLineCount - Returns the line count.

§Returns

  • Returns the result code. Returns [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter exception occurs.

Available since API-level: 22