XmlMappedRange.DataSeries 方法

定义

XmlMappedRange 控件中创建一个数据系列。

public object DataSeries (object Rowcol, Microsoft.Office.Interop.Excel.XlDataSeriesType Type = Microsoft.Office.Interop.Excel.XlDataSeriesType.xlDataSeriesLinear, Microsoft.Office.Interop.Excel.XlDataSeriesDate Date = Microsoft.Office.Interop.Excel.XlDataSeriesDate.xlDay, object Step, object Stop, object Trend);
abstract member DataSeries : obj * Microsoft.Office.Interop.Excel.XlDataSeriesType * Microsoft.Office.Interop.Excel.XlDataSeriesDate * obj * obj * obj -> obj
Public Function DataSeries (Optional Rowcol As Object, Optional Type As XlDataSeriesType = Microsoft.Office.Interop.Excel.XlDataSeriesType.xlDataSeriesLinear, Optional Date As XlDataSeriesDate = Microsoft.Office.Interop.Excel.XlDataSeriesDate.xlDay, Optional Step As Object, Optional Stop As Object, Optional Trend As Object) As Object

参数

Rowcol
Object

可以为 xlRowsxlColumns 常数以将数据系列分别输入行或列中。 如果省略此参数,则使用该范围的大小和形状。

Date
XlDataSeriesDate

Type如果 参数为 xlChronological,则Date参数指示步骤日期单位。可以是以下XlDataSeriesDate常量之一:xlDayxlWeekdayxlMonthxlYear

Step
Object

该系列的步长值。 默认值为 1(一)。

Stop
Object

该系列的终止值。 如果省略此参数,则 Microsoft Office Excel 会填充到该范围的末尾。

Trend
Object

如果创建等差序列或等比序列,则为 true;如果创建标准数据系列,则为 false。 默认值为 false

返回

注解

可选参数

有关可选参数的信息,请参阅 Office 解决方案中的可选参数

适用于