Hello,
I couldn't find information on this in the API manual and in the Web site. Can you provide an example of how to use the DashPattern feature ?
Hakan Çelik
Hello,
I couldn't find information on this in the API manual and in the Web site. Can you provide an example of how to use the DashPattern feature ?
Hakan Çelik
Hakan,
Sorry for the inconvenience, we should have added this to the documentation. Generally, it's similar to a gdi+ pen's DashPattern property. “The elements in the DashPattern set the length of each dash and space in the dash pattern. The first element sets the length of a dash, the second element sets the length of a space, the third element sets the length of a dash, and so on.” You can see a detailed description here.
msdn.microsoft.com/en-us/lib...ttern.aspx
Here is a simple sample with it's result.
GeoPen dashPen = new GeoPen(GeoColor.StandardColors.Red, 1);
dashPen.DashPattern.Add(6);
dashPen.DashPattern.Add(3);
USLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = new AreaStyle(dashPen);
USLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
Thanks,
Ben
Hello Ben,
Thank you for the clarification.
Hakan
That’s my pleasure Hakan :-)