TextRun

अंतर्वस्तु
[ ]

Inheritance: java.lang.Object

public class TextRun

The class representing a piece of text with associated style.

Constructors

ConstructorDescription
TextRun(String text, TextStyle style)नया उदाहरण प्रारंभ करता है TextRun क्लास का।
TextRun(String text)डिफ़ॉल्ट शैली के साथ नया उदाहरण प्रारंभ करता है TextRun क्लास का।
TextRun(TextStyle style)खाली पाठ के साथ नया उदाहरण प्रारंभ करता है TextRun क्लास का।
TextRun()खाली पाठ और डिफ़ॉल्ट शैली के साथ नया उदाहरण प्रारंभ करता है TextRun क्लास का।

Methods

MethodDescription
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:

ParameterTypeDescription
पाठjava.lang.Stringसंबंधित पाठ।
styleTextStyleThe style.

TextRun(String text)

public TextRun(String text)

डिफ़ॉल्ट शैली के साथ नया उदाहरण प्रारंभ करता है TextRun क्लास का।

Parameters:

ParameterTypeDescription
पाठjava.lang.Stringसंबंधित पाठ।

TextRun(TextStyle style)

public TextRun(TextStyle style)

खाली पाठ के साथ नया उदाहरण प्रारंभ करता है TextRun क्लास का।

Parameters:

ParameterTypeDescription
styleTextStyleThe 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:

ParameterTypeDescription
valueTextStyle

setText(String value)

public final void setText(String value)

Sets the text.

Parameters:

ParameterTypeDescription
valuejava.lang.String