WmlControlAdapter.RenderLink(WmlMobileTextWriter, String, String, Boolean, Boolean, String, Boolean) 方法
定义
呈现整个链接,其中包含指定的文本。Renders an entire link, with the specified text inside. 此 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:
void RenderLink(System::Web::UI::MobileControls::Adapters::WmlMobileTextWriter ^ writer, System::String ^ targetUrl, System::String ^ softkeyLabel, bool implicitSoftkeyLabel, bool mapToSoftkey, System::String ^ text, bool breakAfter);
protected void RenderLink (System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter writer, string targetUrl, string softkeyLabel, bool implicitSoftkeyLabel, bool mapToSoftkey, string text, bool breakAfter);
member this.RenderLink : System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter * string * string * bool * bool * string * bool -> unit
Protected Sub RenderLink (writer As WmlMobileTextWriter, targetUrl As String, softkeyLabel As String, implicitSoftkeyLabel As Boolean, mapToSoftkey As Boolean, text As String, breakAfter As Boolean)
参数
- writer
- WmlMobileTextWriter
指定的文本编写器。The specified text writer.
- targetUrl
- String
目标 URL 目标。The URL target.
- softkeyLabel
- String
用于链接的软键文本。The softkey text to use for the link.
- implicitSoftkeyLabel
- Boolean
如果映射到设备上的软键,则设置为 true。Set to true if mapping to a softkey on the device.
- mapToSoftkey
- Boolean
如果软键标签来自于适配器自身(默认标签,或适配器指定的其他内容,如表示 PhoneCall 控件的“Call”),而不是应用程序作者显式指定的软键标签,则设置为 true。Set to true if the softkey label comes from the device adapter itself (the default label, or something else that is adapter specified, such as "Call" for a PhoneCall control), rather than a softkey label explicitly specified by the application author.
- text
- String
定义链接的文本。The text defining the link.
- breakAfter
- Boolean
如果需要设置 BreakAfter 属性,则设置为 true。Set to true if the BreakAfter property is required to be set.
注解
如果 mapToSoftKey 参数设置为,则 true softkeyLabel 显示参数的文本。If the mapToSoftKey parameter is set to true, the text of the softkeyLabel parameter is displayed.