TX Text Control .NET Server

GridLines Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

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