Visual Basic (Declaration) | |
---|---|
Public Property Template As String |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public string Template {get; set;} |
Three tokens native to the legend box are:
%Icon
- Draws a LegendEntry object's icon (LegendEntry.Marker).%Name
- Writes the legend entry's name (LegendEntry.Name).%Value
- Writes the legend entry's value (LegendEntry.Value).
NOTE: Legend entry properties like LegendEntry.Name can contain tokens used with the object the legend entry represents.
Some examples of properly formed templates are:LegendBox.Template = "%Icon%Name%Value"
LegendBox.Template = "%Name%Icon"