XhtmlControlAdapter.ConditionalEnterStyle Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Begins a new element that applies the given styles if certain conditions are met. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
Overloads
ConditionalEnterStyle(XhtmlMobileTextWriter, Style) |
Writes the opening tag for a |
ConditionalEnterStyle(XhtmlMobileTextWriter, Style, String) |
Writes the opening tag of the specified element, along with attributes that implement the layout and character formatting of the specified style, if certain conditions are met. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |
ConditionalEnterStyle(XhtmlMobileTextWriter, Style)
Writes the opening tag for a <span>
section, along with attributes that implement the layout and character formatting of the specified style, if certain conditions are met. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
protected:
virtual void ConditionalEnterStyle(System::Web::UI::MobileControls::Adapters::XhtmlAdapters::XhtmlMobileTextWriter ^ writer, System::Web::UI::MobileControls::Style ^ style);
protected virtual void ConditionalEnterStyle (System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter writer, System.Web.UI.MobileControls.Style style);
abstract member ConditionalEnterStyle : System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter * System.Web.UI.MobileControls.Style -> unit
override this.ConditionalEnterStyle : System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter * System.Web.UI.MobileControls.Style -> unit
Protected Overridable Sub ConditionalEnterStyle (writer As XhtmlMobileTextWriter, style As Style)
Parameters
- writer
- XhtmlMobileTextWriter
The XhtmlMobileTextWriter object used to render the server control content on the client's browser.
Remarks
This method writes an opening <span>
element and style attributes if the following conditions are met:
The CssLocation property does not represent a physical file.
The target Device does not require suppression of cascading style sheet styles.
This method is primarily used by the .NET Framework internally.
See also
- ExitStyle
- XhtmlMobileTextWriter
- EnterLayout(Style)
- Device
- Architectural Overview of Adaptive Control Behavior
- Adapter Sets Functionality
- Control and Adapter Interaction
Applies to
ConditionalEnterStyle(XhtmlMobileTextWriter, Style, String)
Writes the opening tag of the specified element, along with attributes that implement the layout and character formatting of the specified style, if certain conditions are met. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
protected:
virtual void ConditionalEnterStyle(System::Web::UI::MobileControls::Adapters::XhtmlAdapters::XhtmlMobileTextWriter ^ writer, System::Web::UI::MobileControls::Style ^ style, System::String ^ tag);
protected virtual void ConditionalEnterStyle (System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter writer, System.Web.UI.MobileControls.Style style, string tag);
abstract member ConditionalEnterStyle : System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter * System.Web.UI.MobileControls.Style * string -> unit
override this.ConditionalEnterStyle : System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter * System.Web.UI.MobileControls.Style * string -> unit
Protected Overridable Sub ConditionalEnterStyle (writer As XhtmlMobileTextWriter, style As Style, tag As String)
Parameters
- writer
- XhtmlMobileTextWriter
The XhtmlMobileTextWriter object used to render the server control content on the client's browser.
- tag
- String
The tag name for the element.
Remarks
The ConditionalEnterStyle method writes the opening tag and style attributes if the following conditions are met:
The CssLocation property does not represent a physical file.
The target Device does not require suppression of cascading style sheet styles.
This method is primarily used by the .NET Framework internally.
See also
- ConditionalExitStyle(XhtmlMobileTextWriter, Style)
- ExitStyle
- XhtmlMobileTextWriter
- EnterStyle(Style)
- Architectural Overview of Adaptive Control Behavior
- Adapter Sets Functionality
- Control and Adapter Interaction