Class DocumentUtils

Class DocumentUtils

Namespace: Aspose.Page.XPS
Assembly: Aspose.Page.dll (25.1.2)

تقدم هذه الفئة أدوات إضافية تتجاوز واجهة برمجة التطبيقات الرسمية لمعالجة XPS.

public class DocumentUtils

الوراثة

objectDocumentUtils

الأعضاء الموروثة

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

الطرق

CreateCircle(PointF, float)

ينشئ هندسة مسار تمثل دائرة.

public XpsPathGeometry CreateCircle(PointF center, float radius)

المعلمات

center PointF

نقطة المركز للدائرة.

radius float

نصف قطر الدائرة.

الإرجاع

XpsPathGeometry

هندسة مسار XPS.

CreateCircularSegment(PointF, float, float, float)

ينشئ هندسة مسار تمثل جزء دائري بين زاويتين.

public XpsPathGeometry CreateCircularSegment(PointF center, float radius, float startAngle, float endAngle)

المعلمات

center PointF

مركز الدائرة.

radius float

نصف قطر الدائرة.

startAngle float

الزاوية الابتدائية.

endAngle float

الزاوية النهائية.

الإرجاع

XpsPathGeometry

هندسة مسار XPS.

CreateEllipse(PointF, float, float)

ينشئ هندسة مسار تمثل بيضاوي.

public XpsPathGeometry CreateEllipse(PointF center, float radiusX, float radiusY)

المعلمات

center PointF

نقطة المركز للبيضاوي.

radiusX float

نصف القطر الأفقي للبيضاوي.

radiusY float

نصف القطر العمودي للبيضاوي.

الإرجاع

XpsPathGeometry

هندسة مسار XPS.

CreateImage(string, RectangleF, ImageMode)

ينشئ مسارًا مستطيلًا مملوءًا بصورة.

public XpsPath CreateImage(string fileName, RectangleF imageBox, ImageMode mode = ImageMode.FitToBox)

المعلمات

fileName string

اسم ملف الصورة.

imageBox RectangleF

صندوق الصورة الذي سيتم ملؤه بالصورة.

mode ImageMode

وضع ملاءمة الصورة.

الإرجاع

XpsPath

مسار XPS.

CreatePieSlice(PointF, float, float, float)

ينشئ هندسة مسار تمثل شريحة دائرة بين شعاعين شعاعيين.

public XpsPathGeometry CreatePieSlice(PointF center, float radius, float startAngle, float endAngle)

المعلمات

center PointF

مركز الدائرة.

radius float

نصف قطر الدائرة.

startAngle float

زاوية الشعاع الابتدائي.

endAngle float

زاوية الشعاع النهائي.

الإرجاع

XpsPathGeometry

هندسة مسار XPS.

CreateRectangle(RectangleF)

ينشئ هندسة مسار تمثل مستطيل.

public XpsPathGeometry CreateRectangle(RectangleF rectangle)

المعلمات

rectangle RectangleF

المستطيل.

الإرجاع

XpsPathGeometry

هندسة مسار XPS.

CreateRegularCircumscribedNGon(int, PointF, float)

ينشئ هندسة مسار تمثل مضلع منتظم محاط بدائرة.

public XpsPathGeometry CreateRegularCircumscribedNGon(int n, PointF center, float radius)

المعلمات

n int

عدد الرؤوس.

center PointF

مركز الدائرة.

radius float

نصف قطر الدائرة.

الإرجاع

XpsPathGeometry

هندسة مسار XPS.

CreateRegularInscribedNGon(int, PointF, float)

ينشئ هندسة مسار تمثل مضلع منتظم محصور داخل دائرة.

public XpsPathGeometry CreateRegularInscribedNGon(int n, PointF center, float radius)

المعلمات

n int

عدد الرؤوس.

center PointF

مركز الدائرة.

radius float

نصف قطر الدائرة.

الإرجاع

XpsPathGeometry

هندسة مسار XPS.

 عربي