ESRI.ArcGIS.ADF.Web.UI.WebControls
AutoExpandButton Class
Members  See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace : AutoExpandButton Class




Button which resizes itself based on the pixel width of the Text associated with it and the specified maximum and padding properties.

Object Model

AutoExpandButton Class

Syntax

Visual Basic (Declaration) 
<ToolboxDataAttribute("<{0}:AutoExpandButton runat="server" Text="Button"></{0}:AutoExpandButton>")>
Public Class AutoExpandButton 
   Inherits System.Web.UI.WebControls.Button
Visual Basic (Usage)Copy Code
Dim instance As AutoExpandButton
C# 
[ToolboxDataAttribute("<{0}:AutoExpandButton runat="server" Text="Button"></{0}:AutoExpandButton>")]
public class AutoExpandButton : System.Web.UI.WebControls.Button 

Remarks

If no maximum pixel width has been specified, then the size of the button will be dictated by the Text associated with the control. Otherwise, if maximum pixel width is set, then this will be the maximum allowed width of the button regardless of the Text size. The pixel width of the Text property is calculated based on the font and size specified within the resource file under "AutoExpandControlFontName" and "AutoExpandControlFontSize" keys, or, if these have not been set, on the Default Font Name (Verdana) and Size (8.0f)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.