ShapeXmlSaver
ภาพรวม
ShapeXmlSaver เป็นคลาสใน Aspose.Cells FOSS สำหรับ Python.
สร้าง XML การวาดและ XML ความสัมพันธ์สำหรับรูปทรงในแผ่นงาน.
คลาสนี้ให้ 5 เมธอดสำหรับทำงานกับวัตถุ ShapeXmlSaver ในโปรแกรม Python. เมธอดที่มีรวมถึง: __init__, assign_hyperlink_rel_ids, collect_shape_refs, format_shape_anchors_xml, format_shape_relationships_xml. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้โดยแอปพลิเคชัน Python ใด ๆ หลังจากติดตั้งแพ็กเกจ Aspose.Cells FOSS สำหรับ Python.
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
__init__(escape_xml_fn) | อาร์กิวเมนต์: |
escape_xml_fn: Callable that XML-escapes a string (provided by
the parent saver so this module doesn't duplicate it). || collect_shape_refs(worksheet) | สร้างรายการพจนานุกรมอ้างอิงรูปทรงที่จำเป็นสำหรับการวาด XML |
generation. || assign_hyperlink_rel_ids(shape_refs, start_rel_id) | กำหนด ID ความสัมพันธ์ให้กับรูปทรงที่มี URL ของไฮเปอร์ลิงก์. | | format_shape_anchors_xml(shape_refs, chart_count, picture_count) | ส่งคืนสตริง xdr:twoCellAnchor XML ที่ต่อกันสำหรับรูปทรงทั้งหมด. | | format_shape_relationships_xml(shape_refs, chart_count, picture_count) | ส่งคืนรายการ Relationship XML สำหรับรูปทรงที่มีไฮเปอร์ลิงก์. |