.netCHARTING v10.7 Documentation


Template Property
Gets or sets the legend entry column layout of this legend box.
Syntax
'Declaration
 
Public Property Template As String
'Usage
 
Dim instance As LegendBox
Dim value As String
 
instance.Template = value
 
value = instance.Template
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"

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also