If you do not want to use one of the endpoints
provided with XD++ Library, you can create your own. Simply derive a new
object from CFOBaseEndObject and override OnDraw() and
BuildLineEnd().
Refer to the existing endpoints, CFOCrossArrowObject and
CFOEmptyArrowObject.
Create your own arrow class
To create a customized endpoint, you need to
calculate how your geometry appears in relation to the line for both the OnDraw()
and BuildLineEnd() methods. In CFOCrossArrowObject , this is calculated in the
BuildLineEnd() method. t uses the arrow size values to determine how to display
the polygon. The values for the vertices of the polygon are used in both the
region calculations and in the drawing of the endpoint.
Also you can use XD++ Library add-in to
Create your arrow class, below is how:
1.