Control Property (ControlAdapter)
Returns a strongly typed reference to the associated control.
protected System.Web.UI.MobileControls.ControlAdapter Control {
get,
set
}
Remarks
The Control property is an implementation of the Control property for the IControlAdapter interface, which gets or sets the control to which the adapter is attached.
For individual control adapters, you can create a strongly typed property to hide the Control property. For example, the following code in a label adapter creates a strongly typed Control property.
Public Shadows ReadOnly Property Control() As Label
Get
Return CType(MyBase.Control, Label)
End Get
End Property
[C#]
public new Label Control
{
get
{
return (Label)base.Control;
}
}
See Also
Applies to: ControlAdapter class | ChtmlCalendarAdapter Class | ChtmlImageAdapter Class | ChtmlSelectionListAdapter Class | ChtmlTextBoxAdapter Class | HtmlCalendarAdapter Class | HtmlCommandAdapter Class | HtmlFormAdapter Class | HtmlImageAdapter Class | HtmlLabelAdapter Class | HtmlLinkAdapter Class | HtmlListAdapter Class | HtmlLiteralTextAdapter Class | HtmlObjectListAdapter Class | HtmlPageAdapter Class | HtmlPanelAdapter Class | HtmlPhoneCallAdapter Class | HtmlSelectionListAdapter Class | HtmlTextBoxAdapter Class | HtmlTextViewAdapter Class | HtmlValidationSummaryAdapter Class | HtmlValidatorAdapter Class | WmlCalendarAdapter Class | WmlCommandAdapter Class | WmlFormAdapter Class | WmlImageAdapter Class | WmlLabelAdapter Class | WmlLinkAdapter Class | WmlListAdapter Class | WmlLiteralTextAdapter Class | WmlObjectListAdapter Class | WmlPageAdapter Class | WmlPanelAdapter Class | WmlPhoneCallAdapter Class | WmlSelectionListAdapter Class | WmlTextBoxAdapter Class | WmlTextViewAdapter Class | WmlValidationSummaryAdapter Class | WmlValidatorAdapter Class