Hi ,
I need to add label with textStyle to my map , and i need to set backgroundColor for it .
how can i do this ?
Set backcolor for labels on map by textstyle
Hi Maryam,
Would you please try the below codes to see if it is fit for you?
TextStyle textStyle = new TextStyle(“AREANAME”, new GeoFont(“Arial”, 8), new GeoSolidBrush(GeoColor.StandardColors.Black));
textStyle.Mask = new AreaStyle(new GeoSolidBrush(GeoColor.StandardColors.DarkOrange));
majorCitiesShapeLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = textStyle;
If more questions, don’t hesitate to let us know.
Regards,
Troy
Hi ,
Thanks alot. your response works fine.
Hi Maryam,
You are welcome; just feel free to let us know if you have more queries.
Thanks,
Howard