Search
Arrow.ExpectedDestination Property
See Also
 



Gets which node an arrow would be attached to if the RequestCreateArrow event is validated.

 Syntax

VB6  Copy Code

Public Property Get ExpectedDestination() As Object

C++  Copy Code

public:
IDispatch* get_ExpectedDestination ()

 Property Value

A reference to a Box or Table instance.

 Remarks

This property is valid only in a RequestCreateArrow event handler. It holds a reference to the object that will become arrow's DestinationBox or DestinationTable if the arrow creation is validated.

 Example

The following VB example demonstrates possible use of the property:

VB6  Copy Code

Private Sub fc_RequestCreateArrow(ByVal arrow As FLOWCHARTLibCtl.IArrowItem, pbCreate As Boolean)

    Dim box As FLOWCHARTLibCtl.box

    If TypeOf arrow.ExpectedDestination Is box Then

        Set box = arrow.ExpectedDestination

        'I don't like red boxes
        If box.FillColor = vbRed Then
            pbCreate = False
        End If

    End If

    If TypeOf arrow.ExpectedDestination Is Table Then

        'ugh! table
        pbCreate = False

    End If

End Sub

 See Also