SparklineGroup.Location 属性

定义

获取或设置 Range 表示迷你图组位置的 对象。

public:
 property Microsoft::Office::Interop::Excel::Range ^ Location { Microsoft::Office::Interop::Excel::Range ^ get(); void set(Microsoft::Office::Interop::Excel::Range ^ value); };
public Microsoft.Office.Interop.Excel.Range Location { get; set; }
Public Property Location As Range

属性值

表示 Range 迷你图组位置的 对象。

注解

读/写。

迷你图组中所有迷你图的位置必须在同一个工作表上,但迷你图组的源数据可以在不同的工作表或工作簿上。

表示 Location 属性的区域的大小必须等于 对象的 属性SparklineGroup中的SourceData行数或列数。

与迷你图组关联的连续区域只能是一维的。 如果区域是不连续的,则必须分别指定每个单元格。

注意:请勿使用 Microsoft.Office.Interop.Excel._Application.Union(Microsoft.Office.Interop.Excel.Range,Microsoft.Office.Interop.Excel.Range,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object 方法创建非连续区域, Microsoft.Office.Interop.Excel._Application.Union(Microsoft.Office.Interop.Excel.Range,Microsoft.Office.Interop.Excel.Range,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object 因为该方法返回单个区域引用。

适用于