Class TextShape
Numele spaţiului: Aspose.Imaging.Shapes Asamblare: Aspose.Imaging.dll (25.4.0)
reprezintă o formă textă.
[JsonObject(MemberSerialization.OptIn)]
public sealed class TextShape : RectangleProjectedShape
Inheritance
object ← ObjectWithBounds ← Shape ← RectangleProjectedShape ← TextShape
Membrii moștenitori
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()
Inițializează o nouă instanță a clasei Aspose.Imaging.Shapes.TextShape.
[JsonConstructor]
public TextShape()
TextShape(String, RectangleF, Font, StringFormat)
Inițializează o nouă instanță a clasei Aspose.Imaging.Shapes.TextShape.
public TextShape(string text, RectangleF rectangle, Font font, StringFormat stringFormat)
Parameters
text
string
Textul pe care trebuie să îl desenăm.
rectangle
RectangleF
Textul este rectangular.
font
Font
fontul de utilizat.
stringFormat
StringFormat
Formatul de string.
Properties
Bounds
Obțineți limitele obiectului.
[JsonIgnore]
public override RectangleF Bounds { get; }
Valoarea proprietății
Center
Obțineți centrul formei.
[JsonIgnore]
public override PointF Center { get; }
Valoarea proprietății
Font
Obține sau stabilește fontul utilizat pentru a trage textul.
public Font Font { get; set; }
Valoarea proprietății
HasSegments
Obține o valoare care indică dacă forma are segmente.
[JsonIgnore]
public override bool HasSegments { get; }
Valoarea proprietății
Segments
Obțineți segmentele de formă.
[JsonIgnore]
public override ShapeSegment[] Segments { get; }
Valoarea proprietății
ShapeSegment []
Text
Obține sau stabilește textul desenat.
public string Text { get; set; }
Valoarea proprietății
TextFormat
Obține sau stabilește formatul text.
public StringFormat TextFormat { get; set; }
Valoarea proprietății
Methods
Equals(Obiectul)
Verificați dacă obiectele sunt egale.
public override bool Equals(object obj)
Parameters
obj
object
celălalt obiect.
Returns
Rezultatul comparării egalităţii.
GetBounds(Matrix)
Obțineți limitele obiectului.
public override RectangleF GetBounds(Matrix matrix)
Parameters
matrix
Matrix
Matrixul care trebuie aplicat înainte de limitele vor fi calculate.
Returns
Limitele obiectului estimat.
GetBounds(Matrică, Pen)
Obțineți limitele obiectului.
public override RectangleF GetBounds(Matrix matrix, Pen pen)
Parameters
matrix
Matrix
Matrixul care trebuie aplicat înainte de limitele vor fi calculate.
pen
Pen
Penul de utilizare pentru obiect. Acest lucru poate influența dimensiunea limitelor obiectului.
Returns
Limitele obiectului estimat.
GetHashCode()
Obțineți codul hash al obiectului curent.
public override int GetHashCode()
Returns
Codul de hash.
Transform(Matrix)
Se aplică transformarea specificată formei.
public override void Transform(Matrix transform)
Parameters
transform
Matrix
transformarea care se aplică.