add interface getLongestLineWithIndent

Signed-off-by: PengKejie <pengkejie@h-partners.com>
(cherry picked from commit d4d1b917cf)
This commit is contained in:
PengKejie 2024-08-22 17:18:24 +08:00
parent 1da07051e0
commit 080c8fdb83

View File

@ -1217,6 +1217,15 @@ declare namespace text {
*/
getLongestLine(): number;
/**
* Get the longest line of horizontal space this paragraph occupies, and this horizontal space contains the width
* of indent.
* @returns { number } The longest line with indent of horizontal space this paragraph occupies.
* @syscap SystemCapability.Graphics.Drawing
* @since 13
*/
getLongestLineWithIndent(): number;
/**
* Get the min intrinsic width of horizontal space this paragraph occupies.
* @returns { number } The min intrinsic width of horizontal space this paragraph occupies.