Gets or sets the bullet character at the current input position. If text is selected, the property specifies the bullet character of the whole selected text.

Syntax

public char? BulletCharacter { get; set; }
Public Property BulletCharacter() As Nullable(Of Char)

Examples

The following XAML example shows how to bind the BulletCharacter property to a checkable menu item showing a diamond shaped bullet using the WPF.BooleanConverter class. (For other possible bullet characters see character codes of the "Symbol" font)

…
xmlns:tx="clr-namespace:TXTextControl.WPF;assembly=TXTextControl.WPF"
…
<Window.Resources>
    <tx:BooleanConverter x:Key="boolConv" />
</Window.Resources>
…
<MenuItem
    Header="&#x00A8;"
    FontFamily="Symbol"
    IsCheckable="True"
    IsChecked="{Binding
        ElementName=textControl1,
        Path=InputFormat.BulletCharacter,
        Converter={StaticResource boolConv},
        ConverterParameter=&#x00A8;}" />

Remarks

The property returns null when the text selection contains several lists with different bullet characters.