Skip to main content

OH_Drawing_SetTypographyTextMaxLines

Function OH_Drawing_SetTypographyTextMaxLines 

Source
pub unsafe extern "C" fn OH_Drawing_SetTypographyTextMaxLines(
    style: *mut OH_Drawing_TypographyStyle,
    lineNumber: c_int,
)
Expand description

@brief Sets the maximum number of lines in the text.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param style Pointer to the {@link OH_Drawing_TypographyStyle} object, which is obtained from {@link OH_Drawing_CreateTypographyStyle}. @param lineNumber Max lines, which is an integer. If 0 or a negative number is passed, no text is displayed. @since 8 @version 1.0