Method SetSimpleDialogResourceFont
SetSimpleDialogResourceFont(String, SimpleDialogFileLoadOptions)
Loads a font to be used for writing text in the simple dialog mode.
Declaration
Error SetSimpleDialogResourceFont(string fontPath, SimpleDialogFileLoadOptions loadOption)
Parameters
Type | Name | Description |
---|---|---|
System.String | fontPath | The path of the font to be loaded. |
SimpleDialogFileLoadOptions | loadOption | Influences which storage location is to be to searched first. If SelectExistingFileOnPad is chosen and the file exists in the filesystem of the device, the file is loaded from there. |
Returns
Type | Description |
---|---|
Error | Error |
Remarks
Loading files does not persist them in the filesystem of the device.
Examples
The example in CreateSimpleDialogText(String, Int32, Int32, Color, Color) loads an Arial font with size 20.