RulerBar Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Specifies the horizontal ruler bar control to be used with a TextControl. The property value is an empty string, if there is no ruler bar connected. Otherwise it must be the name of an existing WPF.RulerBar object.
Syntax
public string RulerBar { get; set; }Public Property RulerBar As StringExamples
The following example uses TextControl.RulerBar to configure ruler bar as part of the text control workflow. The configured value is checked before the workflow continues.
textControl.RulerBar = "Quarterly report";
if (!string.IsNullOrWhiteSpace(textControl.RulerBar))
{
Console.WriteLine($"Ruler Bar: {textControl.RulerBar}");
}textControl.RulerBar = "Quarterly report"
If Not String.IsNullOrWhiteSpace(textControl.RulerBar) Then
Console.WriteLine($"Ruler Bar: {textControl.RulerBar}")
End If