BulletCharacter Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Gets or sets the symbol character for a bulleted list. It must be a value from the Windows Symbol character set.
Syntax
public char BulletCharacter { get; set; }Public Property BulletCharacter As CharExamples
The following example applies BulletCharacter while converting three selected paragraphs into a usable bulleted list.
textControl.Text = "Research\nDraft\nReview";
textControl.Select(0, textControl.Text.Length);
ListFormat listFormat = new()
{
Type = ListType.Bulleted,
BulletCharacter = '•'
};
textControl.Selection.ListFormat = listFormat;textControl.Text = "Research" & vbCrLf & "Draft" & vbCrLf & "Review"
textControl.Select(0, textControl.Text.Length)
Dim listFormat As New ListFormat() With {
.Type = ListType.Bulleted,
.BulletCharacter = "•"c
}
textControl.Selection.ListFormat = listFormatRemarks
The property's default value is the B7 (hexadecimal) character of the Windows Symbol character set.
The property returns its default value when the text selection contains multiple paragraphs with different bullet characters or when the text selection does not contain a bulleted list. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.