TX Text Control .NET Server

FollowingStyle Property

Property|Introduced in 10.1
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 name of the style that TextControl automatically selects for the following paragraph after the user has pressed the ENTER key.

Syntax

public string FollowingStyle { get; set; }

Examples

The following example creates and configures a reusable paragraph style for the document by using ParagraphStyle.FollowingStyle.

ParagraphStyle paragraphStyle = new("ReportHeading");
textControl.ParagraphStyles.Add(paragraphStyle);

paragraphStyle.FollowingStyle = "Quarterly report";
if (!string.IsNullOrWhiteSpace(paragraphStyle.FollowingStyle))
{
    Console.WriteLine($"Following Style: {paragraphStyle.FollowingStyle}");
}