Map legends - is it possible to change the border / remove the title etc.


Map legends - is it possible to change the border / remove the title...
Author
Message
Kevin Harrison 1
Kevin Harrison 1
Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)
Group: Forum Members
Posts: 176, Visits: 1.9K

It seems that the legend created for maps is very fixed in its appearance, completely unlike legends for charts. We frequently create Reports where maps and charts are displayed side-by-side, so the inconsistency between the legend formatting becomes quite obvious (we prefer our chart legends to have no borders and have the same background as the rest of the chart area).

Is there some way to control the map legend appearance that I have missed?

Thanks

Kevin


Reply
Kevin Harrison 1
Kevin Harrison 1
Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)
Group: Forum Members
Posts: 176, Visits: 1.9K

Sorry, I have no idea what you mean. The code I am using is:

 

NMapLegendRange mapLegend = (NMapLegendRange)nevronMap.GetLegend(fillRuleRange);

mapLegend.Title = this.MapDefinition.LegendTitle;

mapLegend.RangeFormatString = "<= {1:" + numberStringFormat + "}";

mapLegend.LastFormatString = "> {0:" + numberStringFormat + "}";

Panel legendControl = new Panel();

legendControl.Name = LegendPanelControlName;

legendControl.Dock = DockStyle.Top;

 

// Create the legend

mapLegend.Create((Panel)legendControl);

 

There seems to be no way for me to change the appearance of the legend, just call Create()


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