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_childboolอ่านรับค่า IsFirstChild.
is_last_childboolอ่านรับค่า is last child.
next_siblingOptional["Block"]อ่านรับพี่น้องถัดไป.
previous_siblingOptional["Block"]อ่านรับพี่น้องก่อนหน้า.
block_levelMarkdownBlockLevelอ่านรับระดับบล็อก.
type``อ่านรับค่า type.
parentOptional["Block"]อ่านรับพาเรนท์.
childrenlist["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. |

ดูเพิ่มเติม

 ภาษาไทย