dotnetCHARTING Send comments on this topic.
Template Property
See Also 
dotnetCHARTING Namespace > LegendBox Class : Template Property


Gets or sets the legend entry column layout of this legend box.

Syntax

Visual Basic (Declaration) 
Public Property Template As String
Visual Basic (Usage)Copy Code
Dim instance As LegendBox
Dim value As String
 
instance.Template = value
 
value = instance.Template
C# 
public string Template {get; set;}

Remarks

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"

See Also

© 2021 All Rights Reserved.