[Overview][Types][Classes][Procedures and functions][Index] | Reference for unit 'ShellCtrls' (#lcl)

# TCustomShellListView.Mask

File mask used to select items displayed in the shell control.

## Declaration

Source position: shellctrls.pas line 297

`public property TCustomShellListView.Mask : string read FMask write SetMask;`

## Description

Mask is a String property used to supply a mask which determines the file system objects displayed in the shell control. Mask can contain one or more mask values delimited by the Semicolon (';') character. For example:

    *.exe; br*.com; c??.*

Changing the value in Mask causes the Clear method to be called for the shell control. In addition, the Items property calls its Clear method to remove entries stored in the property. The PopulateWithRoot method is called to re-populate the shell control using the new mask value.

The value in Mask is passed as an argument to the GetFilesInDirectory helper routine which gets the file system objects displayed in the List View control.

Use MaskCaseSensitivity to specify the case sensitivity option used when matching file masks in the shell control.

## See also

TCustomShellListView.Items |  | Collection of list items displayed on the list view control.
TCustomShellListView.PopulateWithRoot |  | Fills the list view with file system information for the directory in Root.
TCustomShellListView.MaskCaseSensitivity |  | Case Sensitivity option enabled for file masks in the shell control.
TCustomListView.Clear |  | Clears the Items for the list view.