Class ContainerInfo

ContainerInfo

访问图表在工作表中的位置。可使用 EmbeddedChart.modify() 函数进行更新。

chart = chart.modify().setPosition(5, 5, 0, 0).build();
sheet.updateChart(chart);

方法

方法返回类型简介
getAnchorColumn()Integer图表的左侧锚定在此列中。
getAnchorRow()Integer图表的顶部锚定在此行中。
getOffsetX()Integer图表的左上角相对于锚点列偏移了这么多像素。
getOffsetY()Integer图表的左上角相对于锚点行的偏移量达到这么多像素。

详细文档

getAnchorColumn()

图表的左侧锚定在此列中。

弃踢回攻

Integer - 从 1 开始计数的列(即 C 列为 3)


getAnchorRow()

图表的顶部锚定在此行中。

弃踢回攻

Integer - 从 1 开始的索引行(即第 5 行返回 5)


getOffsetX()

图表的左上角相对于锚点列偏移了这么多像素。

弃踢回攻

Integer - 图表左上角的水平偏移量(以像素为单位)


getOffsetY()

图表的左上角相对于锚点行的偏移量达到这么多像素。

弃踢回攻

Integer - 图表左上角的垂直偏移量(以像素为单位)