ESRI.ArcGIS.ADF.Web.UI.WebControls
AutoExpandButton Class
Members  See Also 
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.

Syntax

Visual Basic (Declaration) 
<ToolboxDataAttribute("<{0}:AutoExpandButton runat="server" Text="Button"></{0}:AutoExpandButton>")>
Public Class AutoExpandButton 
   Inherits Button
Visual Basic (Usage)Copy Code
Dim instance As AutoExpandButton
C# 
[ToolboxDataAttribute("<{0}:AutoExpandButton runat="server" Text="Button"></{0}:AutoExpandButton>")]
public class AutoExpandButton : 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)

Inheritance Hierarchy

System.Object
   System.Web.UI.Control
      System.Web.UI.WebControls.WebControl
         System.Web.UI.WebControls.Button
            ESRI.ArcGIS.ADF.Web.UI.WebControls.AutoExpandButton

See Also

© 2010 All Rights Reserved.