ESRI.ArcGIS.ADF.Web.UI.WebControls
AutoExpandLabel Class
Members  See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace : AutoExpandLabel Class




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

Remarks

If no maximum pixel width has been specified, then the size of the label 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 label 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.Label
            ESRI.ArcGIS.ADF.Web.UI.WebControls.AutoExpandLabel

See Also

© 2010 All Rights Reserved.