I have a requirement to add 10px padding (10px white-space) before the text appears in UltraTextEditor control. I do not see any padding property for this control. How do I achieve this?
Hello hsudesh,
The easiest way I can think of is to set the padding of the text in the Ultra TextEditor by using the PadLeft() method. The method applies a padding on the left (before the entered text) with the specified Unicode symbol for the specified length.
var paddingText = this.ultraTextEditor1.Text.PadLeft(10, ' ');this.ultraTextEditor1.Text = paddingText + "Sample Text”;