Class TextShape

Class TextShape

Nome do espaço: Aspose.Imaging.Shapes Assembleia: Aspose.Imaging.dll (25.4.0)

Representa uma forma de texto.

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

Inheritance

object ObjectWithBounds Shape RectangleProjectedShape TextShape

Membros herdados

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

Inicia uma nova instância da classe Aspose.Imaging.Shapes.TextShape.

[JsonConstructor]
public TextShape()

TextShape(RectangleF, RectangleF, Font, StringFormat)

Inicia uma nova instância da classe Aspose.Imaging.Shapes.TextShape.

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

Parameters

text string

O texto para desenhar.

rectangle RectangleF

O texto é rectangular.

font Font

Fontes para usar.

stringFormat StringFormat

O formato de string.

Properties

Bounds

Conheça os limites do objeto.

[JsonIgnore]
public override RectangleF Bounds { get; }

Valor da propriedade

RectangleF

Center

É o centro da forma.

[JsonIgnore]
public override PointF Center { get; }

Valor da propriedade

PointF

Font

Recebe ou coloca a letra usada para desenhar o texto.

public Font Font { get; set; }

Valor da propriedade

Font

HasSegments

Recebe um valor indicando se a forma tem segmentos.

[JsonIgnore]
public override bool HasSegments { get; }

Valor da propriedade

bool

Segments

Obtenha os segmentos de forma.

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

Valor da propriedade

ShapeSegment [ ]

Text

Receba ou coloca o texto desenhado.

public string Text { get; set; }

Valor da propriedade

string

TextFormat

Obter ou definir o formato de texto.

public StringFormat TextFormat { get; set; }

Valor da propriedade

StringFormat

Methods

Equals(Objeto)

Verifique se os objetos são iguais.

public override bool Equals(object obj)

Parameters

obj object

O outro objeto.

Returns

bool

O resultado da comparação da igualdade.

GetBounds(Matrix)

Conheça os limites do objeto.

public override RectangleF GetBounds(Matrix matrix)

Parameters

matrix Matrix

A matriz a aplicar antes dos limites será calculada.

Returns

RectangleF

Os limites do objeto estimado.

GetBounds(Matriz e Pen)

Conheça os limites do objeto.

public override RectangleF GetBounds(Matrix matrix, Pen pen)

Parameters

matrix Matrix

A matriz a aplicar antes dos limites será calculada.

pen Pen

A caneta para usar para o objeto. isto pode influenciar o tamanho dos limites do objeto.

Returns

RectangleF

Os limites do objeto estimado.

GetHashCode()

Obtenha o código hash do objeto atual.

public override int GetHashCode()

Returns

int

O código de hash.

Transform(Matrix)

Aplique a transformação especificada à forma.

public override void Transform(Matrix transform)

Parameters

transform Matrix

A transformação a ser aplicada.

 Português