Platforms to show: All Mac Windows Linux Cross-Platform

FolderItem class

Type Topic Version
class Files
One of Xojo's base classes.

Handles access to files.

This class has no sub classes.

See also in the Xojo Language Reference

Release notes

  • Version 25.1
  • Version 24.3
    • Improved JSONMBS class conversion from variant to convert folderitem to native path, Date & DateTime to SQLDateTime or from JSONItem objects.
  • Version 23.5
  • Version 23.4
    • Added fallback for FontActivateMBS to use AddFontResourceW if AddFontResourceExW fails.
    • Fixed crash in XMLDocumentMBS constructor when passing folderitem pointing to a folder.
    • Fixed ReadFileMBS function when passing an offset.
  • Version 23.1
    • Added Offset and Length parameters for FolderItem.ReadFileMBS function.
  • Version 22.5
  • Version 22.0
    • Fixed a bug where some functions like GetWindowsColorProfileMBS returning a FolderItem cause an InvalidArgumentException when running on newer Xojo versions.
  • Version 21.5
    • Fixed code to return FolderItem in various functions on iOS.
  • Version 21.4
    • Added ReadFileMBS for reading file data into MemoryBlock.

Some useful global functions for this class:

  • CGNewPDFDocumentMBS(file as folderitem, MediaBox as CGRectMBS, title as string, author as string, creator as string, subject as string, keywords as string, OwnerPassword as string, UserPassword as string, AllowsPrinting as boolean, AllowsCopy as boolean, KeyLength as Integer) as CGPDFContextMBS
  • CombineBitCMYKtoCMYKMBS(dest as TiffPictureMBS, CyanChannel() as Integer, MagentaChannel() as Integer, YellowChannel() as Integer, BlackChannel() as Integer, Files() as FolderItem, scale as Double, width as Integer, height as Integer, X1 as Integer, Y1 as Integer, X2 as Integer, Y2 as Integer, CacheSizeRead as Integer) as Integer
  • CombineBitCMYKtoRGBMBS(CyanChannel() as Integer, MagentaChannel() as Integer, YellowChannel() as Integer, BlackChannel() as Integer, Files() as FolderItem, scale as Double, width as Integer, height as Integer, X1 as Integer, Y1 as Integer, X2 as Integer, Y2 as Integer, byref output as picture, CacheSizeRead as Integer) as Integer
  • FolderItemToPathMBS(file as folderitem) as string
  • GetWindowsColorProfileMBS as folderitem
  • GetWindowsDisplayColorProfileMBS(DisplayIndex as Integer) as folderitem
  • LaunchServicesFindApplicationForInfoMBS(creator as string, bundleID as string, name as string) as folderitem
  • NewCFURLMBSFile(f as folderitem) as CFURLMBS
  • Split1BitFileMBS(f as folderitem, fc as folderitem, fm as folderitem, fy as folderitem, fk as folderitem, width as Integer, height as Integer, CallbackTarget as object, CacheSizeRead as Integer, CacheSizeWrite as Integer) as Integer
  • VolResolveIDMBS(volume as FolderItem, id as Integer) as FolderItem

Some methods using this class:

Some properties using for this class:

Some events using this class:

Some related classes:


The items on this page are in the following plugins: MBS Images Plugin, MBS MacCF Plugin, MBS MacCG Plugin, MBS MacClassic Plugin, MBS MacCloud Plugin, MBS MacFrameworks Plugin, MBS MacOSX Plugin, MBS Picture Plugin, MBS Util Plugin, MBS Win Plugin.


FolderChangedNotificationMBS   -   FSEventsMBS


The biggest plugin in space...