TextRun
अंतर्वस्तु
[
छिपाना
]Inheritance: java.lang.Object
public class TextRun
The class representing a piece of text with associated style.
Constructors
| Constructor | Description |
|---|---|
| TextRun(String text, TextStyle style) | नया उदाहरण प्रारंभ करता है TextRun क्लास का। |
| TextRun(String text) | डिफ़ॉल्ट शैली के साथ नया उदाहरण प्रारंभ करता है TextRun क्लास का। |
| TextRun(TextStyle style) | खाली पाठ के साथ नया उदाहरण प्रारंभ करता है TextRun क्लास का। |
| TextRun() | खाली पाठ और डिफ़ॉल्ट शैली के साथ नया उदाहरण प्रारंभ करता है TextRun क्लास का। |
Methods
| Method | Description |
|---|---|
| getLength() | संबंधित पाठ की लंबाई प्राप्त करता है। |
| getStyle() | शैली प्राप्त करता है। |
| getText() | Gets the text. |
| setStyle(TextStyle value) | शैली सेट करता है। |
| setText(String value) | Sets the text. |
TextRun(String text, TextStyle style)
public TextRun(String text, TextStyle style)
नया उदाहरण प्रारंभ करता है TextRun क्लास का।
Parameters:
| Parameter | Type | Description |
|---|---|---|
| पाठ | java.lang.String | संबंधित पाठ। |
| style | TextStyle | The style. |
TextRun(String text)
public TextRun(String text)
डिफ़ॉल्ट शैली के साथ नया उदाहरण प्रारंभ करता है TextRun क्लास का।
Parameters:
| Parameter | Type | Description |
|---|---|---|
| पाठ | java.lang.String | संबंधित पाठ। |
TextRun(TextStyle style)
public TextRun(TextStyle style)
खाली पाठ के साथ नया उदाहरण प्रारंभ करता है TextRun क्लास का।
Parameters:
| Parameter | Type | Description |
|---|---|---|
| style | TextStyle | The style. |
TextRun()
public TextRun()
खाली पाठ और डिफ़ॉल्ट शैली के साथ नया उदाहरण प्रारंभ करता है TextRun क्लास का।
getLength()
public final int getLength()
संबंधित पाठ की लंबाई प्राप्त करता है।
Returns: int
getStyle()
public final TextStyle getStyle()
शैली प्राप्त करता है।
Returns: TextStyle
getText()
public final String getText()
Gets the text.
Returns: java.lang.String
setStyle(TextStyle value)
public final void setStyle(TextStyle value)
शैली सेट करता है।
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | TextStyle |
setText(String value)
public final void setText(String value)
Sets the text.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |