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

Represents the context of the FormatFontDialog

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

C#
public class FormatFontDialogContext : RadSpreadsheetDialogContext, IFontTabContext, IFormatCellsTabContext

Inheritance: objectRadSpreadsheetDialogContextFormatFontDialogContext

Implements: IFontTabContextIFormatCellsTabContext

Inherited Members RadSpreadsheetDialogContext.RadSpreadsheetRadSpreadsheetDialogContext.Owner

Constructors

Initializes a new instance of the FormatFontDialogContext class.

C#
public FormatFontDialogContext(RadSpreadsheet radSpreadSheet, IFontPropertiesEditor editor, ThemableFontFamily defaultFontFamily, double defaultFontSize)
Parameters:radSpreadSheetRadSpreadsheet

The RadSpreadsheet.

editorIFontPropertiesEditor

The editor.

defaultFontFamilyThemableFontFamily

The default font family.

defaultFontSizedouble

Default size of the font.

Properties

FontFamily

ThemableFontFamily

Gets or sets the font family.

C#
public ThemableFontFamily FontFamily { get; set; }
Property Value:

The font family.

Implements: IFontTabContext.FontFamily

Gets or sets the size of the font.

C#
public double FontSize { get; set; }
Property Value:

The size of the font.

Implements: IFontTabContext.FontSize

ForeColor

ThemableColor

Gets or sets the forecolor.

C#
public ThemableColor ForeColor { get; set; }
Property Value:

The forecolor.

Implements: IFontTabContext.ForeColor

Gets or sets a value indicating whether the selection is bold.

C#
public bool IsBold { get; set; }
Property Value:

The value indicating whether the selection is bold.

Implements: IFontTabContext.IsBold

Gets or sets a value indicating whether the selection is italic.

C#
public bool IsItalic { get; set; }
Property Value:

The value indicating whether the selection is italic.

Implements: IFontTabContext.IsItalic

Gets or sets a value indicating whether the selection has strikethrough.

C#
public bool IsStrikethrough { get; set; }
Property Value:

The value indicating whether the selection has strikethrough.

Implements: IFontTabContext.IsStrikethrough

Underline

UnderlineType

Gets or sets the underline.

C#
public UnderlineType Underline { get; set; }
Property Value:

The underline.

Implements: IFontTabContext.Underline

VerticalTextAlignment

VerticalTextAlignment

Gets or sets the vertical text alignment (baseline, superscript, or subscript).

C#
public VerticalTextAlignment VerticalTextAlignment { get; set; }
Property Value:

The vertical text alignment.

Implements: IFontTabContext.VerticalTextAlignment

Visibility

Visibility

Gets or sets the visibility.

C#
public Visibility Visibility { get; set; }
Property Value:

The visibility.

Implements: IFormatCellsTabContext.Visibility

Methods

Applies the changes from context.

C#
public void ApplyChangesFromContext()

Implements: IFormatCellsTabContext.ApplyChangesFromContext()