Class TextRun

Class TextRun

Nazwa przestrzeń: Aspose.Note Zgromadzenie: Aspose.Note.dll (25.4.0)

Klasa reprezentuje kawałek tekstu z powiązanym stylem.

public class TextRun

Inheritance

object TextRun

Dziedziczeni członkowie

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

TextRun(String, styl tekstowy)

Zaczyna się nowa instancja klasy Aspose.Note.TextRun.

public TextRun(string text, TextStyle style)

Parameters

text string

związanego z tekstem.

style TextStyle

w stylu .

TextRun(strumień)

Inicjalizuje nową instancję klasy Aspose.Note.TextRun ze standardowym stylem.

public TextRun(string text)

Parameters

text string

związanego z tekstem.

TextRun(TextStyle)

Inicjalizuje nową instancję klasy Aspose.Note.TextRun z pustym tekstem.

public TextRun(TextStyle style)

Parameters

style TextStyle

w stylu .

TextRun()

Inicjalizuje nową instancję klasy Aspose.Note.TextRun z pustym tekstem i standardowym stylem.

public TextRun()

Properties

Length

Otrzymuje długość powiązanego tekstu.

public int Length { get; }

Wartość nieruchomości

int

Style

Zostaw lub ustaw styl.

public TextStyle Style { get; set; }

Wartość nieruchomości

TextStyle

Text

Dostęp lub ustawienie tekstu.

public string Text { get; set; }

Wartość nieruchomości

string

 Polski