TX Text Control .NET for Windows Forms

GridLines Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets a value indicating wether table grid lines are shown or not.

Syntax

public bool GridLines { get; set; }

Examples

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