Hi all...
I find the lines too wide and would like to make them thin...
Here's my very little portion of code :
if(i>0)
mpmap.Shapes.AddLine(mploc[i-1], mploc[i]);
thanks
This is a discussion on Shape.addLine(loc1, loc2) -> How 2 Change size of line ?? within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi all... I find the lines too wide and would like to make them thin... Here's my very little portion ...
Hi all...
I find the lines too wide and would like to make them thin...
Here's my very little portion of code :
if(i>0)
mpmap.Shapes.AddLine(mploc[i-1], mploc[i]);
thanks
Hope this sample helps you.
Code:Dim objmap As MapPointCtl.Map Set objmap = MappointControl1.ActiveMap Dim ashape As MapPointCtl.Shape Dim aLocation1 As MapPointCtl.Location Dim aLocation2 As MapPointCtl.Location Set aLocation1 = objmap.FindResults("New York, NY").Item(1) Set aLocation2 = objmap.FindResults("Atlanta, GA").Item(1) Set ashape = objmap.Shapes.AddLine(aLocation1, aLocation2) ashape.Line.Weight = 1
John
http://www.support-pc.com
Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Thank you for the reply but I needed it in C#
I've found how to do it :
sh = mpmap.Shapes.AddLine(mploc[i-1], mploc[i]);
sh.Line.Weight= 1;
Hope this will help
See you
(And I did not specify I needed it in C#... sorry)![]()
I new you could convert it 8)
John
http://www.support-pc.com
Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
There are currently 1 users browsing this thread. (0 members and 1 guests)