TX Text Control .NET Server

BulletSize Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets or sets the size of the symbol character for a bulleted list. If this property is 0, the size of the font for the list text is used.

Syntax

public int BulletSize { get; set; }

Examples

The following example applies BulletSize 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,
    BulletSize = 240
};
textControl.Selection.ListFormat = listFormat;

Remarks

The property's default value is 0.

The property returns its default value when the text selection contains multiple paragraphs with mixed bullet sizes or when the text selection does not contain a bulleted list. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.