Spread Windows Forms 10.0 Product Documentation
AutoHeight Property (SuperEditBase)
Example 


Gets or sets whether the control resizes itself based on the font.
Syntax
'Declaration
 
Public Overridable Property AutoHeight As Boolean
'Usage
 
Dim instance As SuperEditBase
Dim value As Boolean
 
instance.AutoHeight = value
 
value = instance.AutoHeight
public virtual bool AutoHeight {get; set;}

Property Value

Boolean value: true for the edit control to automatically set the height; false otherwise
Remarks

If you set the TextWrap property to true, you might want to set the AutoHeight property to false. The automatic height is based on the font height of one row of text. If the AutoHeight property is true and the text wraps, the height of the control does not change and only one line of text is displayed.

Example
control.Text = "Font";
Font fvalue = new Font("Comic Sans MS",14,System.Drawing.FontStyle.Bold);
control.Font = fvalue;
control.AutoHeight = true;
control.Text = "Font"
Dim fvalue As Font
fvalue = New Font("Comic Sans MS", 14, FontStyle.Bold)
control.Font = fvalue
control.AutoHeight = True
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SuperEditBase Class
SuperEditBase Members
TextWrap Property

 

 


Copyright © GrapeCity, inc. All rights reserved.