New to Telerik UI for WinFormsStart a free 30-day trial

Defines font styling properties for cell text including family, size, weight, style, color, and underline.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

C#
public interface IFontProperties

Derived Classes: FontProperties

Properties

Gets the typeface family applied to the text.

C#
FontFamily FontFamily { get; }
Property Value:

The font family.

Gets the font size in points.

C#
double FontSize { get; }
Property Value:

The size of the font.

Gets the style variant of the font, such as normal or italic.

C#
FontStyle FontStyle { get; }
Property Value:

The font style.

Gets the numeric weight of the font, controlling thickness from light to heavy.

C#
FontWeight FontWeight { get; }
Property Value:

The font weight.

Gets the text color, supporting theme colors or explicit RGB values.

C#
ThemableColor ForeColor { get; }
Property Value:

The font color.

Gets whether the text uses bold weight rendering.

C#
bool IsBold { get; }
Property Value:

The value indicating whether the font is bold.

Gets whether the text uses italic slant styling.

C#
bool IsItalic { get; }
Property Value:

The value indicating whether the font is italic.

Gets whether the font uses fixed-width character spacing.

C#
bool IsMonospaced { get; }
Property Value:

The value indicating whether the text is monospaced.

Gets whether the text has strikethrough decoration applied.

C#
bool IsStrikethrough { get; }
Property Value:

The value indicating whether the font is strikethrough.

Gets the underline style applied to the text.

C#
UnderlineType Underline { get; }
Property Value:

The underline.

Gets the vertical text alignment (none, superscript, or subscript) applied to the text.

C#
VerticalTextAlignment VerticalTextAlignment { get; }
Property Value:

The vertical text alignment.