diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 5ca0fdeeaa5171d1f164ac117b8257f0808a3991..523dcc07f65b3b47947a51b1b7127400b8b0bf8d 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -5200,6 +5200,22 @@ typedef enum { */ NODE_SCROLL_BACK_TO_TOP = 1002021, + /** + * @brief Defines the margin of the scrollbar. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].f32: start margin of the scrollbar, in vp. The default value is 0. \n + * .value[1].f32: end margin of the scrollbar, in vp. The default value is 0. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].f32: start margin of the scrollbar, in vp. \n + * .value[1].f32: end margin of the scrollbar, in vp. \n + * + * @since 20 + */ + NODE_SCROLL_BAR_MARGIN = 1002022, + /** * @brief Defines the direction in which the list items are arranged. This attribute can be set, reset, and * obtained as required through APIs.