SectionFormat Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets page settings such as margins, size and orientation for the selected text. The property's value is an object of the type SectionFormat.
Syntax
public SectionFormat SectionFormat { get; set; }Public Property SectionFormat As SectionFormatExamples
The following example formats the heading of a short document by using Selection.SectionFormat.
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
textControl.Select(0, 17);
Selection selection = textControl.Selection;
selection.SectionFormat = new SectionFormat();
if (selection.SectionFormat != null)
{
Console.WriteLine("Selection: Section Format is available.");
}textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
textControl.Select(0, 17)
Dim selection As Selection = textControl.Selection
selection.SectionFormat = New SectionFormat()
If selection.SectionFormat IsNot Nothing Then
Console.WriteLine("Selection: Section Format is available.")
End IfLimitations
Runtime only.