Calculate draw line or measure azimuth (found it - no answer required!)

Hi All,
I am chasing a simple way to calculate the azimuth of the line when using the DrawLine or Measure function. Is there a built in function that may do that, or would I have to create my own function to calculate it ?
Any help appreciated,
Regards
Terry
PS. Similar to the Ruler Measure function in Google earth
NB its in the Measuring Class Reference = AxMap1.Measuring.ShowBearing = True