Generate HTML for TOC as a legend. All enabled child nodes will be expanded so the swatches will appear along with textual representation.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim map As Map
Dim hiddenResources As List(Of String)
Dim separator As String
Dim condensed As Boolean
Dim columns As Integer
Dim columnThreshold As Integer
Dim legendFontSize As Integer
Dim legendPageSize As Double
Dim value As String
value = Toc.RenderLegendHtml(map, hiddenResources, separator, condensed, columns, columnThreshold, legendFontSize, legendPageSize) |
Parameters
- map
- Map control that determines map resources and layers.
- hiddenResources
- List of map resources to hide from the legend.
- separator
- String used as a separator between subelements of a resource/layer serialization.
- condensed
- Whether to render legend in condensed mode.
- columns
- How many columns to use for rendering the legend.
- columnThreshold
- The number of swatch elements that must appear when the layer swatches span multiple columns.
- legendFontSize
- The size in pixels of the font to use when rendering the legend text.
- legendPageSize
- The size in inches of the width of the page to be used when rendering the legend.
Return Value
HTML string representing TOC as a legend.
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also