Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot Namespace / Legend Class / Legend Constructor / Legend Constructor(Double,Double,String,String,Point,Size,Boolean,Boolean,Boolean,String,Color,Color,Color,Color[],Boolean)
Minimum value
Maximum value
Title
Subtitle
Top left corner position
Size of each color rectangle
If true, the legend minimum and maximum values are set automatically (FEM only)
Visibility status
If true, values are aligned right
Value's numeric format
Text background color
Title text color
Value text color
Color table
When false, the UI element is drawn with a flat color.

In This Topic
    Legend Constructor(Double,Double,String,String,Point,Size,Boolean,Boolean,Boolean,String,Color,Color,Color,Color[],Boolean)
    In This Topic
    Standard constructor.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal min As Double, _
       ByVal max As Double, _
       ByVal title As String, _
       ByVal subtitle As String, _
       ByVal position As Point, _
       ByVal itemSize As Size, _
       ByVal slave As Boolean, _
       ByVal visible As Boolean, _
       ByVal alignRight As Boolean, _
       ByVal formatString As String, _
       ByVal textBackgroundColor As Color, _
       ByVal titleColor As Color, _
       ByVal textColor As Color, _
       ByVal colorTable() As Color, _
       ByVal lighting As Boolean _
    )
    public Legend( 
       double min,
       double max,
       string title,
       string subtitle,
       Point position,
       Size itemSize,
       bool slave,
       bool visible,
       bool alignRight,
       string formatString,
       Color textBackgroundColor,
       Color titleColor,
       Color textColor,
       Color[] colorTable,
       bool lighting
    )

    Parameters

    min
    Minimum value
    max
    Maximum value
    title
    Title
    subtitle
    Subtitle
    position
    Top left corner position
    itemSize
    Size of each color rectangle
    slave
    If true, the legend minimum and maximum values are set automatically (FEM only)
    visible
    Visibility status
    alignRight
    If true, values are aligned right
    formatString
    Value's numeric format
    textBackgroundColor
    Text background color
    titleColor
    Title text color
    textColor
    Value text color
    colorTable
    Color table
    lighting
    When false, the UI element is drawn with a flat color.
    See Also