Skip to main content

OH_Drawing_TypographyGetLineCount

Function OH_Drawing_TypographyGetLineCount 

Source
pub unsafe extern "C" fn OH_Drawing_TypographyGetLineCount(
    typography: *mut OH_Drawing_Typography,
) -> usize
Expand description

@brief Obtains the number of lines in a typography object. This function must be called after {@link OH_Drawing_TypographyLayout} is called.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param typography Pointer to the OH_Drawing_Typography object, which is obtained from {@link OH_Drawing_CreateTypography}. @return Number of rows obtained. @since 11 @version 1.0