Version

Overflow Property (WebButtonBase)

Value indicating how to manage the content of the control when the content exceeds the height or width of the control.
Syntax
'Declaration
 
Public Property Overflow As ButtonOverflow
public ButtonOverflow Overflow {get; set;}
Example
That property allows to ensure that text and image are fully rendered regardless of the size of control. Default value of that property is Fixed, which means that the Width and Height properties have priority over the sizes of text and image. If Width or Height are too small, then text and image can be displayed only partially or not rendered at all. The NoWordWrap property may automatically expand the width of button to fit image and all text. The WordWrap property may automatically expand the height and the width of button to fit image and all text with possible multiple lines.

' Ensure that image and all text will be rendered
' regardless of possible small values of Width and Height of control
Me.WebImageButton1.Overflow = Infragistics.WebUI.WebControls.ButtonOverflow.NoWordWrap

' Note: if codes above are written within aspx, then it reduces the size of hidden ViewState passed to client
// Ensure that image and all text will be rendered
// regardless of possible small values of Width and Height of control
this.WebImageButton1.Overflow = Infragistics.WebUI.WebControls.ButtonOverflow.NoWordWrap;

// Note: if codes above are written within aspx, then it reduces the size of hidden ViewState passed to client
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also