Share via


_Chart.SetElement(MsoChartElementType) 方法

定义

设置图表上图表元素。 读/写。

public:
 void SetElement(Microsoft::Office::Core::MsoChartElementType Element);
public void SetElement (Microsoft.Office.Core.MsoChartElementType Element);
Public Sub SetElement (Element As MsoChartElementType)

参数

Element
MsoChartElementType

指定图表元素类型。

注解

对于图表,“布局”选项卡中的以下命令对应于 SetElement(MsoChartElementType) 方法:

  • "标签" 组中的全部内容。
  • "坐标轴" 组中的全部内容。
  • "分析" 组中的全部内容。
  • "绘图区"、 "图表背景墙" 和 "图表基底" 按钮。

MsoChartElementType 是一个枚举常量引用的所有上述命令。

适用于