# Setting Shapefile Color

**URL:** <https://mapwindow.discourse.group/t/setting-shapefile-color/986>\
**Category:** Uncategorized\
**Created:** [May 7, 2021, 8:55am UTC](https://mapwindow.discourse.group/t/setting-shapefile-color/986 "2021-05-07T08:55:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Rem97](https://avatars.discourse-cdn.com/v4/letter/r/e47c2d/32.png) [@Rem97](https://mapwindow.discourse.group/u/Rem97)\
**Post date:** [May 14, 2021, 2:49pm UTC](https://mapwindow.discourse.group/t/setting-shapefile-color/986/2 "2021-05-14T14:49:30Z")

</div>

Dear bbend,

this can be done by sorting shapes into categories, which is seen in this example:  
[mapwindow.org/example](https://www.mapwindow.org/documentation/mapwingis4.9/_split_by_attribute_8cs-example.html)

Or:  
[MapWinGis topic 165](https://mapwindow.discourse.group/t/use-set-shapefillcolor-new-version/165/4)

Another, option would be to loop through the shapes in the shapefile and assign colors to them somehow. Or maybe its better to assign categories to them. I can try something in C# and provide it here if you want. Just let me know.  
Or maybe someone else can add something to the story above.

Kind regards,

Rem

---

_[View the full topic](https://mapwindow.discourse.group/t/setting-shapefile-color/986)._
