TextViewElement 类

定义

警告

此 API 现已过时。

TextView 对象提供文本。Provides text for a TextView object. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public ref class TextViewElement
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see https://go.microsoft.com/fwlink/?LinkId=157231.")]
public class TextViewElement
type TextViewElement = class
Public Class TextViewElement
继承
TextViewElement
属性

注解

通过将 TextView 对象的 text 属性分解为逻辑元素,TextViewElement 类支持 TextViewThe TextViewElement class supports the TextView by breaking the text property of the TextView object into logical elements. 然后,TextView 对象的分页机制使用每个元素。Each element is then used by the pagination mechanism of the TextView object. 此类是 TextView 移动控件用于确保分页符不会出现在链接或不应在页面之间分隔的其他元素中。It is this class that the TextView mobile control uses to ensure that page breaks do not occur in the midst of links or other elements that should not be divided between pages.

如果要从 TextView 移动控件派生或要创建新的适配器,则可以使用此类而不进行修改。If you want to derive from the TextView mobile control or are creating a new adapter, you will likely be able to use this class without modification.

属性

BreakAfter

设置或返回一个属性,该属性用于确定是否在控件之后呈现附加的尾部换行符。Sets or returns a property that determines whether an additional trailing break is rendered after the control. 此换行符使后续内容从下一行开始。This break causes subsequent content to start on the next line. 默认值为 trueThe default is true. 此 API 已过时。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

IsBold

如果文本为粗体,则返回 trueReturns true if the text is bold. 此 API 已过时。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

IsItalic

如果文本为斜体,则返回 trueReturns true if the text is italic. 此 API 已过时。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Text

设置或返回控件的文本。Sets or returns the text for the control. 此 API 已过时。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Url

返回文本的 URL。Returns the URL of the text. 此 API 已过时。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

安全性

AspNetHostingPermission
用于在宿主环境中进行操作。for operating in a hosted environment. 要求值:InheritanceDemand;权限值:MinimalDemand value: InheritanceDemand; Permission value: Minimal.

适用于

另请参阅