Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NImageFormat Class / GetFileTypes Method / GetFileTypes(Boolean,Boolean) Method
Indicates whether to get the file types for reading or for writing.


In This Topic
    GetFileTypes(Boolean,Boolean) Method
    In This Topic
    Gets an array that describes the allowed file formats for open/save file dialogs. All registered image formats are included.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetFileTypes( _
       ByVal forReading As System.Boolean, _
       ByVal includeMetafileFormats As System.Boolean _
    ) As NFileDialogFileType()
    'Usage
     
    
    Dim forReading As System.Boolean
    Dim includeMetafileFormats As System.Boolean
    Dim value() As NFileDialogFileType
     
    value = NImageFormat.GetFileTypes(forReading, includeMetafileFormats)
    public static NFileDialogFileType[] GetFileTypes( 
       System.bool forReading,
       System.bool includeMetafileFormats
    )

    Parameters

    forReading
    Indicates whether to get the file types for reading or for writing.
    includeMetafileFormats

    Return Value

    An aray of items that describe the allowed file formats.
    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