Class XpsDocument

Class XpsDocument

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

فئة تحتوي على الكيان الرئيسي لوثيقة XPS التي توفر طرق التلاعب بأي عنصر XPS.

public sealed class XpsDocument : Document, IDisposable

الوراثة

objectDocumentXpsDocument

التنفيذات

IDisposable

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

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

المنشئات

XpsDocument()

ينشئ وثيقة XPS فارغة بحجم صفحة افتراضي.

public XpsDocument()

XpsDocument(string)

يفتح وثيقة XPS موجودة تقع في path.

public XpsDocument(string path)

المعلمات

path string

موقع الوثيقة.

XpsDocument(string, LoadOptions)

يفتح وثيقة موجودة تقع في path كوثيقة XPS.

public XpsDocument(string path, LoadOptions options)

المعلمات

path string

موقع الوثيقة.

options LoadOptions

خيارات تحميل الوثيقة.

XpsDocument(Stream, LoadOptions)

يحمّل وثيقة موجودة مخزنة في stream كوثيقة XPS.

public XpsDocument(Stream stream, LoadOptions options)

المعلمات

stream Stream

تدفق الوثيقة.

options LoadOptions

خيارات تحميل الوثيقة.

الخصائص

ActiveDocument

يحصل على رقم الوثيقة النشطة.

public int ActiveDocument { get; }

قيمة الخاصية

int

ActivePage

يحصل على رقم الصفحة النشطة داخل الوثيقة النشطة.

public int ActivePage { get; }

قيمة الخاصية

int

DocumentCount

يعيد عدد الوثائق داخل حزمة XPS.

public int DocumentCount { get; }

قيمة الخاصية

int

JobPrintTicket

يعيد/يحدد تذكرة طباعة الوثيقة.

public JobPrintTicket JobPrintTicket { get; set; }

قيمة الخاصية

JobPrintTicket

Page

يعيد مثيل Aspose.Page.XPS.XpsModel.XpsPage للصفحة النشطة.

public XpsPage Page { get; }

قيمة الخاصية

XpsPage

PageCount

يعيد عدد الصفحات في الوثيقة النشطة.

public int PageCount { get; }

قيمة الخاصية

int

TotalPageCount

يعيد العدد الإجمالي للصفحات في جميع الوثائق داخل وثيقة XPS.

public int TotalPageCount { get; }

قيمة الخاصية

int

Utils

يحصل على الكائن الذي يوفر أدوات إضافية بخلاف واجهة برمجة التطبيقات الرسمية للتلاعب بـ XPS.

public DocumentUtils Utils { get; }

قيمة الخاصية

DocumentUtils

الطرق

Add<t>(T)

يضيف عنصر محتوى (Canvas، Path، أو Glyphs).

public T Add<t>(T element) where T : XpsContentElement

المعلمات

element T

العنصر الذي سيتم إضافته.

العائدات

T

العنصر المضاف.

معلمات النوع

T

نوع العنصر.

AddCanvas()

يضيف لوحة جديدة إلى الصفحة النشطة.

public XpsCanvas AddCanvas()

العائدات

XpsCanvas

اللوحة المضافة.

AddDocument(bool)

يضيف وثيقة فارغة بحجم صفحة افتراضي.

public void AddDocument(bool activate = true)

المعلمات

activate bool

علامة تشير إلى ما إذا كان يجب تحديد الوثيقة المضافة كوثيقة نشطة.

AddDocument(float, float, bool)

يضيف وثيقة فارغة بأبعاد الصفحة الأولى width و height.

public void AddDocument(float width, float height, bool activate = true)

المعلمات

width float

عرض الصفحة الأولى.

height float

ارتفاع الصفحة الأولى.

activate bool

علامة تشير إلى ما إذا كان يجب تحديد الوثيقة المضافة كوثيقة نشطة.

 عربي