menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SelectionCharacterFormat - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SelectionCharacterFormat

    Represents the SelectionCharacterFormat class.

    Inheritance
    System.Object
    SelectionCharacterFormat
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Controls.RichTextBoxAdv
    Assembly: Syncfusion.SfRichTextBoxAdv.WPF.dll
    Syntax
    public class SelectionCharacterFormat : INotifyPropertyChanged

    Properties

    BaselineAlignment

    Gets or Sets the BaselineAlignment of the SelectionAdv.

    Declaration
    public BaselineAlignment? BaselineAlignment { get; set; }
    Property Value
    Type Description
    System.Nullable<BaselineAlignment>

    The BaselineAlignment of the SelectionAdv.

    See Also
    CharacterFormat
    SelectionAdv

    Bold

    Gets or sets a value indicating whether the content in SelectionAdv is bold.

    Declaration
    public bool? Bold { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>

    True, if the content in SelectionAdv is bold. Otherwise False.

    See Also
    CharacterFormat
    SelectionAdv

    FontColor

    Gets or sets the font color of the SelectionAdv.

    Declaration
    public Color? FontColor { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Windows.Media.Color>

    The font color of the SelectionAdv.

    See Also
    CharacterFormat
    SelectionAdv

    FontFamily

    Gets or sets the FontFamily of the SelectionAdv.

    Declaration
    public FontFamily FontFamily { get; set; }
    Property Value
    Type Description
    System.Windows.Media.FontFamily

    The FontFamily of the SelectionAdv.

    See Also
    CharacterFormat
    SelectionAdv

    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
    CharacterFormat
    SelectionAdv

    HighlightColor

    Gets or Sets the HighlightColor of the SelectionAdv.

    Declaration
    public HighlightColor? HighlightColor { get; set; }
    Property Value
    Type Description
    System.Nullable<HighlightColor>

    The HighlightColor of the SelectionAdv.

    See Also
    CharacterFormat
    SelectionAdv

    Italic

    Gets or sets a value indicating whether the content in SelectionAdv is italicized.

    Declaration
    public bool? Italic { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>

    True, if the content in SelectionAdv is italicized. Otherwise False.

    See Also
    CharacterFormat
    SelectionAdv

    StrikeThrough

    Gets or Sets the StrikeThrough of the SelectionAdv.

    Declaration
    public StrikeThrough? StrikeThrough { get; set; }
    Property Value
    Type Description
    System.Nullable<StrikeThrough>

    The StrikeThrough of the SelectionAdv.

    See Also
    CharacterFormat
    SelectionAdv

    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 Underline? Underline { get; set; }
    Property Value
    Type Description
    System.Nullable<Underline>

    The Underline of the SelectionAdv.

    See Also
    CharacterFormat
    SelectionAdv

    Events

    PropertyChanged

    Occurs when a property value changes.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved