Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NScreen Class / GetScreenFromRect Method


In This Topic
    GetScreenFromRect Method
    In This Topic
    Gets the screen that is nearest to the specified rectangle.
    Syntax
    'Declaration
     
    
    Public Shared Function GetScreenFromRect( _
       ByVal rect As NRectangle, _
       ByVal defaultMode As ENDefaultScreenMode _
    ) As NScreen
    'Usage
     
    
    Dim rect As NRectangle
    Dim defaultMode As ENDefaultScreenMode
    Dim value As NScreen
     
    value = NScreen.GetScreenFromRect(rect, defaultMode)
    public static NScreen GetScreenFromRect( 
       NRectangle rect,
       ENDefaultScreenMode defaultMode
    )

    Parameters

    rect
    defaultMode
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also