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อ่านรับค่า is standard type.
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 ใต้รายการนี้; คืนค่า handle ของมัน.
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 ขององค์ประกอบนี้.
 ภาษาไทย