OrderedListItemBlock

OrderedListItemBlock

ภาพรวม

OrderedListItemBlock เป็นคลาสใน Aspose.Words FOSS สำหรับ Python. สืบทอดจาก: ListItemBlock.

OrderedListItemBlock.get_level() คืนค่าความลึกเป็นจำนวนเต็มของรายการย่อยภายในรายการแม่ของมัน.

คลาสนี้ให้ 7 เมธอดสำหรับทำงานกับอ็อบเจ็กต์ OrderedListItemBlock ในโปรแกรม Python. เมธอดที่พร้อมใช้งานได้แก่: __init__, add_child, get_level, get_list_container, get_parent. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้จากแอปพลิเคชัน Python ใด ๆ หลังจากติดตั้งแพกเกจ Aspose.Words FOSS สำหรับ Python. คุณสมบัติ: block_level, children, is_first_child, is_last_child, is_level_start, marker, และอีก 5 รายการ.

คุณสมบัติ

ชื่อประเภทการเข้าถึงคำอธิบาย
marker``อ่านรับเครื่องหมาย.
start_at``อ่านรับค่า start at.
is_level_start``อ่านรับค่า is level start.
is_first_childboolอ่านรับค่า is first child.
is_last_childboolอ่านรับค่า is last child.
next_siblingOptional["Block"]อ่านรับพี่น้องถัดไป.
previous_siblingOptional["Block"]อ่านรับพี่น้องก่อนหน้า.
block_levelMarkdownBlockLevelอ่านรับระดับของบล็อก.
type``อ่านรับประเภท.
parentOptional["Block"]อ่านรับพาเรนต์.
childrenlist["Block"]อ่านดึงรายการลูก.

วิธีการ

ลายเซ็นคำอธิบาย
__init__(start_at: int, marker: ListMarker)Calls init(start_at, marker) บนอินสแตนซ์ OrderedListItemBlock นี้.
__init__(block_type: BlockType, marker: ListMarker, start_at: int)Calls init(block_type, marker, start_at) บนอินสแตนซ์ OrderedListItemBlock นี้.
get_level() → int0-based nesting depth: จำนวนรายการพาเรนต์ที่ล้อมรอบรายการนี้.
get_list_container() → Optional["ListBlock"]ส่งคืนคอนเทนเนอร์รายการ.
__init__(block_type: BlockType)Calls init(block_type) บนอินสแตนซ์ OrderedListItemBlock นี้.
add_child(child: "Block") → "Block"เรียก add_child(child) บนอินสแตนซ์ OrderedListItemBlock นี้.
get_parent() → Optional["Block"]เดินขึ้นไปตามสายของบรรพบุรุษและคืนบล็อกแรกที่
    ``type`` is one of *types*, or ``None`` if none matches. |

ดูเพิ่มเติม

 ภาษาไทย