Products Technologies Demo Docs Blog Support Company

Table Indent Alignment Sample Available

Sometimes, if you insert a table into existing text, you would like to align the table to the paragraph indent. Of course, this task can be done manually, but I thought it would be a good idea to perform this programmatically. The method alignTable will do the task for you, it will need a valid table ID and the boolean parameter keepIndentInCells. The parameter is used to either keep or remove the indent from the paragraph in the table cells. You can download the sample from our GitHub…

Table Indent Alignment Sample Available

Text ControlSometimes, if you insert a table into existing text, you would like to align the table to the paragraph indent.

Of course, this task can be done manually, but I thought it would be a good idea to perform this programmatically.

The method alignTable will do the task for you, it will need a valid table ID and the boolean parameter keepIndentInCells. The parameter is used to either keep or remove the indent from the paragraph in the table cells.

You can download the sample from our GitHub repository.

If you have any suggestions or comments please feel free to drop us a line.

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

GitHub

Download and Fork This Sample on GitHub

We proudly host our sample code on github.com/TextControl.

Please fork and contribute.

Download ZIP

Open on GitHub

Open in Visual Studio

Requirements for this sample

  • Visual Studio 2012 or better
  • TX Text Control .NET for Windows Forms (trial sufficient)