Gets or sets the formatting style name at the current input position. If text is selected, the property specifies the style of the whole selected text.


public string StyleName { get; set; }
Public Property StyleName() As String


The property returns null when the text selection contains multiple characters with different styles.