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