TX Text Control .NET for WPF

BorderThickness Property

Property|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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}");