pub unsafe extern "C" fn OH_ArkUI_StyledString_Create(
style: *mut OH_Drawing_TypographyStyle,
collection: *mut OH_Drawing_FontCollection,
) -> *mut ArkUI_StyledStringAvailable on crate features
drawing and api-12 only.Expand description
Creates a pointer to the ArkUI_StyledString object.
§Arguments
style - A pointer to OH_Drawing_TypographyStyle, obtained by [OH_Drawing_CreateTypographyStyle].
collection - A pointer to OH_Drawing_FontCollection, obtained by [OH_Drawing_CreateFontCollection].
§Returns
Creates a pointer to the ArkUI_StyledString object. If the object returns a null pointer, the creation failed, either because the address space was full, or because the style, collection parameter was an exception such as a null pointer.
Available since API-level: 12