ClassCharacterProperties
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:
public class CharacterProperties
Inheritance: objectCharacterProperties
Constructors
CharacterProperties()
Initializes a new instance of the CharacterProperties class.
Declaration
public CharacterProperties()
Properties
BaselineAlignment
Gets or sets the baseline alignment.
Declaration
public BaselineAlignment BaselineAlignment { get; set; }
Property Value
The baseline alignment.
Font
Gets or sets the font.
FontSize
Gets or sets the size of the font.
Declaration
public double FontSize { get; set; }
Property Value
The size of the font.
ForegroundColor
Gets or sets the color of the foreground.
Declaration
public ColorBase ForegroundColor { get; set; }
Property Value
The color of the foreground.
HighlightColor
Gets or sets the color of the highlight.
Declaration
public ColorBase HighlightColor { get; set; }
Property Value
The color of the highlight.
StrikethroughColor
Gets or sets the color of the strikethrough.
Declaration
public ColorBase StrikethroughColor { get; set; }
Property Value
The color of the strikethrough.
StrikethroughPattern
Gets or sets the strikethrough pattern.
Declaration
public StrikethroughPattern StrikethroughPattern { get; set; }
Property Value
The strikethrough pattern.
UnderlineColor
Gets or sets the color of the underline.
Declaration
public ColorBase UnderlineColor { get; set; }
Property Value
The color of the underline.
UnderlinePattern
Gets or sets the underline pattern.
Declaration
public UnderlinePattern UnderlinePattern { get; set; }
Property Value
The underline pattern.
Methods
CopyPropertiesFrom(CharacterProperties)
Copies the properties from.
Declaration
public void CopyPropertiesFrom(CharacterProperties fromProperties)
Parameters
fromProperties
From properties.
TrySetFont(FontFamily)
Tries to set the current font.
Declaration
public bool TrySetFont(FontFamily fontFamily)
Parameters
fontFamily
The font family.
Returns
True if succeeded.
TrySetFont(FontFamily, FontStyle, FontWeight)
Tries to set the current font.
Declaration
public bool TrySetFont(FontFamily fontFamily, FontStyle fontStyle, FontWeight fontWeight)
Parameters
fontFamily
The font family.
fontStyle
The font style.
fontWeight
The font weight.
Returns
True if succeeded.