How to display dimension of Horizontal Text with API?

The type of arrows and leaders available depends on the type of dimension selected.

Horizontal Text

How to use API?

Thanks

SolidworksApi macros