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.
SyntaxVB6
Copy Code
|
|---|
Public Class AnchorPattern |
C++
Copy Code
|
|---|
class AnchorPattern |
RemarksAnchor 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.
ExampleThe following example shows how to define a new anchor pattern, and how to assign an anchor pattern to a box:
VB6
Copy Code
|
|---|
Private Sub Form_Load() |
See Also