Class
CharacterProperties

Defines a set of properties which will be applied when an inline is created.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.Editing.Flow

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

cs-api-definition
public class CharacterProperties

Inheritance: objectCharacterProperties

Constructors

CharacterProperties()

Initializes a new instance of the CharacterProperties class.

Declaration

cs-api-definition
public CharacterProperties()

Properties

BaselineAlignment

Gets or sets the baseline alignment.

Declaration

cs-api-definition
public BaselineAlignment BaselineAlignment { get; set; }

Property Value

BaselineAlignment

The baseline alignment.

Font

Gets or sets the font.

Declaration

cs-api-definition
public FontBase Font { get; set; }

Property Value

FontBase

The font.

FontSize

Gets or sets the size of the font.

Declaration

cs-api-definition
public double FontSize { get; set; }

Property Value

double

The size of the font.

ForegroundColor

Gets or sets the color of the foreground.

Declaration

cs-api-definition
public ColorBase ForegroundColor { get; set; }

Property Value

ColorBase

The color of the foreground.

HighlightColor

Gets or sets the color of the highlight.

Declaration

cs-api-definition
public ColorBase HighlightColor { get; set; }

Property Value

ColorBase

The color of the highlight.

StrikethroughColor

Gets or sets the color of the strikethrough.

Declaration

cs-api-definition
public ColorBase StrikethroughColor { get; set; }

Property Value

ColorBase

The color of the strikethrough.

StrikethroughPattern

Gets or sets the strikethrough pattern.

Declaration

cs-api-definition
public StrikethroughPattern StrikethroughPattern { get; set; }

Property Value

StrikethroughPattern

The strikethrough pattern.

UnderlineColor

Gets or sets the color of the underline.

Declaration

cs-api-definition
public ColorBase UnderlineColor { get; set; }

Property Value

ColorBase

The color of the underline.

UnderlinePattern

Gets or sets the underline pattern.

Declaration

cs-api-definition
public UnderlinePattern UnderlinePattern { get; set; }

Property Value

UnderlinePattern

The underline pattern.

Methods

CopyPropertiesFrom(CharacterProperties)

Copies the properties from.

Declaration

cs-api-definition
public void CopyPropertiesFrom(CharacterProperties fromProperties)

Parameters

fromProperties

CharacterProperties

From properties.

TrySetFont(FontFamily)

Tries to set the current font.

Declaration

cs-api-definition
public bool TrySetFont(FontFamily fontFamily)

Parameters

fontFamily

FontFamily

The font family.

Returns

bool

True if succeeded.

TrySetFont(FontFamily, FontStyle, FontWeight)

Tries to set the current font.

Declaration

cs-api-definition
public bool TrySetFont(FontFamily fontFamily, FontStyle fontStyle, FontWeight fontWeight)

Parameters

fontFamily

FontFamily

The font family.

fontStyle

FontStyle

The font style.

fontWeight

FontWeight

The font weight.

Returns

bool

True if succeeded.