通过


WmlMobileTextWriter.WmlFormat 构造函数

定义

初始化 WmlMobileTextWriter.WmlFormat 的新实例。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

重载

名称 说明
WmlMobileTextWriter.WmlFormat(Style, WmlMobileTextWriter+WmlFormat)

初始化 WmlMobileTextWriter.WmlFormat 的新实例。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

WmlMobileTextWriter.WmlFormat(Boolean, Boolean, FontSize)

初始化 WmlMobileTextWriter.WmlFormat 的新实例。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

WmlMobileTextWriter.WmlFormat(Style, WmlMobileTextWriter+WmlFormat)

初始化 WmlMobileTextWriter.WmlFormat 的新实例。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

public:
 WmlFormat(System::Web::UI::MobileControls::Style ^ style, System::Web::UI::MobileControls::Adapters::WmlMobileTextWriter::WmlFormat ^ currentFormat);
public WmlFormat(System.Web.UI.MobileControls.Style style, System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter.WmlFormat currentFormat);
new System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter.WmlFormat : System.Web.UI.MobileControls.Style * System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter.WmlFormat -> System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter.WmlFormat
Public Sub New (style As Style, currentFormat As WmlMobileTextWriter.WmlFormat)

参数

style
Style

要从中创建新格式化程序的样式。

currentFormat
WmlMobileTextWriter.WmlFormat

要从中创建新格式化程序的格式。

注解

此构造函数首先查找给定样式的值 BoldItalicSize。 如果任一对应的属性 styleNotSet,此构造函数将查找参数的 currentFormat 相应属性。

另请参阅

适用于

WmlMobileTextWriter.WmlFormat(Boolean, Boolean, FontSize)

初始化 WmlMobileTextWriter.WmlFormat 的新实例。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

public:
 WmlFormat(bool bold, bool italic, System::Web::UI::MobileControls::FontSize size);
public WmlFormat(bool bold, bool italic, System.Web.UI.MobileControls.FontSize size);
new System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter.WmlFormat : bool * bool * System.Web.UI.MobileControls.FontSize -> System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter.WmlFormat
Public Sub New (bold As Boolean, italic As Boolean, size As FontSize)

参数

bold
Boolean

true 将格式设置为粗体;否则,为 false.

italic
Boolean

true 将格式设置为斜体;否则,为 false.

size
FontSize

要写入的字号。

另请参阅

适用于