OH_ArkUI_SpanStyle
typedef struct OH_ArkUI_SpanStyle OH_ArkUI_SpanStyle
Overview
Defines a styled string style.
OH_ArkUI_SpanStyle_Create can be used to create a styled string style object.
OH_ArkUI_SpanStyle_Destroy can be used to destroy the styled string style object.
After the object is created, OH_ArkUI_SpanStyle_SetStart and OH_ArkUI_SpanStyle_SetLength can be used to set the usage scope of the style.
After the object is created, the OH_ArkUI_SpanStyle_SetXXXStyle series APIs can be used to set the specific styles that take effect. For example, you can use OH_ArkUI_SpanStyle_SetTextStyle to set the font style.
Since: 24
Related module: ArkUI_NativeModule
Header file: styled_string.h
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 arkts-apis-uicontext-contextmenucontroller
openharmony 鸿蒙 errorcode-canvas
openharmony 鸿蒙 capi-oh-nativexcomponent-native-xcomponent-oh-nativexcomponent
openharmony 鸿蒙 errorcode-bindSheet
openharmony 鸿蒙 js-apis-arkui-uiExtension-sys
openharmony 鸿蒙 capi-arkui-accessibility-arkui-accessibilityeventinfo
openharmony 鸿蒙 capi-arkui-rendernodeutils
openharmony 鸿蒙 js-apis-arkui-node
openharmony 鸿蒙 capi-native-node-h
openharmony 鸿蒙 capi-arkui-nativemodule-arkui-listitemswipeactionitem