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:

GitHub

Download and Fork This Sample on GitHub

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

Please fork and contribute.

Requirements for This Sample

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

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