RowBlock
ภาพรวม
RowBlock เป็นคลาสใน Aspose.Words FOSS สำหรับ Python. สืบทอดจาก: Block.
คลาสนี้ให้ 4 เมธอดสำหรับทำงานกับอ็อบเจ็กต์ RowBlock ในโปรแกรม Python. เมธอดที่มีรวมถึง: __init__, add_child, get_parent. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้จากแอปพลิเคชัน Python ใด ๆ หลังจากติดตั้งแพคเกจ Aspose.Words FOSS สำหรับ Python. คุณสมบัติ: block_level, children, count, is_first_child, is_header, is_last_child, และอีก 4 รายการ.
คุณสมบัติ
| ชื่อ | ประเภท | การเข้าถึง | คำอธิบาย |
|---|---|---|---|
count | int | อ่าน | รับจำนวน. |
is_header | `` | อ่าน | รับค่า is header. |
is_first_child | bool | อ่าน | รับค่า IsFirstChild. |
is_last_child | bool | อ่าน | รับค่า is last child. |
next_sibling | Optional["Block"] | อ่าน | รับพี่น้องถัดไป. |
previous_sibling | Optional["Block"] | อ่าน | รับพี่น้องที่อยู่ก่อนหน้า. |
block_level | MarkdownBlockLevel | อ่าน | รับระดับบล็อก. |
type | `` | อ่าน | รับประเภท. |
parent | Optional["Block"] | อ่าน | รับ parent. |
children | list["Block"] | อ่าน | รับค่า children. |
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
__init__(is_header: bool) | Calls init(is_header) บนอินสแตนซ์ RowBlock นี้. |
__init__(block_type: BlockType) | Calls init(block_type) บนอินสแตนซ์ RowBlock นี้. |
add_child(child: "Block") → "Block" | เรียก add_child(child) บนอินสแตนซ์ RowBlock นี้. |
get_parent() → Optional["Block"] | เดินขึ้นตามโซ่บรรพบุรุษและคืนบล็อกแรกที่ |
``type`` is one of *types*, or ``None`` if none matches. |