Lines Matching refs:styles

3 Styled strings are string objects that facilitate the flexible use of text styles. They can be boun…
20 constructor(value: string | ImageAttachment | CustomSpan , styles?: Array\<StyleOptions>)
30 …br>If this parameter is of the ImageAttachment or CustomSpan type, the **styles** parameter does n…
31 | styles | Array<[StyleOptions](#styleoptions)> | No| Initialization options of the styled string.<…
116 Obtains the styles in the specified range of a styled string.
134 | Array<[SpanStyle](#spanstyle)> | Array of styles.<br>**NOTE**<br>If no style is set for the speci…
148 …n>**, **\<img>**. Only the styles defined by the **style** attributes of these tags can be convert…
375 Removes all styles for the specified range of this styled string.
404 Removes all styles of this styled string.
1117 // Create the mutableStyledString2 object whose input parameters contain strings and styles.
1228 let styles = this.mutableStyledString1.getStyles(0, this.mutableStyledString1.length)
1229 if (styles.length == 2) {
1230 for (let i = 0; i < styles.length; i++) {
1231 console.info('StyledString style object start:' + styles[i].start)
1232 console.info('StyledString style object length:' + styles[i].length)
1233 console.info('StyledString style object key:' + styles[i].styledKey)
1234 if (styles[i].styledKey === 0) {
1235 let fontAttr = styles[i].styledValue as TextStyle;
1240 if (styles[0] !== undefined) {
1241 this.mutableStyledString2.setStyle(styles[0]);
1355 This example shows how to query and set styles for styled strings using the **getStyles** and **set…
1379 // Create a styled string object with multiple text styles: mutableStyledString1.
1392 // Create a styled string object with multiple styles: mutableStyledString2.
1450 …// Display the styled string configured with various font styles. If the styled string conflicts w…
1469 let styles = this.mutableStyledString1.getStyles(0, this.mutableStyledString1.length)
1470 if (styles.length !== 0) {
1471 for (let i = 0; i < styles.length; i++) {
1472 console.info('mutableStyledString1 style object start:' + styles[i].start)
1473 console.info('mutableStyledString1 style object length:' + styles[i].length)
1474 console.info('mutableStyledString1 style object key:' + styles[i].styledKey)
1475 if (styles[i].styledKey === 0) {
1476 let fontAttr = styles[i].styledValue as TextStyle;
1489 let styles = this.mutableStyledString2.getStyles(0, this.mutableStyledString2.length)
1490 if (styles.length !== 0) {
1491 for (let i = 0; i < styles.length; i++) {
1492 console.info('mutableStyledString2 style object start:' + styles[i].start)
1493 console.info('mutableStyledString2 style object length:' + styles[i].length)
1494 console.info('mutableStyledString2 style object key:' + styles[i].styledKey)
1495 if (styles[i].styledKey === 1) {
1496 let decoAttr = styles[i].styledValue as DecorationStyle;
1500 if (styles[i].styledKey === 2) {
1501 let baselineAttr = styles[i].styledValue as BaselineOffsetStyle;
1504 if (styles[i].styledKey === 3) {
1505 let letterAttr = styles[i].styledValue as LetterSpacingStyle;
1508 if (styles[i].styledKey === 4) {
1509 let textShadowAttr = styles[i].styledValue as TextShadowStyle;
1670 This example demonstrates how to set the line height and paragraph styles for styled strings using …
1785 … let styles = this.paragraphStyledString1.getStyles(0, this.paragraphStyledString1.length)
1786 if (styles.length !== 0) {
1787 for (let i = 0; i < styles.length; i++) {
1788 console.info('paragraphStyledString1 style object start:' + styles[i].start)
1789 console.info('paragraphStyledString1 style object length:' + styles[i].length)
1790 console.info('paragraphStyledString1 style object key:' + styles[i].styledKey)
1791 if (styles[i].styledKey === 200) {
1792 let paraAttr = styles[i].styledValue as ParagraphStyle;