GridFont
public readonly struct GridFont
Namespace SharpCell.Grid · package SharpCell.Grid
A font to draw text with; the size is in pixels, not points.
Constructors
GridFont(string, double, bool, bool, bool, bool)
public GridFont(string Family, double Size, bool Bold = false, bool Italic = false, bool Underline = false, bool Strikethrough = false)
A font to draw text with; the size is in pixels, not points.
Parameters
Family: The font family, such asCalibri; a canvas falls back to its own font when the family is missing.Size: The size in device-independent pixels: 11 points are 14.67 pixels at 96 DPI.Bold: Bold text.Italic: Italic text.Underline: Underlined text.Strikethrough: Text struck through.
Properties
Bold
public bool Bold { get; init; }
Bold text.
Family
public string Family { get; init; }
The font family, such as Calibri; a canvas falls back to its own font when the family is missing.
Italic
public bool Italic { get; init; }
Italic text.
Size
public double Size { get; init; }
The size in device-independent pixels: 11 points are 14.67 pixels at 96 DPI.
Strikethrough
public bool Strikethrough { get; init; }
Text struck through.
Underline
public bool Underline { get; init; }
Underlined text.