# BlinkingTextStyle

**URL:** <https://community.thinkgeo.com/t/blinkingtextstyle/8302>\
**Category:** WinForms\
**Created:** [December 2, 2016, 7:02am UTC](https://community.thinkgeo.com/t/blinkingtextstyle/8302 "2016-12-02T07:02:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![riyas](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/c6cbf5/32.png) [@riyas](https://community.thinkgeo.com/u/riyas)\
**Post date:** [December 2, 2016, 7:02am UTC](https://community.thinkgeo.com/t/blinkingtextstyle/8302/1 "2016-12-02T07:02:34Z")

</div>

Hi,  
Is it possible to blink ‘Label’ of feature. It’s possible to blink feature(BlinkingAreaStyle)..  
Please check attached ‘BlinkingAreaStyle’ class file.  
[BlinkingAreaStyle.cs](https://community.thinkgeo.com/uploads/default/original/3X/b/7/b710f773fcc5974f0a851d3f91665bd509b7c601.cs) (2.2 KB)

BlinkingAreaStyle blinkingStyle = new BlinkingAreaStyle();  
blinkingStyle.FillBrushes.Add(GeoBrushes.Red);  
blinkingStyle.FillBrushes.Add(GeoBrushes.Blue);  
imPolygon.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(blinkingStyle);

snap shots

 ![](https://community.thinkgeo.com/uploads/default/original/3X/b/4/b40fd1a9bbe529a43e3f52feed79f05fcbb72786.png)

 ![](https://community.thinkgeo.com/uploads/default/original/3X/9/7/972e53036dec0992b00e8d4db278db1f8a51947d.png)

Same way, I want to blink Label(“Riyaz”).

Please suggest me way to do it.

Thanks,  
Riyaz

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [December 5, 2016, 6:46am UTC](https://community.thinkgeo.com/t/blinkingtextstyle/8302/2 "2016-12-05T06:46:32Z")

</div>

Hi Riyaz,

I think you can Implement your custom style, in DrawCore function, you can directly draw the style, or you can change the textStyle then call its base function.

Just like you did in your BlinkingAreaStyle.

Regards,

Don

---

<div class="post-metadata">

**Author:** ![riyas](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/c6cbf5/32.png) [@riyas](https://community.thinkgeo.com/u/riyas)\
**Post date:** [December 5, 2016, 7:27am UTC](https://community.thinkgeo.com/t/blinkingtextstyle/8302/3 "2016-12-05T07:27:10Z")

</div>

Hi Don,  
Thanks for your reply.

I tried to implement my Own Custom Text Style. The blinking is applying on label text.  
I want to blink label text with fill color(mask).

BlinkingTextStyle blinkingStyle1 = new BlinkingTextStyle(“Name”, new GeoFont(“Arial”, 15, DrawingFontStyles.Bold), new GeoSolidBrush(GeoColor.SimpleColors.White),null,50,0,0);  
blinkingStyle1.FillBrushes.Add(GeoBrushes.Red);  
blinkingStyle1.FillBrushes.Add(GeoBrushes.Green);  
blinkingStyle1.FillBrushes.Add(GeoBrushes.Blue);

Is there possible to blink label text with fill color.  
TextStyle ts = TextStyles.CreateMaskTextStyle(“Name”, new GeoFont(“Arial”, 15, DrawingFontStyles.Bold), new GeoSolidBrush(GeoColor.SimpleColors.White), new AreaStyle(new GeoPen(GeoColor.StandardColors.Transparent), new GeoSolidBrush(GeoColor.FromArgb(255, 40, 49, 151))), 15, 0);

Pls check attached 'BlinkingTextStyle" file.

[BlinkingTextStyle.txt](https://community.thinkgeo.com/uploads/default/original/3X/e/c/ec4a648ea9c7b1c894e534fbd3848614abb6a5ab.txt) (2.3 KB)

Thanks,  
Riyaz

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [December 6, 2016, 7:44am UTC](https://community.thinkgeo.com/t/blinkingtextstyle/8302/4 "2016-12-06T07:44:07Z")

</div>

Hi Riyaz,

The mask in fact is a areastyle, you should want to draw a areastyle first, then draw the text above it.

And I think you can modify the value of mask in DrawCore then directly call base.DrawCore(features, canvas, labelsInThisLayer, labelsInAllLayers); to draw it.

Wish that’s helpful.

Regards,

Don
