BorderThickness Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets the border thickness of the Text Control. Four double values, in device-independent units (1/96th inch), describe the left, top, right, and bottom sides of the border, respectively. If only a single measure is specified, that measure is applied to all of the left, top, right, bottom values of a Thickness. If only a pair of left,top measures are specified, these measures are applied symmetrically to a Thickness: the left value is used for right; the top value is used for bottom. This is a dependency property.
Syntax
public System.Windows.Thickness BorderThickness { get; set; }Public Property BorderThickness() As System.Windows.ThicknessExamples
The following example uses TextControl.BorderThickness to configure border thickness as part of the text control workflow. The configured value is checked before the workflow continues.
textControl.BorderThickness = new System.Windows.Thickness(8);
Console.WriteLine($"Border Thickness used by Text Control: {textControl.BorderThickness}");textControl.BorderThickness = New System.Windows.Thickness(8)
Console.WriteLine($"Border Thickness used by Text Control: {textControl.BorderThickness}")