StructElement

StructElement

نظرة عامة

StructElement هي فئة في Aspose.PDF FOSS لـ TypeScript.

عقدة في شجرة البنية: مقبض حي على القاموس الحقيقي /StructElem.

هذه الفئة تعلن عن 10 دوال لكائنات StructElement في برامج TypeScript. تشمل الطرق المتاحة: AddAnnotation, Append, GetBBox, GetText, MarkContent, NextMcid, SetLayoutAttributes, SetListAttributes, SetTableAttributes, constructor. جميع الأعضاء العامة متاحة لأي تطبيق TypeScript بعد تثبيت حزمة Aspose.PDF FOSS لـ TypeScript. الخصائص: A, ActualText, Alt, Attributes, C, Children, و 17 أخرى.

خصائص

اسمالنوعالوصولوصف
Typestringقراءةيحصل على النوع.
StandardTypestringقراءةيحصل على النوع القياسي.
IsStandardTypebooleanقراءةيحصل على ما إذا كان النوع قياسيًا.
Parent`StructElementundefined`قراءة
ChildrenStructElement[]قراءةيحصل على العناصر الفرعية.
Title`stringundefined`قراءة/كتابة
Alt`stringundefined`قراءة/كتابة
ActualText`stringundefined`قراءة/كتابة
Expansion`stringundefined`قراءة/كتابة
ID`stringundefined`قراءة/كتابة
Lang`stringundefined`قراءة/كتابة
EffectiveLang`stringundefined`قراءة
Page`Pageundefined`قراءة
Attributes{ A: PdfObject[]; C: PdfObject[] }قراءةيحصل على السمات.
A: PdfObject[]قراءةيحصل على الـ a.
C: PdfObject[]قراءةيحصل على الـ c.
ContentItemsContentItem[]قراءةيحصل على عناصر المحتوى.
NodesStructNode[]قراءةيحصل على العقد.
g: GlyphEventقراءةيحصل على g.
at: numberقراءةيحصل على at.
TableAttributes`TableAttributesundefined`قراءة
ListAttributes`ListAttributesundefined`قراءة
LayoutAttributes`LayoutAttributesundefined`قراءة

الطرق

التوقيعوصف
`constructor(doc: Document, Dict: PdfDict, Ref: PdfRefundefined, Root: StructTreeRoot)`
GetText(skip: (e: StructElement) => boolean) → stringنص هذا العنصر والنصوص التابعة له، بترتيب /K (القراءة).
GetBBox(page: Page) → `[number, number, number, number]undefined`
Append(type: string, opts: ElemOpts) → StructElementإنشاء عنصر بنية فرعي من type تحت هذا العنصر؛ يُعيد مقبضه.
NextMcid(page: Page) → numberتخصيص معرف MCID التالي لـ page مقابل هذا العنصر وربط /ParentTree + /K.
MarkContent(page: Page, region: Rect) → numberوضع علامة على محتوى الصفحة الموجود تحت هذا العنصر: تخصيص MCID وتغليف عمليات show/Do على المستوى العلوي التي يقع محتواها في region داخل /<Type> <</MCID n>> BDC … EMC.
AddAnnotation(annotation: Annotation)وسم توضيح (مثالاً.
SetTableAttributes(attrs: Partial<TableAttributes>)دمج سمات الجدول في /A لهذا العنصر (حقل يُعيّن إلى undefined يحذف ذلك المفتاح).
SetListAttributes(attrs: Partial<ListAttributes>)ادمج سمات القائمة في /A الخاص بهذا العنصر.
SetLayoutAttributes(attrs: Partial<LayoutAttributes>)ادمج سمات التخطيط في /A الخاص بهذا العنصر.
 العربية