Chart.SetSourceData Method
Sets the source data range for the Chart.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Sub SetSourceData ( _
Source As String, _
PlotBy As Object _
)
'Usage
Dim instance As Chart
Dim Source As String
Dim PlotBy As Object
instance.SetSourceData(Source, PlotBy)
void SetSourceData(
string Source,
Object PlotBy
)
Parameters
- Source
Type: System.String
Required String The address of the chart data range that contains the source data.
- PlotBy
Type: System.Object
Optional Object Specifies the way the data is to be plotted. Can be either of the following XlRowCol constants: xlColumns or xlRows.