GoDigram for .NET Framework and .NET Core
Northwoods.Go.Instruments Namespace / GraduatedScale Class / GetLabelString Method
the double floating point number that is labeled
In This Topic
    GetLabelString Method
    In This Topic
    Returns the text string that a label marking the given value would contain.
    Syntax
    public virtual string GetLabelString( 
       double val
    )

    Parameters

    val
    the double floating point number that is labeled
    Remarks
    If the value of LabelChoices is non-null and non-empty, this method rounds the val value to an integer and uses that as an index into that LabelChoices list to get an object that is converted to a String to be returned. Otherwise this returns the string produced by formatting the value using LabelFormat. See also PaintLabel.
    See Also