Share via


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 方案中的選擇性參數

適用於