TextViewElement.Text 属性
定义
设置或返回控件的文本。Sets or returns the text for the control. 此 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.
public:
property System::String ^ Text { System::String ^ get(); };
public string Text { get; }
member this.Text : string
Public ReadOnly Property Text As String
属性值
控件的文本。The text for the control.
注解
Text可以通过使用 Text 属性或内部文本来指定属性。The Text property can be specified by using the Text attribute, or as inner text. 如果 Text 以这两种方式指定了属性,则内部文本始终优先。If the Text property is specified in both ways, the inner text always takes precedence. 但是,如果 Text 以编程方式设置该属性,则会自动删除内部文本,并优先使用新设置的属性。However, if the Text property is programmatically set, the inner text is automatically removed and the newly set property takes precedence.