<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > ChartObject > ChartLabel > Method >GetTopBorderDashOffset |
Gets the dash offset of the top border.
Prototype :
float GetTopBorderDashOffset
(
No Arguments
)
Reference :
The function returns non-numeric value if dash offset is not defined. Hence, use a Java Script function, isNaN, to know if dash offset is defined.
Example :
if(isNaN(This.GetTopBorderDashOffset()) == true) {
_TraceLn("No dash offset");
} else {
_TraceLn(This.GetTopBorderDashOffset());
}
Available Events :
OnBind, OnPostChartBuild
For the object returned by GetChartLabel function of a chart, the function can be called only in OnBind event, and for the object returned by GetLabel function of a ChartPiece, the function can be called only in OnPostChartBuild event.