Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Graphics Namespace / RenderContextUtility Class / AreEqual Method
The first color (WinForms) or brush (WPF) object
The second color

In This Topic
    AreEqual Method (RenderContextUtility)
    In This Topic
    Method unified between WinForms and WPF that checks the equality between a System.Drawing.Color (WinForms) or System.Windows.Media.Brush (WPF) object and another System.Drawing.Color object.
    Syntax
    'Declaration
     
    Public Shared Function AreEqual( _
       ByVal color1 As Color, _
       ByVal color2 As Color _
    ) As Boolean
    public static bool AreEqual( 
       Color color1,
       Color color2
    )

    Parameters

    color1
    The first color (WinForms) or brush (WPF) object
    color2
    The second color

    Return Value

    True if they are equal, false elsewise.
    See Also