pub unsafe extern "C" fn OH_Drawing_GetTextDirectionFromTextBox(
textbox: *mut OH_Drawing_TextBox,
index: c_int,
) -> c_intExpand description
@brief Obtains the text direction of a text box.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param textbox Pointer to the {@link OH_Drawing_TextBox} object, which is obtained from {@link OH_Drawing_TypographyGetRectsForRange} or {@link OH_Drawing_TypographyGetRectsForPlaceholders}. @param index Index of the text box. The value ranges from 0 to the number of text boxes minus 1. The number of text boxes can be obtained through {@link OH_Drawing_GetSizeOfTextBox}. If the index is out of range, 0 is returned. @return Text direction. @since 11 @version 1.0