![]() ![]() | ||
Here's the class hierarchy of the WebControl class, which is based on the Control class:
Object Control WebControl
You can find the notable public properties of WebControl objects in Table 15.4 and the notable methods in Table 15.5. (Note there's no table of events here—WebControl inherits all its events from the Control class.)
Property |
Means |
---|---|
AccessKey |
Gets/Sets the access key for the control. |
Attributes |
Gets a collection of attributes used to render the control. (These attributes are the ones that do not correspond to control properties.) |
BackColor |
Gets/sets the control's background color. |
BorderColor |
Gets/sets the control's border color. |
BorderStyle |
Gets/sets the control's border style. |
BorderWidth |
Gets/sets the control's border width. |
ControlStyle |
Gets the control's style. |
CssClass |
Gets/sets control's CSS class. |
Enabled |
Gets/sets whether the control is enabled. |
Font |
Gets/sets font information for the control. |
ForeColor |
Gets/sets the control's foreground color. |
Height |
Gets/sets the control's height. |
Style |
Gets the HTML style of the control as a collection of text attributes. |
TabIndex |
Gets/sets the control's tab index. |
ToolTip |
Gets/sets the control's tool tip text. |
Width |
Gets/sets the control's width. |
Method |
Means |
---|---|
CopyBaseAttributes |
Copies base attributes (that is, the AccessKey, Enabled, ToolTip, Tab Index, and Attributes properties) from a source control to the current control. |
RenderBeginTag |
Renders the HTML starting tag of the control. |
RenderEndTag |
Renders the HTML ending tag of the control. |
And now that we've gotten the Control and WebControl classes in hand, we can turn to the actual Web server controls, starting with buttons.
![]() ![]() | ||