Class TextShape
Nombre del espacio: Aspose.Imaging.Shapes Asamblea: Aspose.Imaging.dll (25.4.0)
Representa una forma de texto.
[JsonObject(MemberSerialization.OptIn)]
public sealed class TextShape : RectangleProjectedShape
Inheritance
object ← ObjectWithBounds ← Shape ← RectangleProjectedShape ← TextShape
Miembros heredados
RectangleProjectedShape.GetBounds(Matrix) ,y, RectangleProjectedShape.GetBounds(Matrix, Pen) ,y, RectangleProjectedShape.Transform(Matrix) ,y, RectangleProjectedShape.Equals(object) ,y, RectangleProjectedShape.GetHashCode() ,y, RectangleProjectedShape.LeftTop ,y, RectangleProjectedShape.RightTop ,y, RectangleProjectedShape.LeftBottom ,y, RectangleProjectedShape.RightBottom ,y, RectangleProjectedShape.Center ,y, RectangleProjectedShape.Bounds ,y, RectangleProjectedShape.RectangleWidth ,y, RectangleProjectedShape.RectangleHeight ,y, RectangleProjectedShape.HasSegments ,y, Shape.Equals(object) ,y, Shape.GetHashCode() ,y, Shape.Center ,y, Shape.Segments ,y, Shape.HasSegments ,y, ObjectWithBounds.GetBounds(Matrix) ,y, ObjectWithBounds.GetBounds(Matrix, Pen) ,y, ObjectWithBounds.Transform(Matrix) ,y, ObjectWithBounds.Equals(object) ,y, ObjectWithBounds.GetHashCode() ,y, ObjectWithBounds.Bounds ,y, object.GetType() ,y, object.ToString() ,y, object.Equals(object?) ,y, object.Equals(object?, object?) ,y, object.ReferenceEquals(object?, object?) ,y, object.GetHashCode()
Constructors
TextShape()
Inicia una nueva instancia de la clase Aspose.Imaging.Shapes.TextShape.
[JsonConstructor]
public TextShape()
TextShape(RectangleF, RectangleF, Font, StringFormat)
Inicia una nueva instancia de la clase Aspose.Imaging.Shapes.TextShape.
public TextShape(string text, RectangleF rectangle, Font font, StringFormat stringFormat)
Parameters
text
string
El texto para dibujar.
rectangle
RectangleF
El texto es rectángulo.
font
Font
La letra para usar.
stringFormat
StringFormat
El formato de string.
Properties
Bounds
Tiene los límites del objeto.
[JsonIgnore]
public override RectangleF Bounds { get; }
Valor de la propiedad
Center
Tiene el centro de la forma.
[JsonIgnore]
public override PointF Center { get; }
Valor de la propiedad
Font
Obtenga o coloca la letra usada para dibujar el texto.
public Font Font { get; set; }
Valor de la propiedad
HasSegments
Recibe un valor que indica si la forma tiene segmentos.
[JsonIgnore]
public override bool HasSegments { get; }
Valor de la propiedad
Segments
Obtenga los segmentos de forma.
[JsonIgnore]
public override ShapeSegment[] Segments { get; }
Valor de la propiedad
ShapeSegment [][]
Text
Obtenga o coloca el texto grabado.
public string Text { get; set; }
Valor de la propiedad
TextFormat
Obtenga o establece el formato de texto.
public StringFormat TextFormat { get; set; }
Valor de la propiedad
Methods
Equals(Objeto)
Verifique si los objetos son iguales.
public override bool Equals(object obj)
Parameters
obj
object
El otro objeto.
Returns
El resultado de la igualdad.
GetBounds(Matrix)
Tiene los límites del objeto.
public override RectangleF GetBounds(Matrix matrix)
Parameters
matrix
Matrix
La matrícula a aplicar antes de los límites se calcular.
Returns
Los límites del objeto estimado.
GetBounds(Matrix y Pen)
Tiene los límites del objeto.
public override RectangleF GetBounds(Matrix matrix, Pen pen)
Parameters
matrix
Matrix
La matrícula a aplicar antes de los límites se calcular.
pen
Pen
La pena para usar para el objeto. Esto puede influir en el tamaño de los límites del objeto.
Returns
Los límites del objeto estimado.
GetHashCode()
Obtenga el código hash del objeto actual.
public override int GetHashCode()
Returns
El código hash.
Transform(Matrix)
Aplicar la transformación especificada a la forma.
public override void Transform(Matrix transform)
Parameters
transform
Matrix
La transformación a aplicar.