SearchOption
Contents
[
Hide
]
Inheritance: java.lang.Object, java.lang.Enum
public enum SearchOption extends Enum<SearchOption>
Specifies whether to search the current folder, or the current folder and all subfolders.
The SearchOption enum is used to specify the scope of font search operation in the GroupDocs.Viewer API.
Example usage:
FontSettings.setFontSources(new FolderFontSource("/path/to/fonts/folder", SearchOption.ALL_FOLDERS));
Note: This enum is typically used to specify strategy of searching fonts in provided directory.
Fields
Field | Description |
---|---|
TOP_FOLDER_ONLY | Includes only the current folder in a search. |
ALL_FOLDERS | Includes the current folder and all the subfolders in a search. |
Methods
Method | Description |
---|---|
values() | |
valueOf(String name) |
TOP_FOLDER_ONLY
public static final SearchOption TOP_FOLDER_ONLY
Includes only the current folder in a search.
ALL_FOLDERS
public static final SearchOption ALL_FOLDERS
Includes the current folder and all the subfolders in a search.
values()
public static SearchOption[] values()
Returns: com.groupdocs.viewer.fonts.SearchOption[]
valueOf(String name)
public static SearchOption valueOf(String name)
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String |
Returns: SearchOption