Lines Matching refs:Text

1 # Text Display (Text/Span)
4 The **Text** component is used to display a piece of textual information. The **Span** component is…
6 For details, see [Text](../reference/apis-arkui/arkui-ts/ts-basic-components-text.md) and [Span](..…
9 ## Creating Text
17 Text('I am a piece of text')
30 Text($r('app.string.module_desc'))
43Text](../reference/apis-arkui/arkui-ts/ts-basic-components-text.md) and [RichEditor](../reference/…
47Text** component. It does not display any content when used alone. If both the **Span** and **Text
51 Text('I am Text') {
66 Text() {
84 Text() {
100 Text() {
115 Text('Left aligned')
120 Text('Center aligned')
125 Text('Right aligned')
137Text('This is the setting of textOverflow to Clip text content This is the setting of textOverflow…
144 Text('I am extra long text, with an ellipse displayed for any excess.')
151 Text('When the text overflows the container, it scrolls.')
165 Text('This is the text with the line height set. This is the text with the line height set.')
167 Text('This is the text with the line height set. This is the text with the line height set.')
177 Text('This is the text')
183 Text('This is the text')
189 Text('This is the text')
202 Text('This is the text content with baselineOffset 0.')
209 Text('This is the text content with baselineOffset 30.')
217 Text('This is the text content with baselineOffset -20.')
231 Text('This is the text content with letterSpacing 0.')
238 Text('This is the text content with letterSpacing 3.')
245 Text('This is the text content with letterSpacing -1.')
261Text('My maximum font size is 30, minimum font size is 5, width is 250, and maximum number of line…
269Text('My maximum font size is 30, minimum font size is 5, width is 250, and maximum number of line…
277 Text('My maximum font size is 30, minimum font size is 15, width is 250, and line height is 50')
285 Text('My maximum font size is 30, minimum font size is 15, width is 250, and line height is 100')
300 Text('This is the text content with textCase set to Normal.')
308 Text('This is the text content with textCase set to LowerCase.')
315 Text('This is the text content with textCase set to UpperCase.')
327 Text("This text is copyable")
337 You can bind the **Text** component to the [onClick](../reference/apis-arkui/arkui-ts/ts-universal-…
340 Text('Click Me')
358 Text("1").fontSize(14).fontColor(Color.Red).margin({ left: 10, right: 10 })
359 Text("I am entry 1")
365 Text("Top Hit")
378 Text("2").fontSize(14).fontColor(Color.Red).margin({ left: 10, right: 10 })
379 Text("I am entry 2 I am entry 2 I am entry 2 I am entry 2")
386 Text("Hot")
399 Text("3").fontSize(14).fontColor(Color.Orange).margin({ left: 10, right: 10 })
400 Text("I am entry 3")
407 Text("Hot")
420 Text("4").fontSize(14).fontColor(Color.Grey).margin({ left: 10, right: 10 })
421 Text("I am entry 4 I am entry 4 I am entry 4 I am entry 4")