GoDiagram Web Reference
LabelChoices Property

Gets or sets a list of labels to use for integral values starting at zero.
Syntax
'Declaration
 
<CategoryAttribute("Appearance")>
<DescriptionAttribute("The list of labels")>
Public Overridable Property LabelChoices As IList
[CategoryAttribute("Appearance")]
[DescriptionAttribute("The list of labels")]
public virtual IList LabelChoices {get; set;}

Property Value

By default this is null, so GetLabelString will just format the value. This value can be shared by multiple instances of a GraduatedScale.
Remarks

This property makes it easy to use a scale to display a range of non-numerical values for the labels. Just set this property and then set scale.Maximum = scale.LabelChoices.Count-1 and scale.TickMajorFrequency = 1.

Modifying the items in the list is not controlled. Any such changes are not recorded by the undo manager. Only replacing the list is recorded for undo/redo, and even then, it is only the reference to an IList that is remembered and restored.

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

Reference

GraduatedScale Class
GraduatedScale Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback