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)

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)

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);

Parameters

writer
XhtmlMobileTextWriter

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

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

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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, string tag);

Parameters

writer
XhtmlMobileTextWriter

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

style
Style

A Style object.

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

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1