فئة TextShape

Summary: Represents a text shape.

Module: aspose.imaging.shapes

Full Name: aspose.imaging.shapes.TextShape

Inheritance: RectangleProjectedShape

Constructors

Nameالوصف
TextShape()ينشئ مثيلاً جديدًا من الفئة TextShape.
TextShape(text, rectangle, font, string_format)ينشئ مثيلاً جديدًا من الفئة TextShape.

Properties

NameTypeAccessالوصف
boundsRectangleFrيحصل على حدود الكائن.
centerPointFrيحصل على مركز الشكل.
fontFontr/wيحصل أو يعيّن الخط المستخدم لرسم النص.
has_segmentsboolrيحصل على قيمة تشير إلى ما إذا كان الشكل يحتوي على مقاطع.
left_bottomPointFrيحصل على نقطة المستطيل اليسرى السفلية.
left_topPointFrيحصل على نقطة المستطيل اليسرى العليا.
rectangle_heightfloatrيحصل على ارتفاع المستطيل.
rectangle_widthfloatrيحصل على عرض المستطيل.
right_bottomPointFrيحصل على نقطة المستطيل اليمنى السفلية.
right_topPointFrيحصل على نقطة المستطيل اليمنى العليا.
segmentsShapeSegment[]rيحصل على مقاطع الشكل.
textstringr/wيحصل أو يعيّن النص المرسوم.
text_formatStringFormatr/wيحصل أو يعيّن تنسيق النص.

Methods

Nameالوصف
get_bounds(matrix)يحصل على حدود الكائن.
get_bounds(matrix, pen)يحصل على حدود الكائن.
transform(transform)يطبق التحويل المحدد على الشكل.

Constructor: TextShape()

 TextShape() 

ينشئ مثيلاً جديدًا من الفئة TextShape.

Constructor: TextShape(text, rectangle, font, string_format)

 TextShape(text, rectangle, font, string_format) 

ينشئ مثيلاً جديدًا من الفئة TextShape.

Parameters:

معاملنوعالوصف
textstringالنص المراد رسمه.
rectangleRectangleFمستطيل النص.
fontFontالخط المراد استخدامه.
string_formatStringFormatتنسيق السلسلة.

Method: get_bounds(matrix)

 get_bounds(matrix) 

يحصل على حدود الكائن.

Parameters:

معاملنوعالوصف
matrixMatrixالمصفوفة التي سيتم تطبيقها قبل حساب الحدود.

Returns

نوعالوصف
RectangleFحدود الكائن المقدرة.

Method: get_bounds(matrix, pen)

 get_bounds(matrix, pen) 

يحصل على حدود الكائن.

Parameters:

معاملنوعالوصف
matrixMatrixالمصفوفة التي سيتم تطبيقها قبل حساب الحدود.
penPenالقلم المستخدم للكائن. يمكن أن يؤثر ذلك على حجم حدود الكائن.

Returns

نوعالوصف
RectangleFحدود الكائن المقدرة.

Method: transform(transform)

 transform(transform) 

يطبق التحويل المحدد على الشكل.

Parameters:

معاملنوعالوصف
transformMatrixالتحويل المراد تطبيقه.