public class RichTextStringData extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RichTextStringData.IntervalFont |
| Constructor and Description |
|---|
RichTextStringData(String textString) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyFont(int startIndex,
int endIndex,
WriteFont writeFont)
Applies a font to the specified characters of a string.
|
void |
applyFont(WriteFont writeFont)
Sets the font of the entire string.
|
public RichTextStringData(String textString)
public void applyFont(int startIndex,
int endIndex,
WriteFont writeFont)
startIndex - The start index to apply the font to (inclusive)endIndex - The end index to apply to font to (exclusive)writeFont - The font to use.public void applyFont(WriteFont writeFont)
writeFont - The font to use.Copyright © 2018–2023 Alibaba Group. All rights reserved.