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…

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 repository.
If you have any suggestions or comments please feel free to drop us a line.
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 2012 or better
- TX Text Control .NET for Windows Forms (trial sufficient)