Legend marker size


Author
Message
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Warwick,

The size object is a structure - therefore you cannot assign one of its members like:

legend.Data.Marksize.Width = New Length(1.5F, NRelative.ParentPercentage)

because legend.Data.Marksize will create a copy of the structure and you'll modify the Width property of that copy - that's why you get a compiler error. You need to write something like:

legend.Data.MarkSize = new NSizeL(new NLength(1.5f, NRelativeUnit.ParentPercentage), legend.Data.MarkSize.Height);

Hope this helps - let us know if you meet any problems.



Best Regards,
Nevron Support Team


Warwick Payten
Warwick Payten
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)
Group: Forum Members
Posts: 5, Visits: 1

Thanks   Thats great I only won't to set the marker size to be all  the same anyway.

However I am still a little confused  I tried using:

Dim legend as NLegend = CType(legendsCollection(0), NLegend)

legend.Data.Marksize.Width = New Length(1.5F, NRelative.ParentPercentage)

similar to what i do setting the marker size in the graph but this comes back with the error

"Expression is value and therefore cannot be the target of an assignment"

I have also tried using the following as per the manual:

Dim instance As NLegendData
Dim value As NSizeL

instance.MarkSize = value

value = instance.MarkSize

but  value has two properties that can be set

value.height and value.width

and i am still not clear how to then use that in a statement  as the error comes back with

"Value of tye Nevron.GrahicsCore.Nlength' cannot be converted to NevronGraphicsCore.NSizeL"

 

Cheers Warwick


Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Warwick,

Currently the legend mark size can be controlled only for the whole legend (not for individual items) through the legend.Data.MarkSize property. We'll publish a SP that will allow you to specify custom mark size per legend item very soon.



Best Regards,
Nevron Support Team


Warwick Payten
Warwick Payten
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)
Group: Forum Members
Posts: 5, Visits: 1

Hi Is there a way to change the size of the marker in the legend.  There does not seem to be a method for this in Manual Legend Mode.

On the graph i am using the line.markerstyle.width  etc.,  to set the the size.   But the legend still has a large marker in it.

Thanks in advanced for any help.

Warwick

 

 

 

 

 

 

 


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search