# Point colours

**URL:** <https://community.thinkgeo.com/t/point-colours/524>\
**Category:** WinForms\
**Created:** [July 1, 2009, 10:10am UTC](https://community.thinkgeo.com/t/point-colours/524 "2009-07-01T10:10:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gordon](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/3da27b/32.png) [@Gordon](https://community.thinkgeo.com/u/Gordon)\
**Post date:** [July 1, 2009, 10:10am UTC](https://community.thinkgeo.com/t/point-colours/524/1 "2009-07-01T10:10:17Z")

</div>

We&nbsp;have&nbsp;several&nbsp;layers&nbsp;of&nbsp;points&nbsp;and&nbsp;lines,&nbsp;where&nbsp;we&nbsp;need&nbsp;to&nbsp;alter&nbsp;the&nbsp;colours&nbsp;and&nbsp;symbols&nbsp;for&nbsp;the&nbsp;shapes&nbsp;independently,&nbsp;is&nbsp;this&nbsp;easily&nbsp;possible?&nbsp;..&nbsp;&nbsp;i.e.&nbsp;rather&nbsp;than&nbsp;having&nbsp;all&nbsp;the&nbsp;points&nbsp;in&nbsp;a&nbsp;layer,&nbsp;say,&nbsp;red&nbsp;triangles&nbsp;..&nbsp;we&nbsp;would&nbsp;have&nbsp;a&nbsp;unique&nbsp;colour&nbsp;and&nbsp;shape&nbsp;for&nbsp;each&nbsp;point.

Do&nbsp;we&nbsp;implement&nbsp;a&nbsp;custom&nbsp;layer&nbsp;for&nbsp;this&nbsp;(any&nbsp;starting&nbsp;point&nbsp;code?)&nbsp;or&nbsp;is&nbsp;there&nbsp;some&nbsp;shortcut?

regards,

Gordon

---

<div class="post-metadata">

**Author:** ![Patrick](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/p/b2d939/32.png) [@Patrick](https://community.thinkgeo.com/u/Patrick)\
**Post date:** [July 1, 2009, 10:22am UTC](https://community.thinkgeo.com/t/point-colours/524/2 "2009-07-01T10:22:52Z")

</div>

Hi,&nbsp;  
&nbsp;&nbsp;  
&nbsp;if&nbsp;you&nbsp;can&nbsp;pickup&nbsp;the&nbsp;color/symbol&nbsp;information&nbsp;from&nbsp;a&nbsp;feature&nbsp;column,&nbsp;you&nbsp;can&nbsp;use&nbsp;a&nbsp;ValueStyle&nbsp;to&nbsp;display&nbsp;each&nbsp;feature&nbsp;as&nbsp;you&nbsp;like.&nbsp;  
&nbsp;&nbsp;  
&nbsp;ValueStyle&nbsp;valueStyle&nbsp;=&nbsp;new&nbsp;ValueStyle();&nbsp;  
&nbsp;valueStyle.ColumnName&nbsp;=&nbsp;STR\_IsPhoto;&nbsp;  
&nbsp;valueStyle.ValueItems.Add(new&nbsp;ValueItem("1",&nbsp;new&nbsp;PointStyle(&nbsp;…&nbsp;  
&nbsp;&nbsp;  
&nbsp;if&nbsp;you&nbsp;cannot&nbsp;pickup&nbsp;it&nbsp;from&nbsp;a&nbsp;column,&nbsp;then&nbsp;you&nbsp;can&nbsp;simulate&nbsp;a&nbsp;virtual&nbsp;column:&nbsp;  
&nbsp;FeatureSource.CustomColumnFetch&nbsp;+=&nbsp;FeatureSource\_CustomColumnFetch\_Photo;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Of&nbsp;course,&nbsp;you&nbsp;can&nbsp;implement&nbsp;a&nbsp;custom&nbsp;draw&nbsp;…&nbsp;but&nbsp;it&nbsp;looks&nbsp;to&nbsp;be&nbsp;much&nbsp;more&nbsp;complex&nbsp;than&nbsp;what&nbsp;you&nbsp;really&nbsp;need.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Hope&nbsp;this&nbsp;helps,&nbsp;  
&nbsp;Patrick.

---

<div class="post-metadata">

**Author:** ![Gordon](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/3da27b/32.png) [@Gordon](https://community.thinkgeo.com/u/Gordon)\
**Post date:** [July 1, 2009, 10:53am UTC](https://community.thinkgeo.com/t/point-colours/524/3 "2009-07-01T10:53:46Z")

</div>

&nbsp;Ah&nbsp;yes,&nbsp;that&nbsp;will&nbsp;work&nbsp;fine…&nbsp;Thanks&nbsp;Patrick

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [July 1, 2009, 7:59pm UTC](https://community.thinkgeo.com/t/point-colours/524/4 "2009-07-01T19:59:19Z")

</div>

Gordon&nbsp;&&nbsp;Patrick,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;posts!&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;think&nbsp;the&nbsp;answer&nbsp;is&nbsp;exactly&nbsp;what&nbsp;Patrick&nbsp;described!&nbsp;  
&nbsp;&nbsp;  
&nbsp;Besides,&nbsp;there&nbsp;are&nbsp;other&nbsp;kinds&nbsp;of&nbsp;special&nbsp;Styles(&nbsp;Like&nbsp;ClassBreakStyle,&nbsp;QualityFamilyAreaStyle,&nbsp;HueFamilyAreaStyle,&nbsp;GradientStyle,&nbsp;DotDensityStyle,IconValueStyle,&nbsp;RegexStyle)&nbsp;etc&nbsp;,&nbsp;you&nbsp;can&nbsp;choose&nbsp;to&nbsp;use&nbsp;them&nbsp;depends&nbsp;on&nbsp;different&nbsp;scenarios.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;more&nbsp;questions&nbsp;just&nbsp;let&nbsp;me&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;

---

<div class="post-metadata">

**Author:** ![Patrick](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/p/b2d939/32.png) [@Patrick](https://community.thinkgeo.com/u/Patrick)\
**Post date:** [July 2, 2009, 11:22am UTC](https://community.thinkgeo.com/t/point-colours/524/5 "2009-07-02T11:22:22Z")

</div>

Well,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;understand&nbsp;more&nbsp;or&nbsp;less&nbsp;every&nbsp;styles&nbsp;you&nbsp;just&nbsp;mentionned;&nbsp;however,&nbsp;QualityFamilyAreaStyle&nbsp;&&nbsp;HueFamilyAreaStyle&nbsp;are&nbsp;not&nbsp;clear&nbsp;for&nbsp;me.&nbsp;  
&nbsp;I&nbsp;checked&nbsp;the&nbsp;documentation&nbsp;and&nbsp;it&nbsp;did&nbsp;not&nbsp;clarify.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Can&nbsp;you&nbsp;explain&nbsp;what&nbsp;are&nbsp;they?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Patrick.

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [July 2, 2009, 8:24pm UTC](https://community.thinkgeo.com/t/point-colours/524/6 "2009-07-02T20:24:42Z")

</div>

Patrick,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;posts&nbsp;and&nbsp;questions!&nbsp;  
&nbsp;&nbsp;  
&nbsp;First&nbsp;you&nbsp;can&nbsp;take&nbsp;a&nbsp;look&nbsp;the&nbsp;effects&nbsp;using&nbsp;the&nbsp;QualityFamilyAreaStyle&nbsp;&&nbsp;HueFamilyAreaStyle&nbsp;by&nbsp;looking&nbsp;at&nbsp;the&nbsp;HowDoI&nbsp;samples&nbsp;  
&nbsp;&nbsp;  
&nbsp;CS&nbsp;Winforms&nbsp;HowDoISamples\Styles&#160;UseQualityFamilyAreaStyle&nbsp;  
&nbsp;CS&nbsp;Winforms&nbsp;HowDoISamples\Styles&#160;UseHueFamilyAreaStyle&nbsp;  
&nbsp;&nbsp;  
&nbsp;QualityFamilyAreaStyle&nbsp;is&nbsp;expected&nbsp;to&nbsp;use&nbsp;a&nbsp;whole&nbsp;bunch&nbsp;of&nbsp;QualityFamilyColor&nbsp;to&nbsp;render&nbsp;a&nbsp;Area&nbsp;type&nbsp;features.&nbsp;For&nbsp;example,&nbsp;I&nbsp;have&nbsp;5&nbsp;quality&nbsp;family&nbsp;colors&nbsp;to&nbsp;render&nbsp;251&nbsp;features,&nbsp;then&nbsp;&nbsp;  
&nbsp;Feature1----using&nbsp;QualityFamilyColor&nbsp;one&nbsp;  
&nbsp;Feature2----using&nbsp;QualityFamilyColor&nbsp;two&nbsp;  
&nbsp;Feature3----using&nbsp;QualityFamilyColor&nbsp;three&nbsp;  
&nbsp;Feature4----using&nbsp;QualityFamilyColor&nbsp;four&nbsp;  
&nbsp;Feature5----using&nbsp;QualityFamilyColor&nbsp;five&nbsp;  
&nbsp;&nbsp;  
&nbsp;Feature6----using&nbsp;QualityFamilyColor&nbsp;one&nbsp;  
&nbsp;Etc&nbsp;in&nbsp;turn.&nbsp;  
&nbsp;&nbsp;  
&nbsp;The&nbsp;same&nbsp;rule&nbsp;can&nbsp;apply&nbsp;to&nbsp;HueFamilyAreaStyle,&nbsp;only&nbsp;difference&nbsp;is&nbsp;this&nbsp;is&nbsp;to&nbsp;get&nbsp;a&nbsp;HueFamily&nbsp;colors&nbsp;instead&nbsp;of&nbsp;Quality&nbsp;Family&nbsp;ones&nbsp;by&nbsp;giving&nbsp;a&nbsp;base&nbsp;color.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Let&nbsp;me&nbsp;know&nbsp;if&nbsp;I&nbsp;am&nbsp;not&nbsp;clear&nbsp;enough!&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;more&nbsp;questions&nbsp;just&nbsp;let&nbsp;me&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;
