# Splined Text

**URL:** <https://community.thinkgeo.com/t/splined-text/3093>\
**Category:** WPF\
**Created:** [October 27, 2011, 6:54pm UTC](https://community.thinkgeo.com/t/splined-text/3093 "2011-10-27T18:54:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dennis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@Dennis](https://community.thinkgeo.com/u/Dennis)\
**Post date:** [October 27, 2011, 6:54pm UTC](https://community.thinkgeo.com/t/splined-text/3093/1 "2011-10-27T18:54:23Z")

</div>

Splined&nbsp;Text&nbsp;labels&nbsp;are&nbsp;not&nbsp;showing&nbsp;as&nbsp;splined&nbsp;text&nbsp;even&nbsp;though&nbsp;the&nbsp;SplineType&nbsp;within&nbsp;the&nbsp;TextStyle&nbsp;is&nbsp;being&nbsp;set.

I&nbsp;see&nbsp;there&nbsp;is&nbsp;a&nbsp;property&nbsp;named&nbsp;AllowSplining,&nbsp;but&nbsp;it&nbsp;is&nbsp;protected.

Any&nbsp;help&nbsp;with&nbsp;this&nbsp;is&nbsp;appreciated.

Thanks,

Dennis

&nbsp;

---

<div class="post-metadata">

**Author:** ![Val](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/v/e56c9b/32.png) [@Val](https://community.thinkgeo.com/u/Val)\
**Post date:** [October 28, 2011, 10:44am UTC](https://community.thinkgeo.com/t/splined-text/3093/2 "2011-10-28T10:44:23Z")

</div>

Dennis,

&nbsp;&nbsp;Let&nbsp;me&nbsp;remind&nbsp;you&nbsp;first&nbsp;that&nbsp;Splining&nbsp;applies&nbsp;only&nbsp;to&nbsp;line&nbsp;based&nbsp;features.&nbsp;So&nbsp;this&nbsp;is&nbsp;going&nbsp;to&nbsp;work&nbsp;great&nbsp;for&nbsp;streets&nbsp;but&nbsp;this&nbsp;is&nbsp;irrelevant&nbsp;for&nbsp;labeling&nbsp;polygons&nbsp;or&nbsp;points.&nbsp;Below&nbsp;I&nbsp;have&nbsp;a&nbsp;simple&nbsp;example&nbsp;of&nbsp;how&nbsp;I&nbsp;label&nbsp;some&nbsp;streets&nbsp;with&nbsp;the&nbsp;code&nbsp;and&nbsp;the&nbsp;visual&nbsp;results.&nbsp;The&nbsp;code&nbsp;is&nbsp;pretty&nbsp;simple&nbsp;and&nbsp;I&nbsp;hope&nbsp;this&nbsp;is&nbsp;going&nbsp;to&nbsp;get&nbsp;you&nbsp;started&nbsp;for&nbsp;your&nbsp;case.

 ![](https://community.thinkgeo.com/uploads/default/original/2X/5/5bd55f89eced72c073b8656d2473b601feaa76e2.png)

`  wpfMap1.MapUnit = GeographyUnit.Feet;    ShapeFileFeatureLayer streetLayer = new ShapeFileFeatureLayer(@"C:\ThinkGeo\Support\MapData\FriscoTrans\streets.shp");    streetLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(new LineStyle(new GeoPen(GeoColor.StandardColors.Black, 14),        new GeoPen(GeoColor.StandardColors.LightGoldenrodYellow, 12)));    streetLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;    TextStyle textStyle = new TextStyle("FULL_NAME", new GeoFont("AriaL", 8, DrawingFontStyles.Bold), new GeoSolidBrush(GeoColor.StandardColors.Black));    textStyle.SplineType = SplineType.StandardSplining;    streetLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(textStyle);    LayerOverlay layerOverlay = new LayerOverlay();    layerOverlay.Layers.Add(streetLayer);    wpfMap1.Overlays.Add(layerOverlay);    streetLayer.Open();    wpfMap1.CurrentExtent = streetLayer.GetBoundingBox();    streetLayer.Close();    wpfMap1.Refresh();`

---

<div class="post-metadata">

**Author:** ![Dennis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@Dennis](https://community.thinkgeo.com/u/Dennis)\
**Post date:** [October 28, 2011, 7:59pm UTC](https://community.thinkgeo.com/t/splined-text/3093/3 "2011-10-28T19:59:49Z")

</div>

Val,&nbsp;  
  
  
  
Thanks&nbsp;for&nbsp;you&nbsp;response.&nbsp;I&nbsp;had&nbsp;the&nbsp;same&nbsp;basic&nbsp;code&nbsp;except&nbsp;that&nbsp;mine&nbsp;is&nbsp;using&nbsp;a&nbsp;collection&nbsp;of&nbsp;TextStyles,&nbsp;which&nbsp;tripped&nbsp;me&nbsp;up&nbsp;a&nbsp;bit.&nbsp;I&nbsp;now&nbsp;have&nbsp;my&nbsp;code&nbsp;working.

But&nbsp;I&nbsp;have&nbsp;noticed&nbsp;that&nbsp;whether&nbsp;the&nbsp;text&nbsp;is&nbsp;splined&nbsp;or&nbsp;not&nbsp;depends&nbsp;on&nbsp;the&nbsp;current&nbsp;ZoomLevel&nbsp;even&nbsp;though&nbsp;it&nbsp;appears&nbsp;that&nbsp;the&nbsp;text&nbsp;should&nbsp;be&nbsp;splined&nbsp;it&nbsp;is&nbsp;not.

The&nbsp;first&nbsp;image&nbsp;below&nbsp;shows&nbsp;text&nbsp;that&nbsp;is&nbsp;not&nbsp;splined,&nbsp;but&nbsp;I&nbsp;believe&nbsp;should&nbsp;be.&nbsp;&nbsp;One&nbsp;label&nbsp;is&nbsp;splined,&nbsp;but&nbsp;the&nbsp;other&nbsp;is&nbsp;not.&nbsp;&nbsp;The&nbsp;second&nbsp;image&nbsp;is&nbsp;one&nbsp;ZoomLevel&nbsp;higher&nbsp;than&nbsp;the&nbsp;previous&nbsp;and&nbsp;now&nbsp;the&nbsp;splined&nbsp;text&nbsp;has&nbsp;changed,&nbsp;but&nbsp;still&nbsp;has&nbsp;a&nbsp;label&nbsp;that&nbsp;is&nbsp;not&nbsp;splined,&nbsp;but&nbsp;should&nbsp;be.  
  
  
  
Thanks,&nbsp;  
  
Dennis&nbsp;  
  
&nbsp;

&nbsp;

 ![](https://community.thinkgeo.com/uploads/default/original/2X/b/b886acb8abfbffac60032e440153ebbba7bbdc37.jpg)

 ![](https://community.thinkgeo.com/uploads/default/original/2X/2/22dab71ca2ceea608c27121a360c0d53c16d7d31.jpg)

---

<div class="post-metadata">

**Author:** ![Val](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/v/e56c9b/32.png) [@Val](https://community.thinkgeo.com/u/Val)\
**Post date:** [October 31, 2011, 12:03pm UTC](https://community.thinkgeo.com/t/splined-text/3093/4 "2011-10-31T12:03:45Z")

</div>

Dennis,

&nbsp;&nbsp;I&nbsp;think&nbsp;that&nbsp;the&nbsp;splinning&nbsp;of&nbsp;your&nbsp;street&nbsp;label&nbsp;is&nbsp;actually&nbsp;happening&nbsp;as&nbsp;expected&nbsp;based&nbsp;on&nbsp;your&nbsp;data&nbsp;and&nbsp;the&nbsp;zoom&nbsp;levels&nbsp;you&nbsp;are&nbsp;at.&nbsp;I&nbsp;don't&nbsp;know&nbsp;your&nbsp;street&nbsp;data&nbsp;that&nbsp;you&nbsp;are&nbsp;labeling&nbsp;but&nbsp;I&nbsp;think&nbsp;that&nbsp;what&nbsp;is&nbsp;happening&nbsp;is&nbsp;as&nbsp;it&nbsp;is&nbsp;described&nbsp;below&nbsp;in&nbsp;my&nbsp;drawing:

 ![](https://community.thinkgeo.com/uploads/default/original/2X/c/c829d8161bd092a58cb77a2e864027ee66663a57.png)

&nbsp;Looking&nbsp;at&nbsp;this&nbsp;drawing,&nbsp;I&nbsp;think&nbsp;that&nbsp;you&nbsp;understand&nbsp;what&nbsp;is&nbsp;happening.&nbsp;I&nbsp;have&nbsp;to&nbsp;admit&nbsp;that&nbsp;this&nbsp;label&nbsp;curving&nbsp;logic&nbsp;could&nbsp;be&nbsp;improved&nbsp;and&nbsp;and&nbsp;I&nbsp;have&nbsp;created&nbsp;an&nbsp;issue&nbsp;for&nbsp;the&nbsp;development&nbsp;team&nbsp;for&nbsp;future&nbsp;enhancement.&nbsp;I&nbsp;think&nbsp;that&nbsp;the&nbsp;curving&nbsp;could&nbsp;still&nbsp;apply&nbsp;in&nbsp;the&nbsp;second&nbsp;case.&nbsp;Thank&nbsp;you.
