Class TextShape

Class TextShape

Il nome: Aspose.Imaging.Shapes Assemblea: Aspose.Imaging.dll (25.4.0)

rappresenta una forma di testo.

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

Inheritance

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

Inizia una nuova instanza della classe Aspose.Imaging.Shapes.TextShape.

[JsonConstructor]
public TextShape()

TextShape(String, RectangleF, Font, StringFormat)

Inizia una nuova instanza della 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à

RectangleF

Center

Ottieni il centro della forma.

[JsonIgnore]
public override PointF Center { get; }

Valore di proprietà

PointF

Font

Riceve o impone la font utilizzata per disegnare il testo.

public Font Font { get; set; }

Valore di proprietà

Font

HasSegments

Riceve un valore che indica se la forma ha segmenti.

[JsonIgnore]
public override bool HasSegments { get; }

Valore di proprietà

bool

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à

string

TextFormat

Riceve o impone il formato del testo.

public StringFormat TextFormat { get; set; }

Valore di proprietà

StringFormat

Methods

Equals(oggetto)

Verificare se gli oggetti sono uguali.

public override bool Equals(object obj)

Parameters

obj object

L’altro oggetto

Returns

bool

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

RectangleF

I limiti dell’oggetto stimato.

GetBounds(Matrix e 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

RectangleF

I limiti dell’oggetto stimato.

GetHashCode()

Ottieni il codice hash dell’oggetto attuale.

public override int GetHashCode()

Returns

int

Il codice hash.

Transform(Matrix)

Applicare la trasformazione specificata alla forma.

public override void Transform(Matrix transform)

Parameters

transform Matrix

La trasformazione da applicare.

 Italiano