Class TextShape
Pôvodný názov: Aspose.Imaging.Shapes Zhromaždenie: Aspose.Imaging.dll (25.4.0)
Predstavuje textovú formu.
[JsonObject(MemberSerialization.OptIn)]
public sealed class TextShape : RectangleProjectedShape
Inheritance
object ← ObjectWithBounds ← Shape ← RectangleProjectedShape ← TextShape
Z dedičných č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()
Initalizuje novú inštanciu triedy Aspose.Imaging.Shapes.TextShape.
[JsonConstructor]
public TextShape()
TextShape(String, RectangleF, Font, StringFormat)
Initalizuje novú inštanciu triedy Aspose.Imaging.Shapes.TextShape.
public TextShape(string text, RectangleF rectangle, Font font, StringFormat stringFormat)
Parameters
text
string
Text na vytiahnutie.
rectangle
RectangleF
Text je rektangulárny.
font
Font
písmo na použitie.
stringFormat
StringFormat
Formát striekačky .
Properties
Bounds
Získava hranice objektu.
[JsonIgnore]
public override RectangleF Bounds { get; }
Hodnota nehnuteľnosti
Center
Dostane stred tvaru.
[JsonIgnore]
public override PointF Center { get; }
Hodnota nehnuteľnosti
Font
Získajte alebo nastavíte písmo používané na vytlačenie textu.
public Font Font { get; set; }
Hodnota nehnuteľnosti
HasSegments
Získava hodnotu, ktorá ukazuje, či tvar má segmenty.
[JsonIgnore]
public override bool HasSegments { get; }
Hodnota nehnuteľnosti
Segments
Dostáva tvarové segmenty.
[JsonIgnore]
public override ShapeSegment[] Segments { get; }
Hodnota nehnuteľnosti
ShapeSegment []
Text
Získajte alebo nastavíte vytiahnutý text.
public string Text { get; set; }
Hodnota nehnuteľnosti
TextFormat
Dostane alebo nastaví textový formát.
public StringFormat TextFormat { get; set; }
Hodnota nehnuteľnosti
Methods
Equals(objekty)
Skontrolujte, či sú objekty rovnaké.
public override bool Equals(object obj)
Parameters
obj
object
Druhý objekt
Returns
Výsledkom je porovnanie rovnosti.
GetBounds(Matrix)
Získava hranice objektu.
public override RectangleF GetBounds(Matrix matrix)
Parameters
matrix
Matrix
Matrix, ktorý sa má použiť pred hranicami, sa vypočíta.
Returns
Hranice odhadovaného objektu.
GetBounds(Matrix a Pen)
Získava hranice objektu.
public override RectangleF GetBounds(Matrix matrix, Pen pen)
Parameters
matrix
Matrix
Matrix, ktorý sa má použiť pred hranicami, sa vypočíta.
pen
Pen
Pen na použitie pre objekt. To môže ovplyvniť veľkosť hraníc objektu.
Returns
Hranice odhadovaného objektu.
GetHashCode()
Získajte hash kód aktuálneho objektu.
public override int GetHashCode()
Returns
Kód na hash.
Transform(Matrix)
Aplikuje špecifikovanú transformáciu na tvar.
public override void Transform(Matrix transform)
Parameters
transform
Matrix
Premeny na uplatnenie.