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

Provides methods for getting and setting font properties.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

C#
public interface IFontPropertiesEditor

Methods

Applies the font family.

C#
void ApplyFontFamily(ThemableFontFamily fontFamily)
Parameters:fontFamilyThemableFontFamily

The font family.

Applies the size of the font.

C#
void ApplyFontSize(double fontSize)
Parameters:fontSizedouble

Size of the font.

Applies the foreground color.

C#
void ApplyForeColor(ThemableColor foreColor)
Parameters:foreColorThemableColor

The foreground color.

Applies the bold state.

C#
void ApplyIsBold(bool isBold)
Parameters:isBoldbool

The bold state.

Applies the italic state.

C#
void ApplyIsItalic(bool isItalic)
Parameters:isItalicbool

The italic state.

Applies the strikethrough state.

C#
void ApplyIsStrikethrough(bool isStrikethrough)
Parameters:isStrikethroughbool

The strikethrough state.

Applies the type of the underline.

C#
void ApplyUnderlineType(UnderlineType underlineType)
Parameters:underlineTypeUnderlineType

Type of the underline.

Applies the vertical text alignment.

C#
void ApplyVerticalTextAlignment(VerticalTextAlignment verticalTextAlignment)
Parameters:verticalTextAlignmentVerticalTextAlignment

The vertical text alignment.

Tries to get the font family.

C#
bool TryGetFontFamily(out ThemableFontFamily fontFamily)
Parameters:fontFamilyThemableFontFamily

The font family.

Returns:

bool

If the operation is successful.

Tries to get the font size.

C#
bool TryGetFontSize(out double fontSize)
Parameters:fontSizedouble

The font size.

Returns:

bool

If the operation is successful.

Tries to get the foreground color.

C#
bool TryGetForeColor(out ThemableColor foreColor)
Parameters:foreColorThemableColor

The foreground color.

Returns:

bool

If the operation is successful.

Tries to get the bold state.

C#
bool TryGetIsBold(out bool isBold)
Parameters:isBoldbool

The bold state.

Returns:

bool

If the operation is successful.

Tries to get the italic state.

C#
bool TryGetIsItalic(out bool isItalic)
Parameters:isItalicbool

The italic state.

Returns:

bool

If the operation is successful.

Tries to get the strikethrough state.

C#
bool TryGetIsStrikethrough(out bool isStrikethrough)
Parameters:isStrikethroughbool

The strikethrough state.

Returns:

bool

If the operation is successful.

Tries to get the underline type.

C#
bool TryGetUnderlineType(out UnderlineType underlineType)
Parameters:underlineTypeUnderlineType

The underline type.

Returns:

bool

If the operation is successful.

Tries to get the vertical text alignment.

C#
bool TryGetVerticalTextAlignment(out VerticalTextAlignment verticalTextAlignment)
Parameters:verticalTextAlignmentVerticalTextAlignment

The vertical text alignment.

Returns:

bool

If the operation is successful.