FollowingStyle Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property FollowingStyle As StringExamples
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}");
}Dim paragraphStyle As New ParagraphStyle("ReportHeading")
textControl.ParagraphStyles.Add(paragraphStyle)
paragraphStyle.FollowingStyle = "Quarterly report"
If Not String.IsNullOrWhiteSpace(paragraphStyle.FollowingStyle) Then
Console.WriteLine($"Following Style: {paragraphStyle.FollowingStyle}")
End If