From 750a8c8bc982aedb0b72fb2ba442200c7d64fd94 Mon Sep 17 00:00:00 2001 From: yangfan229 Date: Tue, 4 Mar 2025 20:42:15 +0800 Subject: [PATCH] add text line count for capi Signed-off-by: yangfan229 Change-Id: I0b6c0c2d46c9f1f90c907177cc73736ee3d28d91 --- arkui/ace_engine/native/native_node.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 91acfcbef..4e3c75288 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -2277,6 +2277,16 @@ typedef enum { */ NODE_IMMUTABLE_FONT_WEIGHT = 1030, + /** + * @brief Defines the text line count attribute, which can only be obtained as required through APIs. + * + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: line count of the node. + * + * @since 20 + */ + NODE_TEXT_LINE_COUNT = 1031, + /** * @brief Defines the text content attribute, which can be set, reset, and obtained as required through APIs. * -- Gitee