Limitations
Read only.
Returns an array of the names of all formatting styles, the document contains. This property can be used to fill a combo box or a menu.
public string[] StyleNames { get; }
Public ReadOnly Property StyleNames() As String()
The following XAML example shows how to bind the Style
<ComboBox
Width="200"
IsEditable="True"
IsReadOnly="True"
Text="{Binding ElementName=textControl1, Path=InputFormat.StyleName}"
ItemsSource="{Binding ElementName=textControl1, Path=InputFormat.StyleNames}" />
Read only.