Nevron Open Vision Documentation
Nevron.Nov.Editors Namespace / NEditorWindow Class / CreateForType<T> Method
The type to create an editor window for. This should be a type that derives from NNode.
The node this editor should edit.
Editor context (can be null)
The parent window.
Specifies whether the edited value can be set to null or not.
The function to call if the user clicks the OK button of the editor window. Pass null if you are not interested in this event.


In This Topic
    CreateForType<T> Method
    In This Topic
    Creates an editor window for the type of the given node. If the type has derived types, the user will be able to select a derived type and edit an instance of this type.
    Syntax
    'Declaration
     
    
    Public Shared Function CreateForType(Of T As NNode)( _
       ByVal node As T, _
       ByVal context As NEditorContext, _
       ByVal parentWindow As NWindow, _
       ByVal nullable As System.Boolean, _
       ByVal onOkClicked As Nevron.Nov.Function(Of T) _
    ) As NEditorWindow
    'Usage
     
    
    Dim node As T
    Dim context As NEditorContext
    Dim parentWindow As NWindow
    Dim nullable As System.Boolean
    Dim onOkClicked As Nevron.Nov.Function(Of T)
    Dim value As NEditorWindow
     
    value = NEditorWindow.CreateForType(Of T)(node, context, parentWindow, nullable, onOkClicked)
    public static NEditorWindow CreateForType<T>( 
       T node,
       NEditorContext context,
       NWindow parentWindow,
       System.bool nullable,
       Nevron.Nov.Function<T> onOkClicked
    )
    where T: NNode

    Parameters

    node
    The node this editor should edit.
    context
    Editor context (can be null)
    parentWindow
    The parent window.
    nullable
    Specifies whether the edited value can be set to null or not.
    onOkClicked
    The function to call if the user clicks the OK button of the editor window. Pass null if you are not interested in this event.

    Type Parameters

    T
    The type to create an editor window for. This should be a type that derives from NNode.

    Return Value

    An editor window for the type of the given node.
    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