Skip to content

ImageIndex Property

Description

Gets/sets the index of an image to display next to the caption text of the node.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property ImageIndex() As Long

Return Type

Returns the index of an image to display next to the caption text of the node.

Example

Loads an image and displays it in the node.

Dim Image As FlowGraphImage  
Set Image = FlowGraph.Images.AddImage  
Image.LoadFromFile App.Path & "\Images\NodeImageCustomers.bmp"  

Set Image = FlowGraph.Images.AddImage  
Image.LoadFromFile App.Path & "\Images\NodeImageOrderDetails.png"

FlowGraph.Pages.RemoveAll  

Dim Page As FlowGraphPage  
Set Page = FlowGraph.Pages.AddPage  

Debug.Print FlowGraph.Pages.Count  

Set FlowGraph.ActivePage = Page  

Dim pTableCustomers As FlowGraphNode  
Set pTableCustomers = Page.Nodes.AddNode

pTableCustomers.Caption = "Customers"  
pTableCustomers.Tooltip = "Customers Table"  
pTableCustomers.Color = RGB(155, 187, 89)  
pTableCustomers.LocationX = 820  
pTableCustomers.LocationY = 360  
pTableCustomers.ImageIndex = 0  
pTableCustomers.Locked = True

See Also

FlowGraphNodeCustom Object


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