pub unsafe extern "C" fn OH_Drawing_GetTopFromTextBox(
textbox: *mut OH_Drawing_TextBox,
index: c_int,
) -> f32Expand description
@brief Obtains the top position of a text box.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param textbox Pointer to the 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}. 0.0 is returned when the value is out of range. @return Top position. @since 11 @version 1.0