XhtmlControlAdapter.ConditionalExitFormat(XhtmlMobileTextWriter, Style) 方法

定义

满足某些条件时结束使用过指定样式的字符格式的块。Ends a block that has been using the character formatting from a specified style, if certain conditions are met. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

protected:
 virtual void ConditionalExitFormat(System::Web::UI::MobileControls::Adapters::XhtmlAdapters::XhtmlMobileTextWriter ^ writer, System::Web::UI::MobileControls::Style ^ style);
protected virtual void ConditionalExitFormat (System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter writer, System.Web.UI.MobileControls.Style style);
abstract member ConditionalExitFormat : System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter * System.Web.UI.MobileControls.Style -> unit
override this.ConditionalExitFormat : System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter * System.Web.UI.MobileControls.Style -> unit
Protected Overridable Sub ConditionalExitFormat (writer As XhtmlMobileTextWriter, style As Style)

参数

writer
XhtmlMobileTextWriter

用于在客户端浏览器上呈现服务器控件内容的 XhtmlMobileTextWriter 对象。The XhtmlMobileTextWriter object used to render the server control content on the client's browser.

style
Style

Style 对象。A Style object.

注解

ConditionalExitFormat如果满足以下条件,则方法将结束当前块:The ConditionalExitFormat method ends the current block if the following conditions are met:

  • 匹配的 ConditionalEnterFormat 方法调用导致应用字符格式设置。A matching ConditionalEnterFormat method call resulted in character formatting being applied.

  • CssLocation属性不表示物理文件。The CssLocation property does not represent a physical file.

  • 目标不 Device 需要禁止显示级联样式表样式。The target Device does not require suppression of cascading style sheet styles.

此方法主要由 .NET Framework 在内部使用。This method is primarily used by the .NET Framework internally.

适用于

另请参阅