ShapeXmlSaver

ShapeXmlSaver

概述

ShapeXmlSaver 是 Aspose.Cells FOSS 中用于 Python 的一个类。

为工作表形状生成绘图 XML 和关系 XML。

此类提供5个方法,用于在 Python 程序中处理 ShapeXmlSaver 对象。可用的方法包括:__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) | 为具有超链接 URL 的形状分配关系 ID。 | | 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 条目。 |

另请参阅

 中文