Class TextShape
名称: Aspose.Imaging.Shapes 收藏: Aspose.Imaging.dll (25.4.0)
代表文本形式。
[JsonObject(MemberSerialization.OptIn)]
public sealed class TextShape : RectangleProjectedShape
Inheritance
object ← ObjectWithBounds ← Shape ← RectangleProjectedShape ← TextShape
继承人
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()
启动 Aspose.Imaging.Shapes.TextShape 类的新例子。
[JsonConstructor]
public TextShape()
TextShape(字符串,字符串,字符串,字符串)
启动 Aspose.Imaging.Shapes.TextShape 类的新例子。
public TextShape(string text, RectangleF rectangle, Font font, StringFormat stringFormat)
Parameters
text
string
要绘制的文本。
rectangle
RectangleF
文本直角。
font
Font
使用的字体。
stringFormat
StringFormat
序列格式。
Properties
Bounds
抓住对象的界限。
[JsonIgnore]
public override RectangleF Bounds { get; }
财产价值
Center
得到形状的中心。
[JsonIgnore]
public override PointF Center { get; }
财产价值
Font
接收或设置用于绘制文本的字体。
public Font Font { get; set; }
财产价值
HasSegments
收到一个值,表明形状是否有部分。
[JsonIgnore]
public override bool HasSegments { get; }
财产价值
Segments
接收形状部分。
[JsonIgnore]
public override ShapeSegment[] Segments { get; }
财产价值
ShapeSegment ( )
Text
接收或设置引导文本。
public string Text { get; set; }
财产价值
TextFormat
接收或设置文本格式。
public StringFormat TextFormat { get; set; }
财产价值
Methods
Equals(对象)
检查对象是否平等。
public override bool Equals(object obj)
Parameters
obj
object
其它对象。
Returns
平等比较结果。
GetBounds(Matrix)
抓住对象的界限。
public override RectangleF GetBounds(Matrix matrix)
Parameters
matrix
Matrix
在限制之前应用的矩阵将被计算。
Returns
估计对象的界限。
GetBounds(马特里克斯,笔)
抓住对象的界限。
public override RectangleF GetBounds(Matrix matrix, Pen pen)
Parameters
matrix
Matrix
在限制之前应用的矩阵将被计算。
pen
Pen
用于对象的铅笔,这可能会影响对象的边界大小。
Returns
估计对象的界限。
GetHashCode()
获取当前对象的哈希代码。
public override int GetHashCode()
Returns
哈希代码。
Transform(Matrix)
将所指定的转型应用到形状。
public override void Transform(Matrix transform)
Parameters
transform
Matrix
转型适用。