Base Mobile Control Properties
The properties listed in the following table apply to all ASP.NET mobile controls. Some browsers do not support font settings for individual controls.
Properties |
Description |
---|---|
The alignment of the style. Its value can be expressed as one of the following enumerations:
|
|
The color behind the text of the control. In a mobile control element, the color value can be set by using standard HTML color identifiers: the name of a color ("black" or "red"), or using an RGB value expressed in hexadecimal ("#ffffff"). |
|
Sets or returns the <DeviceSpecific>/<Choice> construct if it exists. |
|
Returns the first page of the form on which the specified control resides. |
|
Returns a FontInfo object that contains information about the font for the specified control. |
|
The size of the font. Its value can be expressed as one of the following enumerations:
|
|
The text color of the control. Its value can be expressed as one of the following enumerations:
|
|
Provides access to the containing form. |
|
Sets or returns the identifier for the style. The default value is null. |
|
Protected property. Returns the text that is inside the control. The value of this property can include a combination of text from all the child controls. |
|
Returns true if the specified control has a valid template set. |
|
Returns the last page of the form on which the specified control resides. |
|
Returns the containing mobile page. The mobile page is the top-level container for a control. |
|
Returns the containing page. In the case of a mobile page, it returns the mobile page, but not as strongly typed as the MobilePage property. |
|
Returns the object one level higher in the object hierarchy. Often, the parent is the container of the current object. |
|
runat |
Must be server for all mobile controls. |
Returns the <Style> element for the specified control. |
|
Sets or returns the name of the style sheet for the mobile page. A non-null value in this property establishes the style for the control. |
|
Returns a dictionary of state information that allows you to save and restore the view state of a server control across multiple requests for the same page. |
|
Sets or returns true if the specified control will be rendered on a mobile page. |
|
Returns the approximate weight of the control, in characters. The value of this property is used in pagination. |
|
Uses an enumerated value to determine whether the text wraps to the next line. Its value can be expressed as one of the following enumerations:
|