Class DocDevice

Class DocDevice

اسم الفضاء : Aspose.Html.Rendering.Doc مجموعة: Aspose.HTML.dll (25.4.0)

تمثيل التقديم إلى وثيقة DOCX.

[ComVisible(true)]
public class DocDevice : Device<docdevice.docgraphiccontext, docrenderingoptions="">, IDevice, IDisposable

Inheritance

object Device Device<docdevice.docgraphiccontext, docrenderingoptions=""> DocDevice

Implements

IDevice , IDisposable

الأعضاء الموروثين

Device<docdevice.docgraphiccontext, docrenderingoptions="">.Initialize() , Device<docdevice.docgraphiccontext, docrenderingoptions="">.SaveGraphicContext() , Device<docdevice.docgraphiccontext, docrenderingoptions="">.RestoreGraphicContext() , Device<docdevice.docgraphiccontext, docrenderingoptions="">.GetExtension() , Device<docdevice.docgraphiccontext, docrenderingoptions="">.BeginDocument(Document) , Device<docdevice.docgraphiccontext, docrenderingoptions="">.EndDocument() , Device<docdevice.docgraphiccontext, docrenderingoptions="">.BeginPage(SizeF) , Device<docdevice.docgraphiccontext, docrenderingoptions="">.EndPage() , Device<docdevice.docgraphiccontext, docrenderingoptions="">.Flush() , Device<docdevice.docgraphiccontext, docrenderingoptions="">.BeginElement(Element, RectangleF) , Device<docdevice.docgraphiccontext, docrenderingoptions="">.EndElement(Element) , Device<docdevice.docgraphiccontext, docrenderingoptions="">.ClosePath() , Device<docdevice.docgraphiccontext, docrenderingoptions="">.MoveTo(PointF) , Device<docdevice.docgraphiccontext, docrenderingoptions="">.LineTo(PointF) , Device<docdevice.docgraphiccontext, docrenderingoptions="">.AddRect(RectangleF) , Device<docdevice.docgraphiccontext, docrenderingoptions="">.CubicBezierTo(PointF, PointF, PointF) , Device<docdevice.docgraphiccontext, docrenderingoptions="">.Stroke() , Device<docdevice.docgraphiccontext, docrenderingoptions="">.Fill(FillRule) , Device<docdevice.docgraphiccontext, docrenderingoptions="">.Clip(FillRule) , Device<docdevice.docgraphiccontext, docrenderingoptions="">.StrokeAndFill(FillRule) , Device<docdevice.docgraphiccontext, docrenderingoptions="">.FillText(string, PointF) , Device<docdevice.docgraphiccontext, docrenderingoptions="">.StrokeText(string, PointF) , Device<docdevice.docgraphiccontext, docrenderingoptions="">.DrawImage(byte[], WebImageFormat, RectangleF) , Device<docdevice.docgraphiccontext, docrenderingoptions="">.Dispose() , Device<docdevice.docgraphiccontext, docrenderingoptions="">.Dispose(bool) , Device<docdevice.docgraphiccontext, docrenderingoptions="">.Options , Device<docdevice.docgraphiccontext, docrenderingoptions="">.Configuration , Device<docdevice.docgraphiccontext, docrenderingoptions="">.GraphicContext , Device<docdevice.docgraphiccontext, docrenderingoptions="">.StreamProvider , Device<docdevice.docgraphiccontext, docrenderingoptions="">.OutputStream , Device<docdevice.docgraphiccontext, docrenderingoptions="">.PageIndex , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

DocDevice(ICreateStreamالمورد)

يبدأ حالة جديدة من فئة Aspose.Html.Rendering.Doc.DocDevice.

public DocDevice(ICreateStreamProvider streamProvider)

Parameters

streamProvider ICreateStreamProvider

الكائن الذي يقوم بتنفيذ واجهة Aspose.Html.IO.ICreateStreamProvider

DocDevice(DocRenderingOptions، ICreateStreamProvider)

يبدأ مثالًا جديدًا من فئة Aspose.Html.Rendering.Doc.DocDevice من خلال تقديم الخيارات ومزود البث.

public DocDevice(DocRenderingOptions options, ICreateStreamProvider streamProvider)

Parameters

options DocRenderingOptions

الخيارات العشوائية .

streamProvider ICreateStreamProvider

الكائن الذي يقوم بتنفيذ واجهة Aspose.Html.IO.ICreateStreamProvider

DocDevice(الستار)

يبدأ مثالًا جديدًا من فئة Aspose.Html.Rendering.Doc.DocDevice حسب اسم الملف الناتج.

public DocDevice(string file)

Parameters

file string

اسم ملف الإخراج

DocDevice(DocRenderingOptions، شريط)

يبدأ مثالًا جديدًا من فئة Aspose.Html.Rendering.Doc.DocDevice من خلال عرض الخيارات واسم الملف الناتج.

public DocDevice(DocRenderingOptions options, string file)

Parameters

options DocRenderingOptions

الخيارات العشوائية .

file string

اسم ملف الإخراج

DocDevice(Stream)

يبدأ مثالًا جديدًا من فئة Aspose.Html.Rendering.Doc.DocDevice حسب تدفق الإنتاج.

public DocDevice(Stream stream)

Parameters

stream Stream

تدفق الإنتاج

DocDevice(أرشيف الوسم : Stream)

يبدأ مثالًا جديدًا من فئة Aspose.Html.Rendering.Doc.DocDevice من خلال عرض الخيارات وتدفق الناتج.

public DocDevice(DocRenderingOptions options, Stream stream)

Parameters

options DocRenderingOptions

الخيارات العشوائية .

stream Stream

تدفق الإنتاج

Methods

AddRect(RectangleF)

يرفع مستطيلًا إلى المسار الحالي كطريق أسفل كامل.

public override void AddRect(RectangleF rect)

Parameters

rect RectangleF

قوس قزح للطباعة

BeginDocument(Document)

يبدأ تسليم الوثيقة.

public override void BeginDocument(Document document)

Parameters

document Document

الوثيقة .

BeginElement(العنصر، RectangleF)

يبدأ إعادة تدوير عقد HTML.

public override bool BeginElement(Element element, RectangleF rect)

Parameters

element Element

عنصر html .

rect RectangleF

مربع الحدود من العقد.

Returns

bool

يعود [الحقيقي] إذا كان العنصر يجب أن يتم معالجته.

BeginPage(SizeF)

يبدأ إعادة تدوير الصفحة الجديدة

public override void BeginPage(SizeF size)

Parameters

size SizeF

حجم الصفحة .

Clip(FillRule)

يغير مسار الانحناء الحالي عن طريق تقاطعه مع المسار الحالي ، باستخدام قاعدة FillMode لتحديد المنطقة التي يجب ملؤها.هذه الطريقة تنهي المسار الحالي.

public override void Clip(FillRule mode)

Parameters

mode FillRule

وضع التعبئة يحدد كيفية تصفية داخل مسار مغلق

ClosePath()

يغلق الطريق السفلي الحالي عن طريق إرفاق قطاع خط مستقيم من النقطة الحالية إلى نقطة البداية للطريق السفلي.إذا تم إغلاق الطريق السفلي الحالي بالفعل ، فإن “ClosePath” لا يفعل شيئًا.هذا المشغل ينهي الطريق السفلي الحالي.إضافة قطاع آخر إلى الطريق الحالي يبدأ الطريق السفلي الجديد،حتى إذا بدأ القسم الجديد في النقطة النهائية التي تم الوصول إليها باستخدام طريقة “ClosePath”.

public override void ClosePath()

CubicBezierTo(نقطة، نقطة، نقطة)

يرفع منحنى بيزير الكوبي إلى المسار الحالي.تمتد منحنى من النقطة الحالية إلى نقطة pt2 ،باستخدام pt1 و pt2 كنقاط التحكم Bézier.النقطة الحالية الجديدة هي pt3.

public override void CubicBezierTo(PointF pt1, PointF pt2, PointF pt3)

Parameters

pt1 PointF

تنسيقات النقطة الأولى

pt2 PointF

تنسيقات النقطة الثانية

pt3 PointF

تنسيقات النقطة الثالثة

DrawImage(بيوت[ ], WebImageFormat , RectangleF)

أضف الصورة المحددة.

public override void DrawImage(byte[] data, WebImageFormat imageFormat, RectangleF rect)

Parameters

data byte [ ]

مجموعة من البايتات التي تمثل الصورة.

imageFormat WebImageFormat

تنسيق الصورة

rect RectangleF

قوس قزح يحدد الموقف والحجم للطباعة.

EndElement(Element)

تنتهي إعادة تدوير العقد HTML.

public override void EndElement(Element element)

Parameters

element Element

عنصر html .

EndPage()

انتهاء إعادة تدوير الصفحة الحالية.

public override void EndPage()

Fill(FillRule)

يملأ المنطقة بأكملها مغلقة بالطريق الحالي.إذا كان المسار يتكون من عدة مسارات منفصلة ، فإنه يملأ داخل جميع المسارات ،اعتبرت معا.هذه الطريقة تنهي المسار الحالي.

public override void Fill(FillRule mode)

Parameters

mode FillRule

وضع ملء يحدد كيفية ملء داخل مسار مغلق

FillText(نقطة، نقطة)

ملء شريط النص المحدد في الموقع المحدد.

public override void FillText(string text, PointF pt)

Parameters

text string

الشريط لملء

pt PointF

نقطة تحدد إحداثيات النص.

Flush()

تنزيل جميع البيانات إلى تدفق الإنتاج.

public override void Flush()

GetExtension()

يحصل على تمديد ملف الإخراج.

protected override string GetExtension()

Returns

string

ملف التمديد .

Initialize()

أولاً: إدخال ستاك السياق.

protected override void Initialize()

LineTo(نقطة)

يرفع قطعة خط مستقيم من النقطة الحالية إلى النقطة (pt).

public override void LineTo(PointF pt)

Parameters

pt PointF

نقطة حيث لإنشاء الخط إلى.

MoveTo(نقطة)

يبدأ الطريق السفلي الجديد عن طريق تحريك النقطة الحالية إلى إحداثيات المعلم pt، وتجاهل أي قطاع خط الاتصال.إذا كانت الطريقة السابقة لبناء المسار في المسار الحالي “تحرك” أيضًا ، فإن “تحرك” الجديد يتجاوزها ؛لا يبقى أي بقايا من العملية السابقة “MoveTo” في الطريق.

public override void MoveTo(PointF pt)

Parameters

pt PointF

نقطة إلى أين تتحرك الطريق.

Stroke()

يضرب خطًا على طول المسار الحالي.تتبع الخط المضطرب كل قطعة مستقيمة أو منحنية في المسار ،تركز على القسم مع الجانبين جنبا إلى جنب مع ذلك.يتم التعامل مع كل من الطرق السفلى بشكل منفصل.هذه الطريقة تنهي المسار الحالي.

public override void Stroke()

StrokeAndFill(FillRule)

أضرب وتملأ المسار الحالي.هذه الطريقة تنهي المسار الحالي.

public override void StrokeAndFill(FillRule mode)

Parameters

mode FillRule

وضع ملء يحدد كيفية ملء داخل مسار مغلق.

StrokeText(نقطة، نقطة)

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

public override void StrokeText(string text, PointF pt)

Parameters

text string

تصل إلى الإصابة.

pt PointF

النقطة التي تحدد الإحداثيات حيث تبدأ النص.</docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,></docdevice.docgraphiccontext,>

 عربي