Click or drag to resize

IMcImageSetFilesGetAllFileFormats Method

Method used to query for installed File Formats in a certain Access Mode.

Namespace:  MediaCy.IQL.Sets.IO
Assembly:  MediaCy.IQL.Sets.IO (in MediaCy.IQL.Sets.IO.dll) Version: 10.0.6912.0
Syntax
VB
Function GetAllFileFormats ( 
	Mode As mcsfmSetFileMode,
	<OutAttribute> ByRef extensions As Object,
	<OutAttribute> ByRef descriptions As Object
) As Integer

Parameters

Mode
Type: MediaCy.IQL.Sets.IOmcsfmSetFileMode
extensions
Type: SystemObject
descriptions
Type: SystemObject

Return Value

Type: Int32
LONG indicating the number of values in the safearrays
Remarks
This method is used by the Open dialog boxes to populate the File Formats drop down box (generally Save As dialog boxes will use the GetCompatibleFileFormats method). The method does not instantiate any set classes. The extensions and descriptions arrays have a 1-1 relationship so that descriptions(n) contains the description for the Stream with extension extensions(n).
Examples
VB
Dim extensions as Variant
Dim descriptions as Variant
Images.File.GetAllFileFormats(mcSTREAM_READ, extensions, descriptions)
' Print out the first extension and it's description
Debug.Print "Extension " & extensions(0) & ", Name " & descriptions(0)
' Print out the last extensions and it's description
Debug.Print "Extension " & extensions(ReturnValue-1) & ", Name " & descriptions(0)
See Also