Syntax
Public Function ObjectLabelMove(chart_Id As Long, name As String, XPos As Integer, YPos As Integer) As Boolean
Description
This function is used to move a label object in the chart by a given the coordinates.
Parameters
Key | Description |
chart_Id | Chart identifier. 0 mean the current chart, the value of type Long. |
XPos | X coordinate point, the value of type Integer. |
YPos | Y coordinate point, the value of type Integer. |
Return value
Returns true if successful. Otherwise, it returns false.To get the detailed error information, call GetlastError() function.
Sample
Public Sub main () Dim XPos Dim YPos XPos = 10 Ypos = 20 AlertMessage ObjectLabelMove (0,"ObjectName ",Cint(XPos),Cint(Ypos)) End sub
See Also