Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to justify text in Rich Text Boxes?

Status
Not open for further replies.

dipankar

Programmer
Aug 8, 2001
6
IN
How can the text dispalyed in Rich Text Box justified as done in MS-WORD?

Thanx
Dipankar
 
Use the SelAlignment property of the RTFBox. This property is not available at design time.

Its purpose is to control the alignment of the selected paragraphs. Possible values are: rtfLeft,
rtfRight, rtfCenter
.

e.g.
rtfTextBox.SetAlignment = rtfCenter _________________________________
In theory, there is no difference between theory and practice. In practice, there is. [attributed to Yogi Berra]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top