Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NWidget Class / FromObject Method


In This Topic
    FromObject Method (NWidget)
    In This Topic
    Creates or gets the widget from an object. You can pass the following object types to this method:

    1. NWidget - returns the NWidget itself.

    2. NImage - returns a NImageBox that contains the NImage.

    3. Any other non null object - returns an NLabel the text of which is the text representation of the object.

    Syntax
    'Declaration
     
    
    Public Shared Function FromObject( _
       ByVal obj As System.Object _
    ) As NWidget
    'Usage
     
    
    Dim obj As System.Object
    Dim value As NWidget
     
    value = NWidget.FromObject(obj)
    public static NWidget FromObject( 
       System.object obj
    )

    Parameters

    obj
    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