Class TextShape

Class TextShape

Nazwa przestrzeń: Aspose.Imaging.Shapes Zgromadzenie: Aspose.Imaging.dll (25.4.0)

Przedstawia formę tekstu.

[JsonObject(MemberSerialization.OptIn)]
public sealed class TextShape : RectangleProjectedShape

Inheritance

object ObjectWithBounds Shape RectangleProjectedShape TextShape

Dziedziczeni członkowie

RectangleProjectedShape.GetBounds(Matrix) , RectangleProjectedShape.GetBounds(Matrix, Pen) , RectangleProjectedShape.Transform(Matrix) , RectangleProjectedShape.Equals(object) , RectangleProjectedShape.GetHashCode() , RectangleProjectedShape.LeftTop , RectangleProjectedShape.RightTop , RectangleProjectedShape.LeftBottom , RectangleProjectedShape.RightBottom , RectangleProjectedShape.Center , RectangleProjectedShape.Bounds , RectangleProjectedShape.RectangleWidth , RectangleProjectedShape.RectangleHeight , RectangleProjectedShape.HasSegments , Shape.Equals(object) , Shape.GetHashCode() , Shape.Center , Shape.Segments , Shape.HasSegments , ObjectWithBounds.GetBounds(Matrix) , ObjectWithBounds.GetBounds(Matrix, Pen) , ObjectWithBounds.Transform(Matrix) , ObjectWithBounds.Equals(object) , ObjectWithBounds.GetHashCode() , ObjectWithBounds.Bounds , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

TextShape()

Inicjalizuje nową instancję klasy Aspose.Imaging.Shapes.TextShape.

[JsonConstructor]
public TextShape()

TextShape(String, RectangleF, Font, StringFormat)

Inicjalizuje nową instancję klasy Aspose.Imaging.Shapes.TextShape.

public TextShape(string text, RectangleF rectangle, Font font, StringFormat stringFormat)

Parameters

text string

Tekst do wyciągnięcia.

rectangle RectangleF

Tekst jest rektangularny.

font Font

Wykorzystanie fontów do użycia.

stringFormat StringFormat

Format strunowy .

Properties

Bounds

Znajdują się granice obiektu.

[JsonIgnore]
public override RectangleF Bounds { get; }

Wartość nieruchomości

RectangleF

Center

Znajduje się w centrum kształtu.

[JsonIgnore]
public override PointF Center { get; }

Wartość nieruchomości

PointF

Font

Uzyskuje lub ustawia hasło używane do wyciągania tekstu.

public Font Font { get; set; }

Wartość nieruchomości

Font

HasSegments

Otrzymuje wartość wskazującą, czy kształt ma segmenty.

[JsonIgnore]
public override bool HasSegments { get; }

Wartość nieruchomości

bool

Segments

Dostęp do segmentów kształtu.

[JsonIgnore]
public override ShapeSegment[] Segments { get; }

Wartość nieruchomości

ShapeSegment [ ]

Text

Dostarcza lub ustawia wyciągnięty tekst.

public string Text { get; set; }

Wartość nieruchomości

string

TextFormat

otrzymuje lub ustawia format tekstu.

public StringFormat TextFormat { get; set; }

Wartość nieruchomości

StringFormat

Methods

Equals(Obiekt)

Sprawdź, czy obiekty są równe.

public override bool Equals(object obj)

Parameters

obj object

Kolejny obiekt.

Returns

bool

Wynik porównania równości.

GetBounds(Matrix)

Znajdują się granice obiektu.

public override RectangleF GetBounds(Matrix matrix)

Parameters

matrix Matrix

Matryca, którą należy zastosować przed granicami, zostanie obliczona.

Returns

RectangleF

granice szacowanego obiektu.

GetBounds(Matryca i Pen)

Znajdują się granice obiektu.

public override RectangleF GetBounds(Matrix matrix, Pen pen)

Parameters

matrix Matrix

Matryca, którą należy zastosować przed granicami, zostanie obliczona.

pen Pen

Pióro do użycia dla obiektu. może to wpłynąć na wielkość granic obiektu.

Returns

RectangleF

granice szacowanego obiektu.

GetHashCode()

Zdobądź kod hash bieżącego obiektu.

public override int GetHashCode()

Returns

int

To jest kod hash.

Transform(Matrix)

Zastosowanie określonej transformacji do kształtu.

public override void Transform(Matrix transform)

Parameters

transform Matrix

Transformacja do zastosowania.

 Polski