SearchOption
Leave feedback
On this page
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.
| 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. |
| Method | Description |
|---|---|
| values() | |
| valueOf(String name) |
public static final SearchOption TOP_FOLDER_ONLY
Includes only the current folder in a search.
public static final SearchOption ALL_FOLDERS
Includes the current folder and all the subfolders in a search.
public static SearchOption[] values()
Returns: com.groupdocs.viewer.fonts.SearchOption[]
public static SearchOption valueOf(String name)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String |
Returns: SearchOption
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.