Class TextShape

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(string, RectangleF, Font, StringFormat)

เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.Shapes.TextShape

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

Parameters

text string

ข้อความที่จะดึง

rectangle RectangleF

หมายเลขที่ตรง

font Font

หมายเลขที่ต้องใช้

stringFormat StringFormat

รูปแบบ string

Properties

Bounds

ได้รับข้อ จํากัด ของวัตถุ

[JsonIgnore]
public override RectangleF Bounds { get; }

คุณสมบัติมูลค่า

RectangleF

Center

ได้รับศูนย์ของรูปทรง

[JsonIgnore]
public override PointF Center { get; }

คุณสมบัติมูลค่า

PointF

Font

รับหรือตั้งค่าอักษรที่ใช้ในการวาดข้อความ

public Font Font { get; set; }

คุณสมบัติมูลค่า

Font

HasSegments

ได้รับค่าที่แสดงให้เห็นว่ารูปร่างมีส่วน

[JsonIgnore]
public override bool HasSegments { get; }

คุณสมบัติมูลค่า

bool

Segments

ได้รับรูปร่างส่วน

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

คุณสมบัติมูลค่า

ShapeSegment [ ]

Text

รับหรือตั้งค่าข้อความที่ดึง

public string Text { get; set; }

คุณสมบัติมูลค่า

string

TextFormat

รับหรือตั้งค่ารูปแบบข้อความ

public StringFormat TextFormat { get; set; }

คุณสมบัติมูลค่า

StringFormat

Methods

Equals(วัตถุ)

ตรวจสอบว่าวัตถุนั้นเท่าเทียมกันหรือไม่

public override bool Equals(object obj)

Parameters

obj object

วัตถุอื่น ๆ

Returns

bool

ผลการเปรียบเทียบเท่าเทียม

GetBounds(Matrix)

ได้รับข้อ จํากัด ของวัตถุ

public override RectangleF GetBounds(Matrix matrix)

Parameters

matrix Matrix

Matrix ที่จะใช้ก่อน จํากัด จะถูกคํานวณ

Returns

RectangleF

ข้อ จํากัด ของวัตถุที่คาดการณ์

GetBounds(ก้น, ก้น)

ได้รับข้อ จํากัด ของวัตถุ

public override RectangleF GetBounds(Matrix matrix, Pen pen)

Parameters

matrix Matrix

Matrix ที่จะใช้ก่อน จํากัด จะถูกคํานวณ

pen Pen

ป้ายที่จะใช้สําหรับวัตถุ สิ่งนี้สามารถส่งผลกระทบต่อขนาดข้อ จํากัด ของวัตถุ

Returns

RectangleF

ข้อ จํากัด ของวัตถุที่คาดการณ์

GetHashCode()

รับรหัส hash ของวัตถุปัจจุบัน

public override int GetHashCode()

Returns

int

รหัส hash

Transform(Matrix)

ใช้การเปลี่ยนแปลงที่ระบุกับรูปร่าง

public override void Transform(Matrix transform)

Parameters

transform Matrix

การเปลี่ยนแปลงที่จะใช้

 แบบไทย