Article relates to
RadTextBox, RadControls for WinForms
Angel Kanchev, Telerik
November 28, 2007
Last modified by
There is one additional option to adjust the height of a non-multiline RadTextBox. If you do not need the automatic height calculation based on the Font, there is a vertical stretching that you can allow. You can only do this programmatically - add the following code block after the call to InitializeComponent() in the Form constructor or in FormLoad: this.radTextBox1.RootElement.StretchVertically = true;
this.radTextBox1.TextBoxElement.StretchVertically = true;
this.radTextBox1.TextBoxElement.TextBoxItem.Alignment = ContentAlignment.MiddleLeft;
This will cause the non-stretchable in the vertical direction TextBoxItem to be vertically centered in the vertically stretchable RadTextBox.
Copyright © 2016, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.