Class SelectionCharacterFormat
Represents the SelectionCharacterFormat class.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.UWP.dll
Syntax
public class SelectionCharacterFormat : Object, INotifyPropertyChanged
Properties
BaselineAlignment
Gets or Sets the BaselineAlignment of the SelectionAdv.
Declaration
public Nullable<BaselineAlignment> BaselineAlignment { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<BaselineAlignment> | The BaselineAlignment of the SelectionAdv. |
See Also
Bold
Gets or sets a value indicating whether the content in SelectionAdv is bold.
Declaration
public Nullable<bool> Bold { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | True, if the content in SelectionAdv is bold. Otherwise False. |
See Also
FontColor
Gets or sets the font color of the SelectionAdv.
Declaration
public Nullable<Color> FontColor { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Windows.UI.Color> | The font color of the SelectionAdv. |
See Also
FontFamily
Gets or sets the FontFamily of the SelectionAdv.
Declaration
public FontFamily FontFamily { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Media.FontFamily | The FontFamily of the SelectionAdv. |
See Also
FontSize
Gets or Sets the font size of the SelectionAdv.
Declaration
public double FontSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The font size of the SelectionAdv. |
Remarks
Microsoft Word file format maintains the font size in below behavior,
1. Converts the font size to point unit.
2. Multiplies the font size value by 2 and round off to integer.
So the font size are automatically converted to Microsoft Word standard value in single decimal place when applying font size. For example, the font size 17 pixel is automatically converted to 17.3 pixel (13 point Microsoft Word standard format) and then applied to the selected text.
This automatic conversion of font size value, resolves the conflict in font size while saving as DOCX file and opening it again. Since we can't customize Microsoft Word file format standards (writing invalid decimal font size value in a DOCX file will corrupt the file and the file will not open in Microsoft Word).
See Also
HighlightColor
Gets or Sets the HighlightColor of the SelectionAdv.
Declaration
public Nullable<HighlightColor> HighlightColor { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<HighlightColor> | The HighlightColor of the SelectionAdv. |
See Also
Italic
Gets or sets a value indicating whether the content in SelectionAdv is italicized.
Declaration
public Nullable<bool> Italic { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | True, if the content in SelectionAdv is italicized. Otherwise False. |
See Also
StrikeThrough
Gets or Sets the StrikeThrough of the SelectionAdv.
Declaration
public Nullable<StrikeThrough> StrikeThrough { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<StrikeThrough> | The StrikeThrough of the SelectionAdv. |
See Also
StyleName
Gets the character style name.
Declaration
public string StyleName { get; set; }
Property Value
Type |
---|
System.String |
Underline
Gets or Sets the Underline of the SelectionAdv.
Declaration
public Nullable<Underline> Underline { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Underline> | The Underline of the SelectionAdv. |
See Also
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |