Class TextShape
Le nom : Aspose.Imaging.Shapes Assemblée: Aspose.Imaging.dll (25.5.0)
rappresenta una forma di testo.
[JsonObject(MemberSerialization.OptIn)]
public sealed class TextShape : RectangleProjectedShapeInheritance
object ← ObjectWithBounds ← Shape ← RectangleProjectedShape ← TextShape
I membri ereditari
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()
Initialisez une nouvelle instance de la classe Aspose.Imaging.Shapes.TextShape.
[JsonConstructor]
public TextShape()TextShape(String, RectangleF, Font, StringFormat)
Initialisez une nouvelle instance de la classe Aspose.Imaging.Shapes.TextShape.
public TextShape(string text, RectangleF rectangle, Font font, StringFormat stringFormat)Parameters
text string
Il testo da disegnare.
rectangle RectangleF
Il testo è rettangolo.
font Font
Il font da usare.
stringFormat StringFormat
Il formato string.
Properties
Bounds
Riceve i limiti dell’oggetto.
[JsonIgnore]
public override RectangleF Bounds { get; }Valore di proprietà
Center
Ottieni il centro della forma.
[JsonIgnore]
public override PointF Center { get; }Valore di proprietà
Font
Riceve o impone la font utilizzata per disegnare il testo.
public Font Font { get; set; }Valore di proprietà
HasSegments
Riceve un valore che indica se la forma ha segmenti.
[JsonIgnore]
public override bool HasSegments { get; }Valore di proprietà
Segments
Ottieni i segmenti di forma.
[JsonIgnore]
public override ShapeSegment[] Segments { get; }Valore di proprietà
ShapeSegment [ ]
Text
Riceve o mette il testo tirato.
public string Text { get; set; }Valore di proprietà
TextFormat
Riceve o impone il formato del testo.
public StringFormat TextFormat { get; set; }Valore di proprietà
Methods
Equals(Objets)
Verificare se gli oggetti sono uguali.
public override bool Equals(object obj)Parameters
obj object
L’altro oggetto
Returns
Il risultato della comparsa di uguaglianza.
GetBounds(Matrix)
Riceve i limiti dell’oggetto.
public override RectangleF GetBounds(Matrix matrix)Parameters
matrix Matrix
La matrice da applicare prima dei limiti sarà calcolata.
Returns
I limiti dell’oggetto stimato.
GetBounds(Matrix et Pen)
Riceve i limiti dell’oggetto.
public override RectangleF GetBounds(Matrix matrix, Pen pen)Parameters
matrix Matrix
La matrice da applicare prima dei limiti sarà calcolata.
pen Pen
La penna da usare per l’oggetto. Questo può influenzare la dimensione dei confini dell’oggetto.
Returns
I limiti dell’oggetto stimato.
GetHashCode()
Ottieni il codice hash dell’oggetto attuale.
public override int GetHashCode()Returns
Il codice hash.
Transform(Matrix)
Applicare la trasformazione specificata alla forma.
public override void Transform(Matrix transform)Parameters
transform Matrix
La trasformazione da applicare.