RichTextBox for WPF | ComponentOne
C1.WPF.RichTextBox.Documents Namespace / C1TextRange Class / FontStyle Property

In This Topic
    FontStyle Property (C1TextRange)
    In This Topic
    Gets or sets the font style of the runs in the range.
    Syntax
    'Declaration
     
    
    Public Property FontStyle As Nullable(Of FontStyle)
    public Nullable<FontStyle> FontStyle {get; set;}
    Remarks
    When the range is empty, setting this property changes the FontStyle of the text to be written and getting this property returns the format of the of the text to be written. When the selection is not empty, getting this property returns the format of the selection, or null if the selection has mixed format.
    See Also