161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
461847f8eSopenharmony_ci * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci * You may obtain a copy of the License at
661847f8eSopenharmony_ci *
761847f8eSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci *
961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci * limitations under the License.
1461847f8eSopenharmony_ci */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit ArkUI
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ci/**
2261847f8eSopenharmony_ci * Text overflow options.
2361847f8eSopenharmony_ci *
2461847f8eSopenharmony_ci * @interface TextOverflowOptions
2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
2661847f8eSopenharmony_ci * @crossplatform
2761847f8eSopenharmony_ci * @form
2861847f8eSopenharmony_ci * @atomicservice
2961847f8eSopenharmony_ci * @since 13
3061847f8eSopenharmony_ci */
3161847f8eSopenharmony_cideclare interface TextOverflowOptions {
3261847f8eSopenharmony_ci  /**
3361847f8eSopenharmony_ci   * Text overflow option.
3461847f8eSopenharmony_ci   *
3561847f8eSopenharmony_ci   * @type { TextOverflow }
3661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
3761847f8eSopenharmony_ci   * @since 7
3861847f8eSopenharmony_ci   */
3961847f8eSopenharmony_ci  /**
4061847f8eSopenharmony_ci   * Text overflow option.
4161847f8eSopenharmony_ci   *
4261847f8eSopenharmony_ci   * @type { TextOverflow }
4361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
4461847f8eSopenharmony_ci   * @form
4561847f8eSopenharmony_ci   * @since 9
4661847f8eSopenharmony_ci   */
4761847f8eSopenharmony_ci  /**
4861847f8eSopenharmony_ci   * Text overflow option.
4961847f8eSopenharmony_ci   *
5061847f8eSopenharmony_ci   * @type { TextOverflow }
5161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
5261847f8eSopenharmony_ci   * @crossplatform
5361847f8eSopenharmony_ci   * @form
5461847f8eSopenharmony_ci   * @since 10
5561847f8eSopenharmony_ci   */
5661847f8eSopenharmony_ci  /**
5761847f8eSopenharmony_ci   * Text overflow option.
5861847f8eSopenharmony_ci   *
5961847f8eSopenharmony_ci   * @type { TextOverflow }
6061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
6161847f8eSopenharmony_ci   * @crossplatform
6261847f8eSopenharmony_ci   * @form
6361847f8eSopenharmony_ci   * @atomicservice
6461847f8eSopenharmony_ci   * @since 11
6561847f8eSopenharmony_ci   */
6661847f8eSopenharmony_ci  overflow: TextOverflow;
6761847f8eSopenharmony_ci}
6861847f8eSopenharmony_ci
6961847f8eSopenharmony_ci/**
7061847f8eSopenharmony_ci * Provides an interface for writing texts.
7161847f8eSopenharmony_ci *
7261847f8eSopenharmony_ci * @interface TextInterface
7361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
7461847f8eSopenharmony_ci * @since 7
7561847f8eSopenharmony_ci */
7661847f8eSopenharmony_ci/**
7761847f8eSopenharmony_ci * Provides an interface for writing texts.
7861847f8eSopenharmony_ci *
7961847f8eSopenharmony_ci * @interface TextInterface
8061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
8161847f8eSopenharmony_ci * @form
8261847f8eSopenharmony_ci * @since 9
8361847f8eSopenharmony_ci */
8461847f8eSopenharmony_ci/**
8561847f8eSopenharmony_ci * Provides an interface for writing texts.
8661847f8eSopenharmony_ci *
8761847f8eSopenharmony_ci * @interface TextInterface
8861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
8961847f8eSopenharmony_ci * @crossplatform
9061847f8eSopenharmony_ci * @form
9161847f8eSopenharmony_ci * @since 10
9261847f8eSopenharmony_ci */
9361847f8eSopenharmony_ci/**
9461847f8eSopenharmony_ci * Provides an interface for writing texts.
9561847f8eSopenharmony_ci *
9661847f8eSopenharmony_ci * @interface TextInterface
9761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
9861847f8eSopenharmony_ci * @crossplatform
9961847f8eSopenharmony_ci * @form
10061847f8eSopenharmony_ci * @atomicservice
10161847f8eSopenharmony_ci * @since 11
10261847f8eSopenharmony_ci */
10361847f8eSopenharmony_ciinterface TextInterface {
10461847f8eSopenharmony_ci  /**
10561847f8eSopenharmony_ci   * Called when writing text.
10661847f8eSopenharmony_ci   *
10761847f8eSopenharmony_ci   * @param { string | Resource } content
10861847f8eSopenharmony_ci   * @returns { TextAttribute }
10961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
11061847f8eSopenharmony_ci   * @since 7
11161847f8eSopenharmony_ci   */
11261847f8eSopenharmony_ci  /**
11361847f8eSopenharmony_ci   * Called when writing text.
11461847f8eSopenharmony_ci   *
11561847f8eSopenharmony_ci   * @param { string | Resource } content
11661847f8eSopenharmony_ci   * @returns { TextAttribute }
11761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
11861847f8eSopenharmony_ci   * @form
11961847f8eSopenharmony_ci   * @since 9
12061847f8eSopenharmony_ci   */
12161847f8eSopenharmony_ci  /**
12261847f8eSopenharmony_ci   * Called when writing text.
12361847f8eSopenharmony_ci   *
12461847f8eSopenharmony_ci   * @param { string | Resource } content
12561847f8eSopenharmony_ci   * @returns { TextAttribute }
12661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
12761847f8eSopenharmony_ci   * @crossplatform
12861847f8eSopenharmony_ci   * @form
12961847f8eSopenharmony_ci   * @since 10
13061847f8eSopenharmony_ci   */
13161847f8eSopenharmony_ci  /**
13261847f8eSopenharmony_ci   * Called when writing text.
13361847f8eSopenharmony_ci   *
13461847f8eSopenharmony_ci   * @param { string | Resource } content
13561847f8eSopenharmony_ci   * @param { TextOptions } value
13661847f8eSopenharmony_ci   * @returns { TextAttribute }
13761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
13861847f8eSopenharmony_ci   * @crossplatform
13961847f8eSopenharmony_ci   * @form
14061847f8eSopenharmony_ci   * @atomicservice
14161847f8eSopenharmony_ci   * @since 11
14261847f8eSopenharmony_ci   */
14361847f8eSopenharmony_ci  (content?: string | Resource, value?: TextOptions): TextAttribute;
14461847f8eSopenharmony_ci  }
14561847f8eSopenharmony_ci
14661847f8eSopenharmony_ci/**
14761847f8eSopenharmony_ci * @extends CommonMethod<TextAttribute>
14861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
14961847f8eSopenharmony_ci * @since 7
15061847f8eSopenharmony_ci */
15161847f8eSopenharmony_ci/**
15261847f8eSopenharmony_ci * @extends CommonMethod<TextAttribute>
15361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
15461847f8eSopenharmony_ci * @form
15561847f8eSopenharmony_ci * @since 9
15661847f8eSopenharmony_ci */
15761847f8eSopenharmony_ci/**
15861847f8eSopenharmony_ci * @extends CommonMethod<TextAttribute>
15961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
16061847f8eSopenharmony_ci * @crossplatform
16161847f8eSopenharmony_ci * @form
16261847f8eSopenharmony_ci * @since 10
16361847f8eSopenharmony_ci */
16461847f8eSopenharmony_ci/**
16561847f8eSopenharmony_ci * @extends CommonMethod<TextAttribute>
16661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
16761847f8eSopenharmony_ci * @crossplatform
16861847f8eSopenharmony_ci * @form
16961847f8eSopenharmony_ci * @atomicservice
17061847f8eSopenharmony_ci * @since 11
17161847f8eSopenharmony_ci */
17261847f8eSopenharmony_cideclare class TextAttribute extends CommonMethod<TextAttribute> {
17361847f8eSopenharmony_ci  /**
17461847f8eSopenharmony_ci   * Called when the font is set.
17561847f8eSopenharmony_ci   *
17661847f8eSopenharmony_ci   * @param { Font } value - the text font size and weight and family and style.
17761847f8eSopenharmony_ci   * @returns { TextAttribute } The attribute of the text.
17861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
17961847f8eSopenharmony_ci   * @since 10
18061847f8eSopenharmony_ci   */
18161847f8eSopenharmony_ci  /**
18261847f8eSopenharmony_ci   * Called when the font is set.
18361847f8eSopenharmony_ci   *
18461847f8eSopenharmony_ci   * @param { Font } value - the text font size and weight and family and style.
18561847f8eSopenharmony_ci   * @returns { TextAttribute } The attribute of the text.
18661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
18761847f8eSopenharmony_ci   * @crossplatform
18861847f8eSopenharmony_ci   * @atomicservice
18961847f8eSopenharmony_ci   * @since 11
19061847f8eSopenharmony_ci   */
19161847f8eSopenharmony_ci  font(value: Font): TextAttribute;
19261847f8eSopenharmony_ci
19361847f8eSopenharmony_ci  /**
19461847f8eSopenharmony_ci   * Called when the font is set.
19561847f8eSopenharmony_ci   *
19661847f8eSopenharmony_ci   * @param { Font } fontValue - the text font size and weight and family and style.
19761847f8eSopenharmony_ci   * @param { FontSettingOptions } options - font setting options.
19861847f8eSopenharmony_ci   * @returns { TextAttribute } The attribute of the text.
19961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
20061847f8eSopenharmony_ci   * @crossplatform
20161847f8eSopenharmony_ci   * @form
20261847f8eSopenharmony_ci   * @atomicservice
20361847f8eSopenharmony_ci   * @since 12
20461847f8eSopenharmony_ci   */
20561847f8eSopenharmony_ci  font(fontValue: Font, options?: FontSettingOptions): TextAttribute;
20661847f8eSopenharmony_ci
20761847f8eSopenharmony_ci  /**
20861847f8eSopenharmony_ci   * Called when the font color is set.
20961847f8eSopenharmony_ci   *
21061847f8eSopenharmony_ci   * @param { ResourceColor } value
21161847f8eSopenharmony_ci   * @returns { TextAttribute }
21261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
21361847f8eSopenharmony_ci   * @since 7
21461847f8eSopenharmony_ci   */
21561847f8eSopenharmony_ci  /**
21661847f8eSopenharmony_ci   * Called when the font color is set.
21761847f8eSopenharmony_ci   *
21861847f8eSopenharmony_ci   * @param { ResourceColor } value
21961847f8eSopenharmony_ci   * @returns { TextAttribute }
22061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
22161847f8eSopenharmony_ci   * @form
22261847f8eSopenharmony_ci   * @since 9
22361847f8eSopenharmony_ci   */
22461847f8eSopenharmony_ci  /**
22561847f8eSopenharmony_ci   * Called when the font color is set.
22661847f8eSopenharmony_ci   *
22761847f8eSopenharmony_ci   * @param { ResourceColor } value
22861847f8eSopenharmony_ci   * @returns { TextAttribute }
22961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
23061847f8eSopenharmony_ci   * @crossplatform
23161847f8eSopenharmony_ci   * @form
23261847f8eSopenharmony_ci   * @since 10
23361847f8eSopenharmony_ci   */
23461847f8eSopenharmony_ci  /**
23561847f8eSopenharmony_ci   * Called when the font color is set.
23661847f8eSopenharmony_ci   *
23761847f8eSopenharmony_ci   * @param { ResourceColor } value
23861847f8eSopenharmony_ci   * @returns { TextAttribute }
23961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
24061847f8eSopenharmony_ci   * @crossplatform
24161847f8eSopenharmony_ci   * @form
24261847f8eSopenharmony_ci   * @atomicservice
24361847f8eSopenharmony_ci   * @since 11
24461847f8eSopenharmony_ci   */
24561847f8eSopenharmony_ci  fontColor(value: ResourceColor): TextAttribute;
24661847f8eSopenharmony_ci
24761847f8eSopenharmony_ci  /**
24861847f8eSopenharmony_ci   * Called when the font size is set.
24961847f8eSopenharmony_ci   *
25061847f8eSopenharmony_ci   * @param { number | string | Resource } value
25161847f8eSopenharmony_ci   * @returns { TextAttribute }
25261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
25361847f8eSopenharmony_ci   * @since 7
25461847f8eSopenharmony_ci   */
25561847f8eSopenharmony_ci  /**
25661847f8eSopenharmony_ci   * Called when the font size is set.
25761847f8eSopenharmony_ci   *
25861847f8eSopenharmony_ci   * @param { number | string | Resource } value
25961847f8eSopenharmony_ci   * @returns { TextAttribute }
26061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
26161847f8eSopenharmony_ci   * @form
26261847f8eSopenharmony_ci   * @since 9
26361847f8eSopenharmony_ci   */
26461847f8eSopenharmony_ci  /**
26561847f8eSopenharmony_ci   * Called when the font size is set.
26661847f8eSopenharmony_ci   *
26761847f8eSopenharmony_ci   * @param { number | string | Resource } value
26861847f8eSopenharmony_ci   * @returns { TextAttribute }
26961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
27061847f8eSopenharmony_ci   * @crossplatform
27161847f8eSopenharmony_ci   * @form
27261847f8eSopenharmony_ci   * @since 10
27361847f8eSopenharmony_ci   */
27461847f8eSopenharmony_ci  /**
27561847f8eSopenharmony_ci   * Called when the font size is set.
27661847f8eSopenharmony_ci   *
27761847f8eSopenharmony_ci   * @param { number | string | Resource } value
27861847f8eSopenharmony_ci   * @returns { TextAttribute }
27961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
28061847f8eSopenharmony_ci   * @crossplatform
28161847f8eSopenharmony_ci   * @form
28261847f8eSopenharmony_ci   * @atomicservice
28361847f8eSopenharmony_ci   * @since 11
28461847f8eSopenharmony_ci   */
28561847f8eSopenharmony_ci  fontSize(value: number | string | Resource): TextAttribute;
28661847f8eSopenharmony_ci
28761847f8eSopenharmony_ci  /**
28861847f8eSopenharmony_ci   * Called when the minimum font size of the font is set.
28961847f8eSopenharmony_ci   *
29061847f8eSopenharmony_ci   * @param { number | string | Resource } value
29161847f8eSopenharmony_ci   * @returns { TextAttribute }
29261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
29361847f8eSopenharmony_ci   * @since 7
29461847f8eSopenharmony_ci   */
29561847f8eSopenharmony_ci  /**
29661847f8eSopenharmony_ci   * Called when the minimum font size of the font is set.
29761847f8eSopenharmony_ci   *
29861847f8eSopenharmony_ci   * @param { number | string | Resource } value
29961847f8eSopenharmony_ci   * @returns { TextAttribute }
30061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
30161847f8eSopenharmony_ci   * @form
30261847f8eSopenharmony_ci   * @since 9
30361847f8eSopenharmony_ci   */
30461847f8eSopenharmony_ci  /**
30561847f8eSopenharmony_ci   * Called when the minimum font size of the font is set.
30661847f8eSopenharmony_ci   *
30761847f8eSopenharmony_ci   * @param { number | string | Resource } value
30861847f8eSopenharmony_ci   * @returns { TextAttribute }
30961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
31061847f8eSopenharmony_ci   * @crossplatform
31161847f8eSopenharmony_ci   * @form
31261847f8eSopenharmony_ci   * @since 10
31361847f8eSopenharmony_ci   */
31461847f8eSopenharmony_ci  /**
31561847f8eSopenharmony_ci   * Called when the minimum font size of the font is set.
31661847f8eSopenharmony_ci   *
31761847f8eSopenharmony_ci   * @param { number | string | Resource } value
31861847f8eSopenharmony_ci   * @returns { TextAttribute }
31961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
32061847f8eSopenharmony_ci   * @crossplatform
32161847f8eSopenharmony_ci   * @form
32261847f8eSopenharmony_ci   * @atomicservice
32361847f8eSopenharmony_ci   * @since 11
32461847f8eSopenharmony_ci   */
32561847f8eSopenharmony_ci  minFontSize(value: number | string | Resource): TextAttribute;
32661847f8eSopenharmony_ci
32761847f8eSopenharmony_ci  /**
32861847f8eSopenharmony_ci   * Called when the maximum font size of the font is set.
32961847f8eSopenharmony_ci   *
33061847f8eSopenharmony_ci   * @param { number | string | Resource } value
33161847f8eSopenharmony_ci   * @returns { TextAttribute }
33261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
33361847f8eSopenharmony_ci   * @since 7
33461847f8eSopenharmony_ci   */
33561847f8eSopenharmony_ci  /**
33661847f8eSopenharmony_ci   * Called when the maximum font size of the font is set.
33761847f8eSopenharmony_ci   *
33861847f8eSopenharmony_ci   * @param { number | string | Resource } value
33961847f8eSopenharmony_ci   * @returns { TextAttribute }
34061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
34161847f8eSopenharmony_ci   * @form
34261847f8eSopenharmony_ci   * @since 9
34361847f8eSopenharmony_ci   */
34461847f8eSopenharmony_ci  /**
34561847f8eSopenharmony_ci   * Called when the maximum font size of the font is set.
34661847f8eSopenharmony_ci   *
34761847f8eSopenharmony_ci   * @param { number | string | Resource } value
34861847f8eSopenharmony_ci   * @returns { TextAttribute }
34961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
35061847f8eSopenharmony_ci   * @crossplatform
35161847f8eSopenharmony_ci   * @form
35261847f8eSopenharmony_ci   * @since 10
35361847f8eSopenharmony_ci   */
35461847f8eSopenharmony_ci  /**
35561847f8eSopenharmony_ci   * Called when the maximum font size of the font is set.
35661847f8eSopenharmony_ci   *
35761847f8eSopenharmony_ci   * @param { number | string | Resource } value
35861847f8eSopenharmony_ci   * @returns { TextAttribute }
35961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
36061847f8eSopenharmony_ci   * @crossplatform
36161847f8eSopenharmony_ci   * @form
36261847f8eSopenharmony_ci   * @atomicservice
36361847f8eSopenharmony_ci   * @since 11
36461847f8eSopenharmony_ci   */
36561847f8eSopenharmony_ci  maxFontSize(value: number | string | Resource): TextAttribute;
36661847f8eSopenharmony_ci
36761847f8eSopenharmony_ci  /**
36861847f8eSopenharmony_ci   * Called when the minimum font scale of the font is set.
36961847f8eSopenharmony_ci   *
37061847f8eSopenharmony_ci   * @param { number | Resource } scale
37161847f8eSopenharmony_ci   * @returns { TextAttribute }
37261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
37361847f8eSopenharmony_ci   * @atomicservice
37461847f8eSopenharmony_ci   * @since 12
37561847f8eSopenharmony_ci   */
37661847f8eSopenharmony_ci  minFontScale(scale: number | Resource): TextAttribute;
37761847f8eSopenharmony_ci
37861847f8eSopenharmony_ci  /**
37961847f8eSopenharmony_ci   * Called when the maximum font scale of the font is set.
38061847f8eSopenharmony_ci   *
38161847f8eSopenharmony_ci   * @param { number | Resource  } scale
38261847f8eSopenharmony_ci   * @returns { TextAttribute }
38361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
38461847f8eSopenharmony_ci   * @atomicservice
38561847f8eSopenharmony_ci   * @since 12
38661847f8eSopenharmony_ci   */
38761847f8eSopenharmony_ci  maxFontScale(scale: number | Resource): TextAttribute;
38861847f8eSopenharmony_ci
38961847f8eSopenharmony_ci  /**
39061847f8eSopenharmony_ci   * Called when the font style of a font is set.
39161847f8eSopenharmony_ci   *
39261847f8eSopenharmony_ci   * @param { FontStyle } value
39361847f8eSopenharmony_ci   * @returns { TextAttribute }
39461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
39561847f8eSopenharmony_ci   * @since 7
39661847f8eSopenharmony_ci   */
39761847f8eSopenharmony_ci  /**
39861847f8eSopenharmony_ci   * Called when the font style of a font is set.
39961847f8eSopenharmony_ci   *
40061847f8eSopenharmony_ci   * @param { FontStyle } value
40161847f8eSopenharmony_ci   * @returns { TextAttribute }
40261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
40361847f8eSopenharmony_ci   * @form
40461847f8eSopenharmony_ci   * @since 9
40561847f8eSopenharmony_ci   */
40661847f8eSopenharmony_ci  /**
40761847f8eSopenharmony_ci   * Called when the font style of a font is set.
40861847f8eSopenharmony_ci   *
40961847f8eSopenharmony_ci   * @param { FontStyle } value
41061847f8eSopenharmony_ci   * @returns { TextAttribute }
41161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
41261847f8eSopenharmony_ci   * @crossplatform
41361847f8eSopenharmony_ci   * @form
41461847f8eSopenharmony_ci   * @since 10
41561847f8eSopenharmony_ci   */
41661847f8eSopenharmony_ci  /**
41761847f8eSopenharmony_ci   * Called when the font style of a font is set.
41861847f8eSopenharmony_ci   *
41961847f8eSopenharmony_ci   * @param { FontStyle } value
42061847f8eSopenharmony_ci   * @returns { TextAttribute }
42161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
42261847f8eSopenharmony_ci   * @crossplatform
42361847f8eSopenharmony_ci   * @form
42461847f8eSopenharmony_ci   * @atomicservice
42561847f8eSopenharmony_ci   * @since 11
42661847f8eSopenharmony_ci   */
42761847f8eSopenharmony_ci  fontStyle(value: FontStyle): TextAttribute;
42861847f8eSopenharmony_ci
42961847f8eSopenharmony_ci  /**
43061847f8eSopenharmony_ci   * Called when the font weight is set.
43161847f8eSopenharmony_ci   *
43261847f8eSopenharmony_ci   * @param { number | FontWeight | string } value
43361847f8eSopenharmony_ci   * @returns { TextAttribute }
43461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
43561847f8eSopenharmony_ci   * @since 7
43661847f8eSopenharmony_ci   */
43761847f8eSopenharmony_ci  /**
43861847f8eSopenharmony_ci   * Called when the font weight is set.
43961847f8eSopenharmony_ci   *
44061847f8eSopenharmony_ci   * @param { number | FontWeight | string } value
44161847f8eSopenharmony_ci   * @returns { TextAttribute }
44261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
44361847f8eSopenharmony_ci   * @form
44461847f8eSopenharmony_ci   * @since 9
44561847f8eSopenharmony_ci   */
44661847f8eSopenharmony_ci  /**
44761847f8eSopenharmony_ci   * Called when the font weight is set.
44861847f8eSopenharmony_ci   *
44961847f8eSopenharmony_ci   * @param { number | FontWeight | string } value
45061847f8eSopenharmony_ci   * @returns { TextAttribute }
45161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
45261847f8eSopenharmony_ci   * @crossplatform
45361847f8eSopenharmony_ci   * @form
45461847f8eSopenharmony_ci   * @since 10
45561847f8eSopenharmony_ci   */
45661847f8eSopenharmony_ci  /**
45761847f8eSopenharmony_ci   * Called when the font weight is set.
45861847f8eSopenharmony_ci   *
45961847f8eSopenharmony_ci   * @param { number | FontWeight | string } value
46061847f8eSopenharmony_ci   * @returns { TextAttribute }
46161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
46261847f8eSopenharmony_ci   * @crossplatform
46361847f8eSopenharmony_ci   * @form
46461847f8eSopenharmony_ci   * @atomicservice
46561847f8eSopenharmony_ci   * @since 11
46661847f8eSopenharmony_ci   */
46761847f8eSopenharmony_ci  fontWeight(value: number | FontWeight | string): TextAttribute;
46861847f8eSopenharmony_ci
46961847f8eSopenharmony_ci  /**
47061847f8eSopenharmony_ci   * Called when the font weight is set.
47161847f8eSopenharmony_ci   *
47261847f8eSopenharmony_ci   * @param { number | FontWeight | string } weight
47361847f8eSopenharmony_ci   * @param { FontSettingOptions } options - font setting options.
47461847f8eSopenharmony_ci   * @returns { TextAttribute }
47561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
47661847f8eSopenharmony_ci   * @crossplatform
47761847f8eSopenharmony_ci   * @form
47861847f8eSopenharmony_ci   * @atomicservice
47961847f8eSopenharmony_ci   * @since 12
48061847f8eSopenharmony_ci   */
48161847f8eSopenharmony_ci  fontWeight(weight: number | FontWeight | string, options?: FontSettingOptions): TextAttribute;
48261847f8eSopenharmony_ci
48361847f8eSopenharmony_ci  /**
48461847f8eSopenharmony_ci   * Set font line spacing.
48561847f8eSopenharmony_ci   *
48661847f8eSopenharmony_ci   * @param { LengthMetrics } value
48761847f8eSopenharmony_ci   * @returns { TextAttribute }
48861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
48961847f8eSopenharmony_ci   * @crossplatform
49061847f8eSopenharmony_ci   * @atomicservice
49161847f8eSopenharmony_ci   * @since 12
49261847f8eSopenharmony_ci   */
49361847f8eSopenharmony_ci  lineSpacing(value: LengthMetrics): TextAttribute;
49461847f8eSopenharmony_ci
49561847f8eSopenharmony_ci  /**
49661847f8eSopenharmony_ci   * Called when the horizontal center mode of the font is set.
49761847f8eSopenharmony_ci   *
49861847f8eSopenharmony_ci   * @param { TextAlign } value
49961847f8eSopenharmony_ci   * @returns { TextAttribute }
50061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
50161847f8eSopenharmony_ci   * @since 7
50261847f8eSopenharmony_ci   */
50361847f8eSopenharmony_ci  /**
50461847f8eSopenharmony_ci   * Called when the horizontal center mode of the font is set.
50561847f8eSopenharmony_ci   *
50661847f8eSopenharmony_ci   * @param { TextAlign } value
50761847f8eSopenharmony_ci   * @returns { TextAttribute }
50861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
50961847f8eSopenharmony_ci   * @form
51061847f8eSopenharmony_ci   * @since 9
51161847f8eSopenharmony_ci   */
51261847f8eSopenharmony_ci  /**
51361847f8eSopenharmony_ci   * Called when the horizontal center mode of the font is set.
51461847f8eSopenharmony_ci   *
51561847f8eSopenharmony_ci   * @param { TextAlign } value
51661847f8eSopenharmony_ci   * @returns { TextAttribute }
51761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
51861847f8eSopenharmony_ci   * @crossplatform
51961847f8eSopenharmony_ci   * @form
52061847f8eSopenharmony_ci   * @since 10
52161847f8eSopenharmony_ci   */
52261847f8eSopenharmony_ci  /**
52361847f8eSopenharmony_ci   * Called when the horizontal center mode of the font is set.
52461847f8eSopenharmony_ci   *
52561847f8eSopenharmony_ci   * @param { TextAlign } value
52661847f8eSopenharmony_ci   * @returns { TextAttribute }
52761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
52861847f8eSopenharmony_ci   * @crossplatform
52961847f8eSopenharmony_ci   * @form
53061847f8eSopenharmony_ci   * @atomicservice
53161847f8eSopenharmony_ci   * @since 11
53261847f8eSopenharmony_ci   */
53361847f8eSopenharmony_ci  textAlign(value: TextAlign): TextAttribute;
53461847f8eSopenharmony_ci
53561847f8eSopenharmony_ci  /**
53661847f8eSopenharmony_ci   * Called when the vertical center mode of the font is set.
53761847f8eSopenharmony_ci   *
53861847f8eSopenharmony_ci   * @param { number | string | Resource } value
53961847f8eSopenharmony_ci   * @returns { TextAttribute }
54061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
54161847f8eSopenharmony_ci   * @since 7
54261847f8eSopenharmony_ci   */
54361847f8eSopenharmony_ci  /**
54461847f8eSopenharmony_ci   * Called when the vertical center mode of the font is set.
54561847f8eSopenharmony_ci   *
54661847f8eSopenharmony_ci   * @param { number | string | Resource } value
54761847f8eSopenharmony_ci   * @returns { TextAttribute }
54861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
54961847f8eSopenharmony_ci   * @form
55061847f8eSopenharmony_ci   * @since 9
55161847f8eSopenharmony_ci   */
55261847f8eSopenharmony_ci  /**
55361847f8eSopenharmony_ci   * Called when the vertical center mode of the font is set.
55461847f8eSopenharmony_ci   *
55561847f8eSopenharmony_ci   * @param { number | string | Resource } value
55661847f8eSopenharmony_ci   * @returns { TextAttribute }
55761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
55861847f8eSopenharmony_ci   * @crossplatform
55961847f8eSopenharmony_ci   * @form
56061847f8eSopenharmony_ci   * @since 10
56161847f8eSopenharmony_ci   */
56261847f8eSopenharmony_ci  /**
56361847f8eSopenharmony_ci   * Called when the vertical center mode of the font is set.
56461847f8eSopenharmony_ci   *
56561847f8eSopenharmony_ci   * @param { number | string | Resource } value
56661847f8eSopenharmony_ci   * @returns { TextAttribute }
56761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
56861847f8eSopenharmony_ci   * @crossplatform
56961847f8eSopenharmony_ci   * @form
57061847f8eSopenharmony_ci   * @atomicservice
57161847f8eSopenharmony_ci   * @since 11
57261847f8eSopenharmony_ci   */
57361847f8eSopenharmony_ci  lineHeight(value: number | string | Resource): TextAttribute;
57461847f8eSopenharmony_ci
57561847f8eSopenharmony_ci  /**
57661847f8eSopenharmony_ci   * Called when the overflow mode of the font is set.
57761847f8eSopenharmony_ci   *
57861847f8eSopenharmony_ci   * @param { object } value
57961847f8eSopenharmony_ci   * @returns { TextAttribute }
58061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
58161847f8eSopenharmony_ci   * @since 7
58261847f8eSopenharmony_ci   */
58361847f8eSopenharmony_ci  /**
58461847f8eSopenharmony_ci   * Called when the overflow mode of the font is set.
58561847f8eSopenharmony_ci   *
58661847f8eSopenharmony_ci   * @param { object } value
58761847f8eSopenharmony_ci   * @returns { TextAttribute }
58861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
58961847f8eSopenharmony_ci   * @form
59061847f8eSopenharmony_ci   * @since 9
59161847f8eSopenharmony_ci   */
59261847f8eSopenharmony_ci  /**
59361847f8eSopenharmony_ci   * Called when the overflow mode of the font is set.
59461847f8eSopenharmony_ci   *
59561847f8eSopenharmony_ci   * @param { object } value
59661847f8eSopenharmony_ci   * @returns { TextAttribute }
59761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
59861847f8eSopenharmony_ci   * @crossplatform
59961847f8eSopenharmony_ci   * @form
60061847f8eSopenharmony_ci   * @since 10
60161847f8eSopenharmony_ci   */
60261847f8eSopenharmony_ci  /**
60361847f8eSopenharmony_ci   * Called when the overflow mode of the font is set.
60461847f8eSopenharmony_ci   *
60561847f8eSopenharmony_ci   * @param { object } value
60661847f8eSopenharmony_ci   * @returns { TextAttribute }
60761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
60861847f8eSopenharmony_ci   * @crossplatform
60961847f8eSopenharmony_ci   * @form
61061847f8eSopenharmony_ci   * @atomicservice
61161847f8eSopenharmony_ci   * @since 11
61261847f8eSopenharmony_ci   */
61361847f8eSopenharmony_ci  /**
61461847f8eSopenharmony_ci   * Called when the overflow mode of the font is set.
61561847f8eSopenharmony_ci   *
61661847f8eSopenharmony_ci   * @param { TextOverflowOptions } options - Text overflow options.
61761847f8eSopenharmony_ci   * @returns { TextAttribute }
61861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
61961847f8eSopenharmony_ci   * @crossplatform
62061847f8eSopenharmony_ci   * @form
62161847f8eSopenharmony_ci   * @atomicservice
62261847f8eSopenharmony_ci   * @since 13
62361847f8eSopenharmony_ci   */
62461847f8eSopenharmony_ci  textOverflow(options: TextOverflowOptions): TextAttribute;
62561847f8eSopenharmony_ci
62661847f8eSopenharmony_ci  /**
62761847f8eSopenharmony_ci   * Called when the font list of text is set.
62861847f8eSopenharmony_ci   *
62961847f8eSopenharmony_ci   * @param { string | Resource } value
63061847f8eSopenharmony_ci   * @returns { TextAttribute }
63161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
63261847f8eSopenharmony_ci   * @since 7
63361847f8eSopenharmony_ci   */
63461847f8eSopenharmony_ci  /**
63561847f8eSopenharmony_ci   * Called when the font list of text is set.
63661847f8eSopenharmony_ci   *
63761847f8eSopenharmony_ci   * @param { string | Resource } value
63861847f8eSopenharmony_ci   * @returns { TextAttribute }
63961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
64061847f8eSopenharmony_ci   * @form
64161847f8eSopenharmony_ci   * @since 9
64261847f8eSopenharmony_ci   */
64361847f8eSopenharmony_ci  /**
64461847f8eSopenharmony_ci   * Called when the font list of text is set.
64561847f8eSopenharmony_ci   *
64661847f8eSopenharmony_ci   * @param { string | Resource } value
64761847f8eSopenharmony_ci   * @returns { TextAttribute }
64861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
64961847f8eSopenharmony_ci   * @crossplatform
65061847f8eSopenharmony_ci   * @form
65161847f8eSopenharmony_ci   * @since 10
65261847f8eSopenharmony_ci   */
65361847f8eSopenharmony_ci  /**
65461847f8eSopenharmony_ci   * Called when the font list of text is set.
65561847f8eSopenharmony_ci   *
65661847f8eSopenharmony_ci   * @param { string | Resource } value
65761847f8eSopenharmony_ci   * @returns { TextAttribute }
65861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
65961847f8eSopenharmony_ci   * @crossplatform
66061847f8eSopenharmony_ci   * @form
66161847f8eSopenharmony_ci   * @atomicservice
66261847f8eSopenharmony_ci   * @since 11
66361847f8eSopenharmony_ci   */
66461847f8eSopenharmony_ci  fontFamily(value: string | Resource): TextAttribute;
66561847f8eSopenharmony_ci
66661847f8eSopenharmony_ci  /**
66761847f8eSopenharmony_ci   * Called when the maximum number of lines of text is set.
66861847f8eSopenharmony_ci   *
66961847f8eSopenharmony_ci   * @param { number } value
67061847f8eSopenharmony_ci   * @returns { TextAttribute }
67161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
67261847f8eSopenharmony_ci   * @since 7
67361847f8eSopenharmony_ci   */
67461847f8eSopenharmony_ci  /**
67561847f8eSopenharmony_ci   * Called when the maximum number of lines of text is set.
67661847f8eSopenharmony_ci   *
67761847f8eSopenharmony_ci   * @param { number } value
67861847f8eSopenharmony_ci   * @returns { TextAttribute }
67961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
68061847f8eSopenharmony_ci   * @form
68161847f8eSopenharmony_ci   * @since 9
68261847f8eSopenharmony_ci   */
68361847f8eSopenharmony_ci  /**
68461847f8eSopenharmony_ci   * Called when the maximum number of lines of text is set.
68561847f8eSopenharmony_ci   *
68661847f8eSopenharmony_ci   * @param { number } value
68761847f8eSopenharmony_ci   * @returns { TextAttribute }
68861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
68961847f8eSopenharmony_ci   * @crossplatform
69061847f8eSopenharmony_ci   * @form
69161847f8eSopenharmony_ci   * @since 10
69261847f8eSopenharmony_ci   */
69361847f8eSopenharmony_ci  /**
69461847f8eSopenharmony_ci   * Called when the maximum number of lines of text is set.
69561847f8eSopenharmony_ci   *
69661847f8eSopenharmony_ci   * @param { number } value
69761847f8eSopenharmony_ci   * @returns { TextAttribute }
69861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
69961847f8eSopenharmony_ci   * @crossplatform
70061847f8eSopenharmony_ci   * @form
70161847f8eSopenharmony_ci   * @atomicservice
70261847f8eSopenharmony_ci   * @since 11
70361847f8eSopenharmony_ci   */
70461847f8eSopenharmony_ci  maxLines(value: number): TextAttribute;
70561847f8eSopenharmony_ci
70661847f8eSopenharmony_ci  /**
70761847f8eSopenharmony_ci   * Called when the text decoration of the text is set.
70861847f8eSopenharmony_ci   *
70961847f8eSopenharmony_ci   * @param { object } value
71061847f8eSopenharmony_ci   * @returns { TextAttribute }
71161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
71261847f8eSopenharmony_ci   * @since 7
71361847f8eSopenharmony_ci   */
71461847f8eSopenharmony_ci  /**
71561847f8eSopenharmony_ci   * Called when the text decoration of the text is set.
71661847f8eSopenharmony_ci   *
71761847f8eSopenharmony_ci   * @param { object } value
71861847f8eSopenharmony_ci   * @returns { TextAttribute }
71961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
72061847f8eSopenharmony_ci   * @form
72161847f8eSopenharmony_ci   * @since 9
72261847f8eSopenharmony_ci   */
72361847f8eSopenharmony_ci  /**
72461847f8eSopenharmony_ci   * Called when the text decoration of the text is set.
72561847f8eSopenharmony_ci   *
72661847f8eSopenharmony_ci   * @param { object } value
72761847f8eSopenharmony_ci   * @returns { TextAttribute }
72861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
72961847f8eSopenharmony_ci   * @crossplatform
73061847f8eSopenharmony_ci   * @form
73161847f8eSopenharmony_ci   * @since 10
73261847f8eSopenharmony_ci   */
73361847f8eSopenharmony_ci  /**
73461847f8eSopenharmony_ci   * Called when the text decoration of the text is set.
73561847f8eSopenharmony_ci   *
73661847f8eSopenharmony_ci   * @param { object } value
73761847f8eSopenharmony_ci   * @returns { TextAttribute }
73861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
73961847f8eSopenharmony_ci   * @crossplatform
74061847f8eSopenharmony_ci   * @form
74161847f8eSopenharmony_ci   * @atomicservice
74261847f8eSopenharmony_ci   * @since 11
74361847f8eSopenharmony_ci   */
74461847f8eSopenharmony_ci  /**
74561847f8eSopenharmony_ci   * Called when the text decoration of the text is set.
74661847f8eSopenharmony_ci   *
74761847f8eSopenharmony_ci   * @param { DecorationStyleInterface } value
74861847f8eSopenharmony_ci   * @returns { TextAttribute }
74961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
75061847f8eSopenharmony_ci   * @crossplatform
75161847f8eSopenharmony_ci   * @form
75261847f8eSopenharmony_ci   * @atomicservice
75361847f8eSopenharmony_ci   * @since 12
75461847f8eSopenharmony_ci   */
75561847f8eSopenharmony_ci  decoration(value: DecorationStyleInterface): TextAttribute;
75661847f8eSopenharmony_ci
75761847f8eSopenharmony_ci  /**
75861847f8eSopenharmony_ci   * Called when the distance between text fonts is set.
75961847f8eSopenharmony_ci   *
76061847f8eSopenharmony_ci   * @param { number | string } value
76161847f8eSopenharmony_ci   * @returns { TextAttribute }
76261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
76361847f8eSopenharmony_ci   * @since 7
76461847f8eSopenharmony_ci   */
76561847f8eSopenharmony_ci  /**
76661847f8eSopenharmony_ci   * Called when the distance between text fonts is set.
76761847f8eSopenharmony_ci   *
76861847f8eSopenharmony_ci   * @param { number | string } value
76961847f8eSopenharmony_ci   * @returns { TextAttribute }
77061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
77161847f8eSopenharmony_ci   * @form
77261847f8eSopenharmony_ci   * @since 9
77361847f8eSopenharmony_ci   */
77461847f8eSopenharmony_ci  /**
77561847f8eSopenharmony_ci   * Called when the distance between text fonts is set.
77661847f8eSopenharmony_ci   *
77761847f8eSopenharmony_ci   * @param { number | string } value
77861847f8eSopenharmony_ci   * @returns { TextAttribute }
77961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
78061847f8eSopenharmony_ci   * @crossplatform
78161847f8eSopenharmony_ci   * @form
78261847f8eSopenharmony_ci   * @since 10
78361847f8eSopenharmony_ci   */
78461847f8eSopenharmony_ci  /**
78561847f8eSopenharmony_ci   * Called when the distance between text fonts is set.
78661847f8eSopenharmony_ci   *
78761847f8eSopenharmony_ci   * @param { number | string } value
78861847f8eSopenharmony_ci   * @returns { TextAttribute }
78961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
79061847f8eSopenharmony_ci   * @crossplatform
79161847f8eSopenharmony_ci   * @form
79261847f8eSopenharmony_ci   * @atomicservice
79361847f8eSopenharmony_ci   * @since 11
79461847f8eSopenharmony_ci   */
79561847f8eSopenharmony_ci  letterSpacing(value: number | string): TextAttribute;
79661847f8eSopenharmony_ci
79761847f8eSopenharmony_ci  /**
79861847f8eSopenharmony_ci   * Called when the type of letter in the text font is set.
79961847f8eSopenharmony_ci   *
80061847f8eSopenharmony_ci   * @param { TextCase } value
80161847f8eSopenharmony_ci   * @returns { TextAttribute }
80261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
80361847f8eSopenharmony_ci   * @since 7
80461847f8eSopenharmony_ci   */
80561847f8eSopenharmony_ci  /**
80661847f8eSopenharmony_ci   * Called when the type of letter in the text font is set.
80761847f8eSopenharmony_ci   *
80861847f8eSopenharmony_ci   * @param { TextCase } value
80961847f8eSopenharmony_ci   * @returns { TextAttribute }
81061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
81161847f8eSopenharmony_ci   * @form
81261847f8eSopenharmony_ci   * @since 9
81361847f8eSopenharmony_ci   */
81461847f8eSopenharmony_ci  /**
81561847f8eSopenharmony_ci   * Called when the type of letter in the text font is set.
81661847f8eSopenharmony_ci   *
81761847f8eSopenharmony_ci   * @param { TextCase } value
81861847f8eSopenharmony_ci   * @returns { TextAttribute }
81961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
82061847f8eSopenharmony_ci   * @crossplatform
82161847f8eSopenharmony_ci   * @form
82261847f8eSopenharmony_ci   * @since 10
82361847f8eSopenharmony_ci   */
82461847f8eSopenharmony_ci  /**
82561847f8eSopenharmony_ci   * Called when the type of letter in the text font is set.
82661847f8eSopenharmony_ci   *
82761847f8eSopenharmony_ci   * @param { TextCase } value
82861847f8eSopenharmony_ci   * @returns { TextAttribute }
82961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
83061847f8eSopenharmony_ci   * @crossplatform
83161847f8eSopenharmony_ci   * @form
83261847f8eSopenharmony_ci   * @atomicservice
83361847f8eSopenharmony_ci   * @since 11
83461847f8eSopenharmony_ci   */
83561847f8eSopenharmony_ci  textCase(value: TextCase): TextAttribute;
83661847f8eSopenharmony_ci
83761847f8eSopenharmony_ci  /**
83861847f8eSopenharmony_ci   * Called when the baseline offset is set.
83961847f8eSopenharmony_ci   *
84061847f8eSopenharmony_ci   * @param { number | string } value
84161847f8eSopenharmony_ci   * @returns { TextAttribute }
84261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
84361847f8eSopenharmony_ci   * @since 7
84461847f8eSopenharmony_ci   */
84561847f8eSopenharmony_ci  /**
84661847f8eSopenharmony_ci   * Called when the baseline offset is set.
84761847f8eSopenharmony_ci   *
84861847f8eSopenharmony_ci   * @param { number | string } value
84961847f8eSopenharmony_ci   * @returns { TextAttribute }
85061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
85161847f8eSopenharmony_ci   * @form
85261847f8eSopenharmony_ci   * @since 9
85361847f8eSopenharmony_ci   */
85461847f8eSopenharmony_ci  /**
85561847f8eSopenharmony_ci   * Called when the baseline offset is set.
85661847f8eSopenharmony_ci   *
85761847f8eSopenharmony_ci   * @param { number | string } value
85861847f8eSopenharmony_ci   * @returns { TextAttribute }
85961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
86061847f8eSopenharmony_ci   * @crossplatform
86161847f8eSopenharmony_ci   * @form
86261847f8eSopenharmony_ci   * @since 10
86361847f8eSopenharmony_ci   */
86461847f8eSopenharmony_ci  /**
86561847f8eSopenharmony_ci   * Called when the baseline offset is set.
86661847f8eSopenharmony_ci   *
86761847f8eSopenharmony_ci   * @param { number | string } value
86861847f8eSopenharmony_ci   * @returns { TextAttribute }
86961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
87061847f8eSopenharmony_ci   * @crossplatform
87161847f8eSopenharmony_ci   * @form
87261847f8eSopenharmony_ci   * @atomicservice
87361847f8eSopenharmony_ci   * @since 11
87461847f8eSopenharmony_ci   */
87561847f8eSopenharmony_ci  baselineOffset(value: number | string): TextAttribute;
87661847f8eSopenharmony_ci
87761847f8eSopenharmony_ci  /**
87861847f8eSopenharmony_ci   * Allow replication.
87961847f8eSopenharmony_ci   *
88061847f8eSopenharmony_ci   * @param { CopyOptions } value
88161847f8eSopenharmony_ci   * @returns { TextAttribute }
88261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
88361847f8eSopenharmony_ci   * @form
88461847f8eSopenharmony_ci   * @since 9
88561847f8eSopenharmony_ci   */
88661847f8eSopenharmony_ci  /**
88761847f8eSopenharmony_ci   * Allow replication.
88861847f8eSopenharmony_ci   *
88961847f8eSopenharmony_ci   * @param { CopyOptions } value
89061847f8eSopenharmony_ci   * @returns { TextAttribute }
89161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
89261847f8eSopenharmony_ci   * @crossplatform
89361847f8eSopenharmony_ci   * @form
89461847f8eSopenharmony_ci   * @since 10
89561847f8eSopenharmony_ci   */
89661847f8eSopenharmony_ci  /**
89761847f8eSopenharmony_ci   * Allow replication.
89861847f8eSopenharmony_ci   *
89961847f8eSopenharmony_ci   * @param { CopyOptions } value
90061847f8eSopenharmony_ci   * @returns { TextAttribute }
90161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
90261847f8eSopenharmony_ci   * @crossplatform
90361847f8eSopenharmony_ci   * @form
90461847f8eSopenharmony_ci   * @atomicservice
90561847f8eSopenharmony_ci   * @since 11
90661847f8eSopenharmony_ci   */
90761847f8eSopenharmony_ci  copyOption(value: CopyOptions): TextAttribute;
90861847f8eSopenharmony_ci
90961847f8eSopenharmony_ci  /**
91061847f8eSopenharmony_ci   * Enable the selectable area can be dragged.
91161847f8eSopenharmony_ci   *
91261847f8eSopenharmony_ci   * @param { boolean } value
91361847f8eSopenharmony_ci   * @returns { TextAttribute }
91461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
91561847f8eSopenharmony_ci   * @since 9
91661847f8eSopenharmony_ci   */
91761847f8eSopenharmony_ci  /**
91861847f8eSopenharmony_ci   * Enable the selectable area can be dragged.
91961847f8eSopenharmony_ci   *
92061847f8eSopenharmony_ci   * @param { boolean } value
92161847f8eSopenharmony_ci   * @returns { TextAttribute }
92261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
92361847f8eSopenharmony_ci   * @atomicservice
92461847f8eSopenharmony_ci   * @since 11
92561847f8eSopenharmony_ci   */
92661847f8eSopenharmony_ci  draggable(value: boolean): TextAttribute;
92761847f8eSopenharmony_ci
92861847f8eSopenharmony_ci  /**
92961847f8eSopenharmony_ci   * Called when the text shadow is set.
93061847f8eSopenharmony_ci   *
93161847f8eSopenharmony_ci   * @param { ShadowOptions } value - The shadow options.
93261847f8eSopenharmony_ci   * @returns { TextAttribute }
93361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
93461847f8eSopenharmony_ci   * @crossplatform
93561847f8eSopenharmony_ci   * @form
93661847f8eSopenharmony_ci   * @since 10
93761847f8eSopenharmony_ci   */
93861847f8eSopenharmony_ci  /**
93961847f8eSopenharmony_ci   * Called when the text shadow is set.
94061847f8eSopenharmony_ci   *
94161847f8eSopenharmony_ci   * @param { ShadowOptions | Array<ShadowOptions> } value - The shadow options.
94261847f8eSopenharmony_ci   * @returns { TextAttribute }
94361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
94461847f8eSopenharmony_ci   * @crossplatform
94561847f8eSopenharmony_ci   * @form
94661847f8eSopenharmony_ci   * @atomicservice
94761847f8eSopenharmony_ci   * @since 11
94861847f8eSopenharmony_ci   */
94961847f8eSopenharmony_ci  textShadow(value: ShadowOptions | Array<ShadowOptions>): TextAttribute;
95061847f8eSopenharmony_ci
95161847f8eSopenharmony_ci  /**
95261847f8eSopenharmony_ci   * Called when the height adaptive policy is set.
95361847f8eSopenharmony_ci   *
95461847f8eSopenharmony_ci   * @param { TextHeightAdaptivePolicy } value - The height adaptive policy.
95561847f8eSopenharmony_ci   * @returns { TextAttribute }
95661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
95761847f8eSopenharmony_ci   * @crossplatform
95861847f8eSopenharmony_ci   * @since 10
95961847f8eSopenharmony_ci   */
96061847f8eSopenharmony_ci  /**
96161847f8eSopenharmony_ci   * Called when the height adaptive policy is set.
96261847f8eSopenharmony_ci   *
96361847f8eSopenharmony_ci   * @param { TextHeightAdaptivePolicy } value - The height adaptive policy.
96461847f8eSopenharmony_ci   * @returns { TextAttribute }
96561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
96661847f8eSopenharmony_ci   * @crossplatform
96761847f8eSopenharmony_ci   * @atomicservice
96861847f8eSopenharmony_ci   * @since 11
96961847f8eSopenharmony_ci   */
97061847f8eSopenharmony_ci  heightAdaptivePolicy(value: TextHeightAdaptivePolicy): TextAttribute;
97161847f8eSopenharmony_ci
97261847f8eSopenharmony_ci  /**
97361847f8eSopenharmony_ci   * Specify the indentation of the first line in a text-block.
97461847f8eSopenharmony_ci   *
97561847f8eSopenharmony_ci   * @param { Length } value - The length of text indent.
97661847f8eSopenharmony_ci   * @returns { TextAttribute } The attribute of the text.
97761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
97861847f8eSopenharmony_ci   * @crossplatform
97961847f8eSopenharmony_ci   * @since 10
98061847f8eSopenharmony_ci   */
98161847f8eSopenharmony_ci  /**
98261847f8eSopenharmony_ci   * Specify the indentation of the first line in a text-block.
98361847f8eSopenharmony_ci   *
98461847f8eSopenharmony_ci   * @param { Length } value - The length of text indent.
98561847f8eSopenharmony_ci   * @returns { TextAttribute } The attribute of the text.
98661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
98761847f8eSopenharmony_ci   * @crossplatform
98861847f8eSopenharmony_ci   * @atomicservice
98961847f8eSopenharmony_ci   * @since 11
99061847f8eSopenharmony_ci   */
99161847f8eSopenharmony_ci  textIndent(value: Length): TextAttribute;
99261847f8eSopenharmony_ci
99361847f8eSopenharmony_ci  /**
99461847f8eSopenharmony_ci   * Set the word break type.
99561847f8eSopenharmony_ci   *
99661847f8eSopenharmony_ci   * @param { WordBreak } value - The word break type.
99761847f8eSopenharmony_ci   * @returns { TextAttribute } The attribute of the text.
99861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
99961847f8eSopenharmony_ci   * @crossplatform
100061847f8eSopenharmony_ci   * @atomicservice
100161847f8eSopenharmony_ci   * @since 11
100261847f8eSopenharmony_ci   */
100361847f8eSopenharmony_ci  wordBreak(value: WordBreak): TextAttribute;
100461847f8eSopenharmony_ci
100561847f8eSopenharmony_ci  /**
100661847f8eSopenharmony_ci   * Set the text line break strategy type.
100761847f8eSopenharmony_ci   *
100861847f8eSopenharmony_ci   * @param { LineBreakStrategy } strategy - The text line break strategy type.
100961847f8eSopenharmony_ci   * @returns { TextAttribute } The attribute of the text.
101061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
101161847f8eSopenharmony_ci   * @crossplatform
101261847f8eSopenharmony_ci   * @atomicservice
101361847f8eSopenharmony_ci   * @since 12
101461847f8eSopenharmony_ci   */
101561847f8eSopenharmony_ci  lineBreakStrategy(strategy: LineBreakStrategy): TextAttribute;
101661847f8eSopenharmony_ci
101761847f8eSopenharmony_ci  /**
101861847f8eSopenharmony_ci   * Called when using the Clipboard menu
101961847f8eSopenharmony_ci   *
102061847f8eSopenharmony_ci   * @param { function } callback - callback of the listened event.
102161847f8eSopenharmony_ci   * @returns { TextAttribute } The attribute of the text.
102261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
102361847f8eSopenharmony_ci   * @crossplatform
102461847f8eSopenharmony_ci   * @atomicservice
102561847f8eSopenharmony_ci   * @since 11
102661847f8eSopenharmony_ci   */
102761847f8eSopenharmony_ci  onCopy(callback: (value: string) => void): TextAttribute;
102861847f8eSopenharmony_ci
102961847f8eSopenharmony_ci  /**
103061847f8eSopenharmony_ci   * Text selection is achieved by specifying the start and end positions of the text.
103161847f8eSopenharmony_ci   *
103261847f8eSopenharmony_ci   * @param { number } selectionStart - The start position of the selected text.
103361847f8eSopenharmony_ci   * @param { number } selectionEnd - The end position of the selected text.
103461847f8eSopenharmony_ci   * @returns { TextAttribute } The attribute of the text.
103561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
103661847f8eSopenharmony_ci   * @crossplatform
103761847f8eSopenharmony_ci   * @atomicservice
103861847f8eSopenharmony_ci   * @since 11
103961847f8eSopenharmony_ci   */
104061847f8eSopenharmony_ci  selection(selectionStart: number, selectionEnd: number): TextAttribute;
104161847f8eSopenharmony_ci
104261847f8eSopenharmony_ci  /**
104361847f8eSopenharmony_ci   * Set the caret color for the selected text.
104461847f8eSopenharmony_ci   *
104561847f8eSopenharmony_ci   * @param { ResourceColor } color - The color of the selected text caret.
104661847f8eSopenharmony_ci   * @returns { TextAttribute }
104761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
104861847f8eSopenharmony_ci   * @crossplatform
104961847f8eSopenharmony_ci   * @atomicservice
105061847f8eSopenharmony_ci   * @since 14
105161847f8eSopenharmony_ci   */
105261847f8eSopenharmony_ci  caretColor(color: ResourceColor): TextAttribute;
105361847f8eSopenharmony_ci
105461847f8eSopenharmony_ci  /**
105561847f8eSopenharmony_ci   * Set the selected background color of the text.
105661847f8eSopenharmony_ci   *
105761847f8eSopenharmony_ci   * @param { ResourceColor } color - The color of the selected text background.
105861847f8eSopenharmony_ci   * @returns { TextAttribute }
105961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
106061847f8eSopenharmony_ci   * @crossplatform
106161847f8eSopenharmony_ci   * @atomicservice
106261847f8eSopenharmony_ci   * @since 14
106361847f8eSopenharmony_ci   */
106461847f8eSopenharmony_ci  selectedBackgroundColor(color: ResourceColor): TextAttribute;
106561847f8eSopenharmony_ci
106661847f8eSopenharmony_ci  /**
106761847f8eSopenharmony_ci   * Set the ellipsis mode.
106861847f8eSopenharmony_ci   *
106961847f8eSopenharmony_ci   * @param { EllipsisMode } value - The ellipsis mode.
107061847f8eSopenharmony_ci   * @returns { TextAttribute } The attribute of the text.
107161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
107261847f8eSopenharmony_ci   * @crossplatform
107361847f8eSopenharmony_ci   * @since 11
107461847f8eSopenharmony_ci   */
107561847f8eSopenharmony_ci  /**
107661847f8eSopenharmony_ci   * Set the ellipsis mode.
107761847f8eSopenharmony_ci   *
107861847f8eSopenharmony_ci   * @param { EllipsisMode } value - The ellipsis mode.
107961847f8eSopenharmony_ci   * @returns { TextAttribute } The attribute of the text.
108061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
108161847f8eSopenharmony_ci   * @crossplatform
108261847f8eSopenharmony_ci   * @atomicservice
108361847f8eSopenharmony_ci   * @since 12
108461847f8eSopenharmony_ci   */
108561847f8eSopenharmony_ci  ellipsisMode(value: EllipsisMode): TextAttribute;
108661847f8eSopenharmony_ci
108761847f8eSopenharmony_ci  /**
108861847f8eSopenharmony_ci   * Enable data detector.
108961847f8eSopenharmony_ci   *
109061847f8eSopenharmony_ci   * @param { boolean } enable - Enable data detector.
109161847f8eSopenharmony_ci   * @returns { TextAttribute } The attribute of the text.
109261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
109361847f8eSopenharmony_ci   * @since 11
109461847f8eSopenharmony_ci   */
109561847f8eSopenharmony_ci  /**
109661847f8eSopenharmony_ci   * Enable data detector.
109761847f8eSopenharmony_ci   *
109861847f8eSopenharmony_ci   * @param { boolean } enable - Enable data detector.
109961847f8eSopenharmony_ci   * @returns { TextAttribute } The attribute of the text.
110061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
110161847f8eSopenharmony_ci   * @atomicservice
110261847f8eSopenharmony_ci   * @since 12
110361847f8eSopenharmony_ci   */
110461847f8eSopenharmony_ci  enableDataDetector(enable: boolean): TextAttribute;
110561847f8eSopenharmony_ci
110661847f8eSopenharmony_ci  /**
110761847f8eSopenharmony_ci   * Data detector with config.
110861847f8eSopenharmony_ci   *
110961847f8eSopenharmony_ci   * @param { TextDataDetectorConfig } config - The config of text data detector.
111061847f8eSopenharmony_ci   * @returns { TextAttribute } The attribute of the text.
111161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
111261847f8eSopenharmony_ci   * @since 11
111361847f8eSopenharmony_ci   */
111461847f8eSopenharmony_ci  /**
111561847f8eSopenharmony_ci   * Data detector with config.
111661847f8eSopenharmony_ci   *
111761847f8eSopenharmony_ci   * @param { TextDataDetectorConfig } config - The config of text data detector.
111861847f8eSopenharmony_ci   * @returns { TextAttribute } The attribute of the text.
111961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
112061847f8eSopenharmony_ci   * @atomicservice
112161847f8eSopenharmony_ci   * @since 12
112261847f8eSopenharmony_ci   */
112361847f8eSopenharmony_ci  dataDetectorConfig(config: TextDataDetectorConfig): TextAttribute;
112461847f8eSopenharmony_ci
112561847f8eSopenharmony_ci  /**
112661847f8eSopenharmony_ci   * Bind to the selection menu.
112761847f8eSopenharmony_ci   *
112861847f8eSopenharmony_ci   * @param { TextSpanType } spanType - Indicates the type of selection menu.
112961847f8eSopenharmony_ci   * @param { CustomBuilder } content - Indicates the content of selection menu.
113061847f8eSopenharmony_ci   * @param { TextResponseType } responseType - Indicates response type of selection menu.
113161847f8eSopenharmony_ci   * @param { SelectionMenuOptions } [options] - Indicates the options of selection menu.
113261847f8eSopenharmony_ci   * @returns { TextAttribute }
113361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
113461847f8eSopenharmony_ci   * @crossplatform
113561847f8eSopenharmony_ci   * @since 11
113661847f8eSopenharmony_ci   */
113761847f8eSopenharmony_ci  /**
113861847f8eSopenharmony_ci   * Bind to the selection menu.
113961847f8eSopenharmony_ci   *
114061847f8eSopenharmony_ci   * @param { TextSpanType } spanType - Indicates the type of selection menu.
114161847f8eSopenharmony_ci   * @param { CustomBuilder } content - Indicates the content of selection menu.
114261847f8eSopenharmony_ci   * @param { TextResponseType } responseType - Indicates response type of selection menu.
114361847f8eSopenharmony_ci   * @param { SelectionMenuOptions } [options] - Indicates the options of selection menu.
114461847f8eSopenharmony_ci   * @returns { TextAttribute }
114561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
114661847f8eSopenharmony_ci   * @crossplatform
114761847f8eSopenharmony_ci   * @atomicservice
114861847f8eSopenharmony_ci   * @since 12
114961847f8eSopenharmony_ci   */
115061847f8eSopenharmony_ci  bindSelectionMenu(spanType: TextSpanType, content: CustomBuilder, responseType: TextResponseType,
115161847f8eSopenharmony_ci    options?: SelectionMenuOptions): TextAttribute;
115261847f8eSopenharmony_ci
115361847f8eSopenharmony_ci  /**
115461847f8eSopenharmony_ci   * Called when the text selection changes.
115561847f8eSopenharmony_ci   *
115661847f8eSopenharmony_ci   * @param { function } callback - callback of the listened event.
115761847f8eSopenharmony_ci   * @returns { TextAttribute } returns the instance of the TextAttribute.
115861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
115961847f8eSopenharmony_ci   * @crossplatform
116061847f8eSopenharmony_ci   * @since 11
116161847f8eSopenharmony_ci   */
116261847f8eSopenharmony_ci  /**
116361847f8eSopenharmony_ci   * Called when the text selection changes.
116461847f8eSopenharmony_ci   *
116561847f8eSopenharmony_ci   * @param { function } callback - callback of the listened event.
116661847f8eSopenharmony_ci   * @returns { TextAttribute } returns the instance of the TextAttribute.
116761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
116861847f8eSopenharmony_ci   * @crossplatform
116961847f8eSopenharmony_ci   * @atomicservice
117061847f8eSopenharmony_ci   * @since 12
117161847f8eSopenharmony_ci   */
117261847f8eSopenharmony_ci  onTextSelectionChange(callback: (selectionStart: number, selectionEnd: number) => void): TextAttribute;
117361847f8eSopenharmony_ci
117461847f8eSopenharmony_ci  /**
117561847f8eSopenharmony_ci   * Set font feature.
117661847f8eSopenharmony_ci   *
117761847f8eSopenharmony_ci   * @param { string } value - The fontFeature.
117861847f8eSopenharmony_ci   * normal | <feature-tag-value>, 
117961847f8eSopenharmony_ci   * where <feature-tag-value> = <string> [ <integer> | on | off ], like: "ss01" 0
118061847f8eSopenharmony_ci   * the values of <feature-tag-value> reference to doc of text component
118161847f8eSopenharmony_ci   * number of <feature-tag-value> can be single or multiple, and separated by comma ','.
118261847f8eSopenharmony_ci   * @returns { TextAttribute }
118361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
118461847f8eSopenharmony_ci   * @crossplatform
118561847f8eSopenharmony_ci   * @form
118661847f8eSopenharmony_ci   * @atomicservice
118761847f8eSopenharmony_ci   * @since 12
118861847f8eSopenharmony_ci   */
118961847f8eSopenharmony_ci  fontFeature(value: string): TextAttribute;
119061847f8eSopenharmony_ci
119161847f8eSopenharmony_ci  /**
119261847f8eSopenharmony_ci   * Whether to support sensitive privacy information
119361847f8eSopenharmony_ci   *
119461847f8eSopenharmony_ci   * @param { boolean } supported - Whether to support sensitive privacy information.
119561847f8eSopenharmony_ci   * @returns { TextAttribute }
119661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
119761847f8eSopenharmony_ci   * @form
119861847f8eSopenharmony_ci   * @atomicservice
119961847f8eSopenharmony_ci   * @since 12
120061847f8eSopenharmony_ci   */
120161847f8eSopenharmony_ci  privacySensitive(supported: boolean): TextAttribute;
120261847f8eSopenharmony_ci
120361847f8eSopenharmony_ci  /**
120461847f8eSopenharmony_ci   * set text selectable and focusable
120561847f8eSopenharmony_ci   *
120661847f8eSopenharmony_ci   * @param { TextSelectableMode } mode
120761847f8eSopenharmony_ci   * @returns { TextAttribute }
120861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
120961847f8eSopenharmony_ci   * @crossplatform
121061847f8eSopenharmony_ci   * @atomicservice
121161847f8eSopenharmony_ci   * @since 12
121261847f8eSopenharmony_ci   */
121361847f8eSopenharmony_ci  textSelectable(mode: TextSelectableMode): TextAttribute;
121461847f8eSopenharmony_ci
121561847f8eSopenharmony_ci  /**
121661847f8eSopenharmony_ci   * Set the custom text menu.
121761847f8eSopenharmony_ci   *
121861847f8eSopenharmony_ci   * @param { EditMenuOptions } editMenu - Customize text menu options.
121961847f8eSopenharmony_ci   * @returns { TextAttribute }
122061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
122161847f8eSopenharmony_ci   * @crossplatform
122261847f8eSopenharmony_ci   * @atomicservice
122361847f8eSopenharmony_ci   * @since 12
122461847f8eSopenharmony_ci   */
122561847f8eSopenharmony_ci  editMenuOptions(editMenu: EditMenuOptions): TextAttribute;
122661847f8eSopenharmony_ci
122761847f8eSopenharmony_ci  /**
122861847f8eSopenharmony_ci   * Set the text with half leading.
122961847f8eSopenharmony_ci   *
123061847f8eSopenharmony_ci   * @param { boolean } halfLeading
123161847f8eSopenharmony_ci   * @returns { TextAttribute }
123261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
123361847f8eSopenharmony_ci   * @crossplatform
123461847f8eSopenharmony_ci   * @atomicservice
123561847f8eSopenharmony_ci   * @since 12
123661847f8eSopenharmony_ci   */
123761847f8eSopenharmony_ci  halfLeading(halfLeading: boolean): TextAttribute;
123861847f8eSopenharmony_ci
123961847f8eSopenharmony_ci  /**
124061847f8eSopenharmony_ci   * Enable or disable haptic feedback.
124161847f8eSopenharmony_ci   *
124261847f8eSopenharmony_ci   * @param { boolean } isEnabled - Default value is true, set false to disable haptic feedback.
124361847f8eSopenharmony_ci   * @returns { TextAttribute } returns the instance of the TextAttribute.
124461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
124561847f8eSopenharmony_ci   * @crossplatform
124661847f8eSopenharmony_ci   * @atomicservice
124761847f8eSopenharmony_ci   * @since 13
124861847f8eSopenharmony_ci   */
124961847f8eSopenharmony_ci  enableHapticFeedback(isEnabled: boolean): TextAttribute;
125061847f8eSopenharmony_ci}
125161847f8eSopenharmony_ci
125261847f8eSopenharmony_ci/**
125361847f8eSopenharmony_ci * Defines Text Component instance.
125461847f8eSopenharmony_ci *
125561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
125661847f8eSopenharmony_ci * @since 7
125761847f8eSopenharmony_ci */
125861847f8eSopenharmony_ci/**
125961847f8eSopenharmony_ci * Defines Text Component instance.
126061847f8eSopenharmony_ci *
126161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
126261847f8eSopenharmony_ci * @form
126361847f8eSopenharmony_ci * @since 9
126461847f8eSopenharmony_ci */
126561847f8eSopenharmony_ci/**
126661847f8eSopenharmony_ci * Defines Text Component instance.
126761847f8eSopenharmony_ci *
126861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
126961847f8eSopenharmony_ci * @crossplatform
127061847f8eSopenharmony_ci * @form
127161847f8eSopenharmony_ci * @since 10
127261847f8eSopenharmony_ci */
127361847f8eSopenharmony_ci/**
127461847f8eSopenharmony_ci * Defines Text Component instance.
127561847f8eSopenharmony_ci *
127661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
127761847f8eSopenharmony_ci * @crossplatform
127861847f8eSopenharmony_ci * @form
127961847f8eSopenharmony_ci * @atomicservice
128061847f8eSopenharmony_ci * @since 11
128161847f8eSopenharmony_ci */
128261847f8eSopenharmony_cideclare const TextInstance: TextAttribute;
128361847f8eSopenharmony_ci
128461847f8eSopenharmony_ci/**
128561847f8eSopenharmony_ci * Defines Text Component.
128661847f8eSopenharmony_ci *
128761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
128861847f8eSopenharmony_ci * @since 7
128961847f8eSopenharmony_ci */
129061847f8eSopenharmony_ci/**
129161847f8eSopenharmony_ci * Defines Text Component.
129261847f8eSopenharmony_ci *
129361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
129461847f8eSopenharmony_ci * @form
129561847f8eSopenharmony_ci * @since 9
129661847f8eSopenharmony_ci */
129761847f8eSopenharmony_ci/**
129861847f8eSopenharmony_ci * Defines Text Component.
129961847f8eSopenharmony_ci *
130061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
130161847f8eSopenharmony_ci * @crossplatform
130261847f8eSopenharmony_ci * @form
130361847f8eSopenharmony_ci * @since 10
130461847f8eSopenharmony_ci */
130561847f8eSopenharmony_ci/**
130661847f8eSopenharmony_ci * Defines Text Component.
130761847f8eSopenharmony_ci *
130861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
130961847f8eSopenharmony_ci * @crossplatform
131061847f8eSopenharmony_ci * @form
131161847f8eSopenharmony_ci * @atomicservice
131261847f8eSopenharmony_ci * @since 11
131361847f8eSopenharmony_ci */
131461847f8eSopenharmony_cideclare const Text: TextInterface;
131561847f8eSopenharmony_ci
131661847f8eSopenharmony_ci/**
131761847f8eSopenharmony_ci * Defines span type.
131861847f8eSopenharmony_ci *
131961847f8eSopenharmony_ci * @enum { number }
132061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
132161847f8eSopenharmony_ci * @crossplatform
132261847f8eSopenharmony_ci * @since 11
132361847f8eSopenharmony_ci */
132461847f8eSopenharmony_ci/**
132561847f8eSopenharmony_ci * Defines span type.
132661847f8eSopenharmony_ci *
132761847f8eSopenharmony_ci * @enum { number }
132861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
132961847f8eSopenharmony_ci * @crossplatform
133061847f8eSopenharmony_ci * @atomicservice
133161847f8eSopenharmony_ci * @since 12
133261847f8eSopenharmony_ci */
133361847f8eSopenharmony_cideclare enum TextSpanType {
133461847f8eSopenharmony_ci  /**
133561847f8eSopenharmony_ci   * Only contains text.
133661847f8eSopenharmony_ci   *
133761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
133861847f8eSopenharmony_ci   * @crossplatform
133961847f8eSopenharmony_ci   * @since 11
134061847f8eSopenharmony_ci   */
134161847f8eSopenharmony_ci  /**
134261847f8eSopenharmony_ci   * Only contains text.
134361847f8eSopenharmony_ci   *
134461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
134561847f8eSopenharmony_ci   * @crossplatform
134661847f8eSopenharmony_ci   * @atomicservice
134761847f8eSopenharmony_ci   * @since 12
134861847f8eSopenharmony_ci   */
134961847f8eSopenharmony_ci  TEXT = 0,
135061847f8eSopenharmony_ci
135161847f8eSopenharmony_ci  /**
135261847f8eSopenharmony_ci   * Only contains image.
135361847f8eSopenharmony_ci   *
135461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
135561847f8eSopenharmony_ci   * @crossplatform
135661847f8eSopenharmony_ci   * @since 11
135761847f8eSopenharmony_ci   */
135861847f8eSopenharmony_ci  /**
135961847f8eSopenharmony_ci   * Only contains image.
136061847f8eSopenharmony_ci   *
136161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
136261847f8eSopenharmony_ci   * @crossplatform
136361847f8eSopenharmony_ci   * @atomicservice
136461847f8eSopenharmony_ci   * @since 12
136561847f8eSopenharmony_ci   */
136661847f8eSopenharmony_ci  IMAGE = 1,
136761847f8eSopenharmony_ci
136861847f8eSopenharmony_ci  /**
136961847f8eSopenharmony_ci   * Contains both text and image.
137061847f8eSopenharmony_ci   *
137161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
137261847f8eSopenharmony_ci   * @crossplatform
137361847f8eSopenharmony_ci   * @since 11
137461847f8eSopenharmony_ci   */
137561847f8eSopenharmony_ci  /**
137661847f8eSopenharmony_ci   * Contains both text and image.
137761847f8eSopenharmony_ci   *
137861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
137961847f8eSopenharmony_ci   * @crossplatform
138061847f8eSopenharmony_ci   * @atomicservice
138161847f8eSopenharmony_ci   * @since 12
138261847f8eSopenharmony_ci   */
138361847f8eSopenharmony_ci  MIXED = 2,
138461847f8eSopenharmony_ci}
138561847f8eSopenharmony_ci
138661847f8eSopenharmony_ci/**
138761847f8eSopenharmony_ci * ResponseType for contextMenu
138861847f8eSopenharmony_ci *
138961847f8eSopenharmony_ci * @enum { number }
139061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
139161847f8eSopenharmony_ci * @crossplatform
139261847f8eSopenharmony_ci * @since 11
139361847f8eSopenharmony_ci */
139461847f8eSopenharmony_ci/**
139561847f8eSopenharmony_ci * ResponseType for contextMenu
139661847f8eSopenharmony_ci *
139761847f8eSopenharmony_ci * @enum { number }
139861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
139961847f8eSopenharmony_ci * @crossplatform
140061847f8eSopenharmony_ci * @atomicservice
140161847f8eSopenharmony_ci * @since 12
140261847f8eSopenharmony_ci */
140361847f8eSopenharmony_cideclare enum TextResponseType {
140461847f8eSopenharmony_ci  /**
140561847f8eSopenharmony_ci   * Right click.
140661847f8eSopenharmony_ci   *
140761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
140861847f8eSopenharmony_ci   * @crossplatform
140961847f8eSopenharmony_ci   * @since 11
141061847f8eSopenharmony_ci   */
141161847f8eSopenharmony_ci  /**
141261847f8eSopenharmony_ci   * Right click.
141361847f8eSopenharmony_ci   *
141461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
141561847f8eSopenharmony_ci   * @crossplatform
141661847f8eSopenharmony_ci   * @atomicservice
141761847f8eSopenharmony_ci   * @since 12
141861847f8eSopenharmony_ci   */
141961847f8eSopenharmony_ci  RIGHT_CLICK = 0,
142061847f8eSopenharmony_ci
142161847f8eSopenharmony_ci  /**
142261847f8eSopenharmony_ci   * Long press.
142361847f8eSopenharmony_ci   *
142461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
142561847f8eSopenharmony_ci   * @crossplatform
142661847f8eSopenharmony_ci   * @since 11
142761847f8eSopenharmony_ci   */
142861847f8eSopenharmony_ci  /**
142961847f8eSopenharmony_ci   * Long press.
143061847f8eSopenharmony_ci   *
143161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
143261847f8eSopenharmony_ci   * @crossplatform
143361847f8eSopenharmony_ci   * @atomicservice
143461847f8eSopenharmony_ci   * @since 12
143561847f8eSopenharmony_ci   */
143661847f8eSopenharmony_ci  LONG_PRESS = 1,
143761847f8eSopenharmony_ci
143861847f8eSopenharmony_ci  /**
143961847f8eSopenharmony_ci   * Selected by mouse.
144061847f8eSopenharmony_ci   *
144161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
144261847f8eSopenharmony_ci   * @crossplatform
144361847f8eSopenharmony_ci   * @since 11
144461847f8eSopenharmony_ci   */
144561847f8eSopenharmony_ci  /**
144661847f8eSopenharmony_ci   * Selected by mouse.
144761847f8eSopenharmony_ci   *
144861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
144961847f8eSopenharmony_ci   * @crossplatform
145061847f8eSopenharmony_ci   * @atomicservice
145161847f8eSopenharmony_ci   * @since 12
145261847f8eSopenharmony_ci   */
145361847f8eSopenharmony_ci  SELECT = 2,
145461847f8eSopenharmony_ci}
145561847f8eSopenharmony_ci
145661847f8eSopenharmony_ci/**
145761847f8eSopenharmony_ci * Defines the options of Text.
145861847f8eSopenharmony_ci *
145961847f8eSopenharmony_ci * @interface TextOptions
146061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
146161847f8eSopenharmony_ci * @crossplatform
146261847f8eSopenharmony_ci * @since 11
146361847f8eSopenharmony_ci */
146461847f8eSopenharmony_ci/**
146561847f8eSopenharmony_ci * Defines the options of Text.
146661847f8eSopenharmony_ci *
146761847f8eSopenharmony_ci * @interface TextOptions
146861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
146961847f8eSopenharmony_ci * @crossplatform
147061847f8eSopenharmony_ci * @atomicservice
147161847f8eSopenharmony_ci * @since 12
147261847f8eSopenharmony_ci */
147361847f8eSopenharmony_cideclare interface TextOptions {
147461847f8eSopenharmony_ci  /**
147561847f8eSopenharmony_ci   * Text controller.
147661847f8eSopenharmony_ci   *
147761847f8eSopenharmony_ci   * @type { TextController }
147861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
147961847f8eSopenharmony_ci   * @crossplatform
148061847f8eSopenharmony_ci   * @since 11
148161847f8eSopenharmony_ci   */
148261847f8eSopenharmony_ci  /**
148361847f8eSopenharmony_ci   * Text controller.
148461847f8eSopenharmony_ci   *
148561847f8eSopenharmony_ci   * @type { TextController }
148661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
148761847f8eSopenharmony_ci   * @crossplatform
148861847f8eSopenharmony_ci   * @atomicservice
148961847f8eSopenharmony_ci   * @since 12
149061847f8eSopenharmony_ci   */
149161847f8eSopenharmony_ci  controller: TextController;
149261847f8eSopenharmony_ci}
149361847f8eSopenharmony_ci
149461847f8eSopenharmony_ci/**
149561847f8eSopenharmony_ci * Defines the controller of Text.
149661847f8eSopenharmony_ci *
149761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
149861847f8eSopenharmony_ci * @crossplatform
149961847f8eSopenharmony_ci * @since 11
150061847f8eSopenharmony_ci */
150161847f8eSopenharmony_ci/**
150261847f8eSopenharmony_ci * Defines the controller of Text.
150361847f8eSopenharmony_ci *
150461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
150561847f8eSopenharmony_ci * @crossplatform
150661847f8eSopenharmony_ci * @atomicservice
150761847f8eSopenharmony_ci * @since 12
150861847f8eSopenharmony_ci */
150961847f8eSopenharmony_cideclare class TextController {
151061847f8eSopenharmony_ci  /**
151161847f8eSopenharmony_ci   * Close the select menu when menu is on.
151261847f8eSopenharmony_ci   *
151361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
151461847f8eSopenharmony_ci   * @crossplatform
151561847f8eSopenharmony_ci   * @since 11
151661847f8eSopenharmony_ci   */
151761847f8eSopenharmony_ci  /**
151861847f8eSopenharmony_ci   * Close the select menu when menu is on.
151961847f8eSopenharmony_ci   *
152061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
152161847f8eSopenharmony_ci   * @crossplatform
152261847f8eSopenharmony_ci   * @atomicservice
152361847f8eSopenharmony_ci   * @since 12
152461847f8eSopenharmony_ci   */
152561847f8eSopenharmony_ci  closeSelectionMenu(): void;
152661847f8eSopenharmony_ci
152761847f8eSopenharmony_ci  /**
152861847f8eSopenharmony_ci   * Update the styles of StyledString by setStyledString.
152961847f8eSopenharmony_ci   *
153061847f8eSopenharmony_ci   * @param { StyledString } value
153161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
153261847f8eSopenharmony_ci   * @crossplatform
153361847f8eSopenharmony_ci   * @atomicservice
153461847f8eSopenharmony_ci   * @since 12
153561847f8eSopenharmony_ci   */
153661847f8eSopenharmony_ci  setStyledString(value: StyledString): void;
153761847f8eSopenharmony_ci
153861847f8eSopenharmony_ci  /**
153961847f8eSopenharmony_ci   * Get LayoutManager.
154061847f8eSopenharmony_ci   *
154161847f8eSopenharmony_ci   * @returns { LayoutManager } - Return the LayoutManager.
154261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
154361847f8eSopenharmony_ci   * @crossplatform
154461847f8eSopenharmony_ci   * @atomicservice
154561847f8eSopenharmony_ci   * @since 12
154661847f8eSopenharmony_ci   */
154761847f8eSopenharmony_ci  getLayoutManager(): LayoutManager;
154861847f8eSopenharmony_ci}
1549