GridLines Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets a value indicating wether table grid lines are shown or not.
Syntax
public bool GridLines { get; set; }Public Property GridLines As BooleanExamples
The following XAML example shows how to bind the GridLines property to a check box.
<CheckBox
Content="Show table grid lines"
IsChecked="{Binding ElementName=textControl1, Path=Tables.GridLines}" />The following example works with tables in the current document by using TableCollection.GridLines.
TableCollection tableCollection = textControl.Tables;
tableCollection.Add(3, 3, 10);
tableCollection.GridLines = true;
if (tableCollection.GridLines)
{
Console.WriteLine("Table Collection: Grid Lines is enabled.");
}Dim tableCollection As TableCollection = textControl.Tables
tableCollection.Add(3, 3, 10)
tableCollection.GridLines = True
If tableCollection.GridLines Then
Console.WriteLine("Table Collection: Grid Lines is enabled.")
End If