Get properties of a line (axis line, grid line, data line ...).
#Include <ExcelChart.au3>
_XLChart_LineGet($oObject)
Parameters
$oObject | Object for which the properties should be returned (axis, grid line, data line ...) |
Return Value
Success: Returns a one-based one dimensional array with the following properties:
Remarks
None.
Related
Example
#AutoIt3Wrapper_UseX64=n
#AutoIt3Wrapper_AU3Check_Parameters= -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#AutoIt3Wrapper_AU3Check_Stop_OnWarning=Y
#include-once
#include <ExcelChart.au3>
#include <Array.au3>
; *****************************************************************************
; Create example environment
; *****************************************************************************
Global $aExcel = _XLChart_Example(True, 0, 3, -1, -1)
If @error = 2 Then Exit MsgBox(16, "Excel Chart Example Script", "The installed Excel version is not supported by this UDF!" & @CRLF & "Version must be >= 12 (Excel 2007).")
If @error <> 0 Then Exit MsgBox(16, "Excel Chart Example Script", "Error " & @error & " returned by _XLChart_Example on line " & @ScriptLineNumber)
; *****************************************************************************
; Example 1
; Chart 1: Get the properties of the first data series
; *****************************************************************************
Global $aResult = _XLChart_LineSet($aExcel[2].Floor, 3, 3, True)
ConsoleWrite(@error & @CRLF)
$aResult = _XLChart_LineGet($aExcel[2].Floor)
If @error Then Exit MsgBox(64, "Excel Chart Example Script", "Error " & @error & " returned by function '_XLChart_LineGet' on line " & @ScriptLineNumber)
_ArrayDisplay($aResult)