I am looking for a function or C # routine that will center the alignment of text.
For example, if I have a sentence, I noticed that when the sentence is justified by the edges of the screen, these spaces are placed in a line. The inserted spaces begin in the center and, if necessary, move away from both sides as necessary.
Is there a C # function with which I can pass my string, for example, 50 characters, and get a beautiful 56 char string?
Thanks in advance,
Rob
source
share