Class TextShape

Class TextShape

Název místa: Aspose.Imaging.Shapes Shromáždění: Aspose.Imaging.dll (25.4.0)

Představuje textovou formu.

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

Inheritance

object ObjectWithBounds Shape RectangleProjectedShape TextShape

Dědiční členové

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()

Začíná nový příklad třídy Aspose.Imaging.Shapes.TextShape.

[JsonConstructor]
public TextShape()

TextShape(String, RectangleF, Font, StringFormat)

Začíná nový příklad třídy Aspose.Imaging.Shapes.TextShape.

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

Parameters

text string

Text k natáčen.

rectangle RectangleF

Text je rektangulárn.

font Font

Zkratka k použit.

stringFormat StringFormat

Formát řetězu.

Properties

Bounds

Obsahuje hranice objektu.

[JsonIgnore]
public override RectangleF Bounds { get; }

Hodnota nemovitosti

RectangleF

Center

Dostane střed tvaru.

[JsonIgnore]
public override PointF Center { get; }

Hodnota nemovitosti

PointF

Font

Obdržíte nebo nastavte písmo používané k kreslení textu.

public Font Font { get; set; }

Hodnota nemovitosti

Font

HasSegments

Obdrží hodnotu, která naznačuje, zda tvar má segmenty.

[JsonIgnore]
public override bool HasSegments { get; }

Hodnota nemovitosti

bool

Segments

Dostane tvarové segmenty.

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

Hodnota nemovitosti

ShapeSegment []a[]

Text

Obdržíte nebo nastavte natáčený text.

public string Text { get; set; }

Hodnota nemovitosti

string

TextFormat

Obdržíte nebo nastavte textový formát.

public StringFormat TextFormat { get; set; }

Hodnota nemovitosti

StringFormat

Methods

Equals(Objekt)

Zkontrolujte, zda jsou objekty stejn.

public override bool Equals(object obj)

Parameters

obj object

Druhý objekt.

Returns

bool

Výsledkem je srovnání rovnosti.

GetBounds(Matrix)

Obsahuje hranice objektu.

public override RectangleF GetBounds(Matrix matrix)

Parameters

matrix Matrix

Matrix, který se použije před hranicemi, bude vypočítán.

Returns

RectangleF

Hranice odhadovaného objektu.

GetBounds(Matrix a Pen)

Obsahuje hranice objektu.

public override RectangleF GetBounds(Matrix matrix, Pen pen)

Parameters

matrix Matrix

Matrix, který se použije před hranicemi, bude vypočítán.

pen Pen

Pen použít pro objekt. To může ovlivnit velikost hranic objektu.

Returns

RectangleF

Hranice odhadovaného objektu.

GetHashCode()

Získejte hash kód aktuálního objektu.

public override int GetHashCode()

Returns

int

Kód pro hash.

Transform(Matrix)

Aplikuje specifikovanou transformaci na tvar.

public override void Transform(Matrix transform)

Parameters

transform Matrix

Přeměna k uplatněn.

 Čeština