# Source Code for Legend in MapWinGIS v5.3

**URL:** <https://mapwindow.discourse.group/t/source-code-for-legend-in-mapwingis-v5-3/1572>\
**Category:** MapWinGIS\
**Created:** [May 30, 2023, 1:14pm UTC](https://mapwindow.discourse.group/t/source-code-for-legend-in-mapwingis-v5-3/1572 "2023-05-30T13:14:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayaz](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@ayaz](https://mapwindow.discourse.group/u/ayaz)\
**Post date:** [May 30, 2023, 1:14pm UTC](https://mapwindow.discourse.group/t/source-code-for-legend-in-mapwingis-v5-3/1572/1 "2023-05-30T13:14:11Z")

</div>

Hi all,

Could you please share c# source code for creating legend for using MapWinGIS v5.3 ?

I tried to write myself using treeview but I could not. I want to change line color, line size etc with right mouse click on layer

I checked MapWinGIS Demo program source code but still no success.

If you share source code it would be great.

Thanks in advance.
