Hi Joy,
Sorry for the inconvenience caused.
I have created a sample as per your specification.The sample illustrates the possiblity to show the LeftImage overlay and the RightImage overlay in the same sample.
The property "RightImagesX" of the node plays a great role in setting the RightImage overlay.It describes the horizontal distance between the treeBorder and the beginning of the node''s right image.
private void treeViewAdv1_AfterNodePaint(object sender, Syncfusion.Windows.Forms.Tools.TreeNodeAdvPaintEventArgs e)
{
Point pt=this.treeViewAdv1.PointToClient(new Point(MousePosition.X,MousePosition.Y));
TreeNodeAdv node=this.treeViewAdv1.GetNodeAtPoint(pt);
node = this.treeViewAdv1.SelectedNode;
if(node!=null)
{
if(node.Text=="Asia" ||node.Text=="India"||node.Text=="China"||node.Text=="Europe" ||
node.Text=="Britain"||node.Text=="France"||node.Text=="North America"||
node.Text=="United States"||node.Text=="Canada")
{
//setting the LeftImage overlay
pt = new Point(node.LeftImagesX, node.TextAndImageBounds.Y);
e.Graphics.DrawImage(imageList1.Images[26], pt );
}
else
{
//setting the RightImage overlay
pt = new Point(node.RightImagesX, node.TextAndImageBounds.Y);
e.Graphics.DrawImage(imageList2.Images[9], pt );
}
}
}
Please take a look at the attached sample and let me know if this helps you.
Thanks for your interest in Syncfusion products.
Regards,
Deepa.
ImageOverLay.zip