共用方式為


TextControl 類別

基底 TextControl 類別 (Class) 屬於抽象類別 (Abstract Class),從中衍生出具體 (Concrete) 文字基礎的控制項。

命名空間: System.Web.UI.MobileControls
組件: System.Web.Mobile (在 system.web.mobile.dll 中)

語法

'宣告
Public MustInherit Class TextControl
    Inherits MobileControl
'用途
Dim instance As TextControl
public abstract class TextControl : MobileControl
public ref class TextControl abstract : public MobileControl
public abstract class TextControl extends MobileControl
public abstract class TextControl extends MobileControl

備註

TextBoxLabelLinkCommand 控制項是衍生自 TextControl 類別的控制項之範例。

每個以 TextControl 類別為基礎的控制項都有 Text 屬性 (Property),可以用程式設計方式修改這個屬性。Text 屬性通常用來呈現控制項。

.NET Framework 安全性

繼承階層架構

System.Object
   System.Web.UI.Control
     System.Web.UI.MobileControls.MobileControl
      System.Web.UI.MobileControls.TextControl
         衍生類別

執行緒安全

這個型別的所有公用靜態成員 (即 Visual Basic 中的 Shared 成員) 都是安全執行緒。並非所有的執行個體成員均為安全執行緒。

平台

Windows 98、 Windows 2000 SP4、 Windows Millennium Edition、 Windows Server 2003、 Windows XP Media Center Edition、 Windows XP Professional x64 Edition、 Windows XP SP2、 Windows XP Starter Edition

.NET Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱系統需求一節的內容。

版本資訊

.NET Framework

支援版本:2.0、1.1

請參閱

參考

TextControl 成員
System.Web.UI.MobileControls 命名空間

其他資源

TextView 控制項簡介