Version

LeftImages Property

Returns the LeftImages collection.
Syntax
'Declaration
 
Public Overridable ReadOnly Property LeftImages As ImagesCollection
public virtual ImagesCollection LeftImages {get;}
Remarks

LeftImages is a collection of images that will appear to the left of the Text of the node. These images are separate from any image applied to the node by an Appearance property, and the will appear to the right of any such image.

To add images to the right of the node's Text, use the RightImages collection.

Each item added to this collection may be an image or (if the UltraTree.ImageList property of the control has been set) an Index of an image in the associated UltraTree.ImageList.

Example
The following sample code shows how to add multiple images to the left and right of a node's text.

Imports Infragistics.Win.UltraWinTree

Private Sub button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button14.Click

    Dim node As UltraTreeNode

    node = Me.ultraTree1.ActiveNode

    If node Is Nothing Then Return

    If node.LeftImages.Count > 0 Then Return

    ' Note: In the following sample code we are setting
    ' image properties with integers. These represent
    ' indexes in the ImageList that was set as
    ' a property of the tree control. The image
    ' properties set below can also be set to image
    ' objects directly.

    ' Setting the image property of the node's override
    ' will place an image on the far left of the node. 
    node.Override.NodeAppearance.Image = 6

    ' Add images to the left and right of the node's
    ' text. These are useful as indicator flags.
    node.LeftImages.Add(0)
    node.LeftImages.Add(1)
    node.LeftImages.Add(2)
    node.RightImages.Add(3)
    node.RightImages.Add(4)

    node.LeftImagesAlignment = Infragistics.Win.VAlign.Top
    node.RightImagesAlignment = Infragistics.Win.VAlign.Bottom

End Sub
using Infragistics.Win.UltraWinTree;

private void button14_Click(object sender, System.EventArgs e)
{

	UltraTreeNode node = this.ultraTree1.ActiveNode;
		
	if ( node == null ||
		 node.LeftImages.Count > 0 )
		return;

	// Note: In the following sample code we are setting
	// image properties with integers. These represent
	// indexes in the ImageList that was set as
	// a property of the tree control. The image
	// properties set below can also be set to image
	// objects directly.

	// Setting the image property of the node's override
	// will place an image on the far left of the node. 
	node.Override.NodeAppearance.Image = (int)6;

	// Add images to the left and right of the node's
	// text. These are useful as indicator flags.
	node.LeftImages.Add( (int) 0 );
	node.LeftImages.Add( (int) 1 );
	node.LeftImages.Add( (int) 2 );
	node.RightImages.Add( (int) 3 );
	node.RightImages.Add( (int) 4 );

	node.LeftImagesAlignment = Infragistics.Win.VAlign.Top;
	node.RightImagesAlignment = Infragistics.Win.VAlign.Bottom;

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also