FontSettings Class
Contains font related settings which are used when printing a spreadsheet or exporting a spreadsheet to a file format that requires font information.
- Inheritance:
- System.ObjectFontSettings
Remarks
Setting the custom fonts location is usually used in environments without any installed fonts or in medium trust environments to bypass file system operations restrictions imposed for file locations that are not under the application's jurisdiction.
For more information, see the Private Fonts example.
Properties
Fonts
Gets all the fonts loaded in the current application domain that are usable with GemBox.Spreadsheet component.
public static IList<FontFile> Fonts { get; }
Public Shared ReadOnly Property Fonts As IList(Of FontFile)
Property Value
- System.Collections.Generic.IList<FontFile>
All the fonts loaded in the current application domain that are usable with GemBox.Spreadsheet component.
FontsBaseDirectory
Gets or sets the base directory path where component looks for fonts. Directory path can be absolute or relative to System.IO.Directory.GetCurrentDirectory.
public static string FontsBaseDirectory { get; set; }
Public Shared Property FontsBaseDirectory As String
Property Value
- System.String
The base directory path where component looks for fonts.
FontsBaseResourceLocation
Gets or sets the base resource location where component looks for fonts specified as resources inside the local or referenced assembly.
public static string FontsBaseResourceLocation { get; set; }
Public Shared Property FontsBaseResourceLocation As String
Property Value
- System.String
The base resource location where component looks for fonts specified as resources inside the local or referenced assembly.
See Also
FontsBaseUri
Gets or sets the base System.Uri where component looks for fonts. System.Uri path should end with System.IO.Path.DirectorySeparatorChar or System.IO.Path.AltDirectorySeparatorChar.
Property Value
- System.Uri
The base System.Uri where component looks for fonts.
Events
FontSelection
Occurs when the FontFile must be selected based on the font name, style and weight used in the spreadsheet and when the fallback font must be selected (if the current FontFile does not contain outlines for the Character).
public static event EventHandler<FontFileSelectionEventArgs> FontSelection
Public Shared Event FontSelection As EventHandler(Of FontFileSelectionEventArgs)
Event Type
- System.EventHandler<FontFileSelectionEventArgs>