Skip to content

Selection Property

Description

Collection of selected elements in the Flow Graph on this page.

Property Type

Read-only property

Syntax (Visual Basic)

Public Property Selection() As [FlowGraphSelectedElements](XtremeFlowGraph~FlowGraphSelectedElements.md)

Remarks

Selected elements will include Nodes, Connections, and Connection Points. This collection can be used to add or remove elements to/from the selection. Elements can be selected with the mouse or using methods in code.

Example

This code will group all the currently selected nodes.

Dim pGroup As FlowGraphNodeGroup  
Set pGroup = FlowGraph.ActivePage.Groups.AddGroup

Dim i As Integer  
For i = 0 To FlowGraph.ActivePage.Selection.Count  
    Dim pNode As FlowGraphNode  
    Set pNode = FlowGraph.ActivePage.Selection.Item(i)  

    If Not pNode Is Nothing Then  
        pGroup.AddNode pNode  
    End If  
Next i

See Also


See Also

Flow Graph ActiveX Control v24.0


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.