An AnchorPattern instance defines a set of anchor points to be used together. A pattern can be assigned as an integral entity to the AnchorPattern property of diagram nodes.
VB6
![]() |
---|
Public Class AnchorPattern |
C++
![]() |
---|
class AnchorPattern |
Anchor patterns are identified by their string id, so be sure to assign an id to the pattern once it has been created. When the PatternId property is set, the pattern is also added to AnchorPatterns array of the FlowChart class. That array initially contains four predefined patterns.
Anchor points are added to a pattern through the AddAnchorPointF method. Arrows drawn from an anchor point can be assigned a specific Style and number of Segments, as specified via SetArrowStyleForPoint. The attributes of an existing anchor point can be accessed by means of GetAnchorPointF.
The following example shows how to define a new anchor pattern, and how to assign an anchor pattern to a box:
VB6
![]() |
---|
Private Sub Form_Load() |