GoDigram for .NET Framework and .NET Core
Northwoods.Go.Instruments Namespace / GraduatedScale Class / LabelChoices Property
In This Topic
    LabelChoices Property
    In This Topic
    Gets or sets a list of labels to use for integral values starting at zero.
    Syntax
    [Category("Appearance")]
    [Description("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.

    See Also