XhtmlControlAdapter.ConditionalEnterStyle XhtmlControlAdapter.ConditionalEnterStyle XhtmlControlAdapter.ConditionalEnterStyle Method

Definition

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) ConditionalEnterStyle(XhtmlMobileTextWriter, Style) 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.

ConditionalEnterStyle(XhtmlMobileTextWriter, Style, String) ConditionalEnterStyle(XhtmlMobileTextWriter, Style, String) 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) ConditionalEnterStyle(XhtmlMobileTextWriter, Style) 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

Parameters

writer
XhtmlMobileTextWriter XhtmlMobileTextWriter XhtmlMobileTextWriter

The XhtmlMobileTextWriter object used to render the server control content on the client's browser.

style
Style Style Style

A Style object.

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

ConditionalEnterStyle(XhtmlMobileTextWriter, Style, String) ConditionalEnterStyle(XhtmlMobileTextWriter, Style, String) 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

Parameters

writer
XhtmlMobileTextWriter XhtmlMobileTextWriter XhtmlMobileTextWriter

The XhtmlMobileTextWriter object used to render the server control content on the client's browser.

style
Style Style Style

A Style object.

tag
String String 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

Applies to