共用方式為


ClientScriptItem.Text 屬性

定義

取得用戶端指令碼項目內含的指令碼陳述式。

public:
 property System::String ^ Text { System::String ^ get(); };
public string Text { get; }
member this.Text : string
Public ReadOnly Property Text As String

屬性值

script 項目內含的指令碼陳述式。

備註

屬性 Text 代表 專案中包含的 script 語句。 一般而言,元素的 script 腳本語句是使用 TextSource 屬性來指定。

Text如果 屬性為 null 或空字串 (「」「) ,則 script 專案不包含任何腳本語句。

屬性 Source 是由 ClientScriptItem 建構函式初始化。

適用於

另請參閱