用內部指定的文字,呈現為完整連結。
protected void RenderLink(
WmlMobileTextWriter writer,
string targetUrl,
string softkeyLabel,
bool mapToSoftkey,
bool implicitSoftkeyLabel
string text,
bool breakAfter
)
參數
- writer
指定的文字寫入器。 - targetUrl
URL 目標。 - softkeyLabel
連結使用的螢幕鍵盤文字。 - mapToSoftkey
如果對應至裝置上的螢幕鍵盤,則設定為 true。 - implicitSoftkeyLabel
如果螢幕鍵盤標籤來自裝置配置器本身 (預設標籤或有指定配置器的標籤,例如,PhoneCall 控制項的「呼叫」) 而非應用程式作者明確指定的螢幕鍵盤標籤,則設定為 true。 - text
定義連結的文字。 - breakAfter
如果必須設定 BreakAfter 屬性,則設定為 true。
備註
如果 mapToSoftKey 參數設定為 true,就會顯示 softkeyLabel 參數的文字。