PagerStyle 类

定义

警告

此 API 现已过时。

为页的分页 UI 提供样式功能。Provides style capability for the pagination UI of a page. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public ref class PagerStyle : System::Web::UI::MobileControls::Style
[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 PagerStyle : System.Web.UI.MobileControls.Style
type PagerStyle = class
    inherit Style
Public Class PagerStyle
Inherits Style
继承
PagerStyle
属性

注解

PagerStyle 对象是一个 Style 对象,其中包含特定于窗体的分页用户界面(UI)的其他样式属性。The PagerStyle object is a Style object with additional style properties specific to the pagination user interface (UI) of a form. 使用 PagerStyle 类的属性和方法来重写 NextPageTextPreviousPageTextPageLabel 属性的默认文本。Use the properties and methods of the PagerStyle class to override default text for the NextPageText, PreviousPageText, and PageLabel properties. 例如,如果以编程方式创建一个窗体,其中包含指向相应页面的 "下一步" 和 "上一步" 链接,则可以通过设置前面提到的属性的值来覆盖这些链接的文本。For example, if you are programmatically creating a form with Next and Previous links to the appropriate pages, you can override the text for these links by setting the value of the properties previously mentioned. 您可以使用 GetNextPageTextGetPreviousPageTextGetPageLabelText 等方法来检索属性的当前值。You can use methods, such as GetNextPageText, GetPreviousPageText, or GetPageLabelText to retrieve the current value of the properties.

备注

PageLabel 属性仅适用于 HTML 标记,可能不会在其他标记(如 WML)中呈现。The PageLabel property applies only to HTML markup and may not be rendered in other markups such as WML.

构造函数

PagerStyle()

实例化 PagerStyle 类的新实例。Instantiates a new instance of the PagerStyle class. 此 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.

字段

NextPageTextKey

表示用于从 NextPageText 的嵌入式样式表中检索样式的键。Represents the key for retrieving the style from the embedded stylesheet for NextPageText. 此 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.

PageLabelKey

表示用于从 PageLabel 的嵌入式样式表中检索样式的键。Represents the key for retrieving the style from the embedded stylesheet for PageLabel. 此 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.

PreviousPageTextKey

表示用于从 PreviousPageText 的嵌入式样式表中检索样式的键。Represents the key for retrieving the style from the embedded stylesheet for PreviousPageText. 此 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.

属性

Alignment

获取或设置样式的指定对齐方式。Gets or sets the specified alignment for the style. 默认值是 NotSetThe default value is NotSet. 此 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.

(继承自 Style)
BackColor

获取或设置样式的指定背景色。Gets or sets the specified background color for the style. 默认值是 EmptyThe default value is Empty. 此 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.

(继承自 Style)
Control

返回一个对关联控件的强类型引用。Returns a strongly typed reference to the associated 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.

(继承自 Style)
DeviceSpecific

获取或设置与控件关联的 DeviceSpecific/Choice 构造。Gets or sets the DeviceSpecific/Choice construct associated with the control. 如果不存在此类构造,则访问器返回 nullThe accessor returns null if no such construct exists. 此 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.

(继承自 Style)
Font

返回包含有关控件字体信息的 FontInfo 对象。Returns a FontInfo object that contains font information about 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.

(继承自 Style)
ForeColor

获取或设置样式的指定前景色。Gets or sets the specified foreground color for the style. 此属性通常用于设置文本颜色。Typically, this property sets the color for the text. 默认值是 EmptyThe default value is Empty. 此 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.

(继承自 Style)
IsTemplated

获取一个值,该值指示 Style 对象是否有活动的模板集。Gets a value indicating whether a Style object has an active template set. 此 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.

(继承自 Style)
IsTrackingViewState

获取一个值,该值指示 Style 对象是否保存对其视图状态的更改。Gets a value indicating whether the Style object is saving changes to its view state. 此 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.

(继承自 Style)
Item[Object, Boolean]

通过键参数返回样式(可以使用也可以不使用继承)。Returns the style, through the key parameter, with or without using inheritance. 此 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.

(继承自 Style)
Item[Object]

通过键参数返回样式(可以使用也可以不使用继承)。Returns the style through the key parameter, with or without using inheritance. 此 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.

(继承自 Style)
Name

获取或设置指定对象的名称。Gets or sets the name of the specified object. 默认值为空字符串 ("")。The default value is an empty string (""). 此 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.

(继承自 Style)
NextPageText

获取或设置用于导航到下一页的用户界面元素所使用的标签。Gets or sets the label used for a UI element that is used to navigate to the next page. 默认值为“Next”。The default value is "Next". 此 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.

PageLabel

获取或设置用于当前页的标签。Gets or sets the label used for the current page. 默认值为空字符串 ("")。The default value is an empty string (""). 此 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.

PreviousPageText

获取或设置用于导航到上一页的用户界面元素所使用的标签。Gets or sets the label used for the UI element used to navigate to the previous page. 默认值为 PreviousThe default value is Previous. 此 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.

State

获取 StateBag 的当前内容。Gets the current contents of the StateBag. 此 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.

(继承自 Style)
StyleReference

获取或设置对 Style 的样式属性的引用。Gets or sets a reference to the style properties for a Style. 此 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.

(继承自 Style)
Wrapping

获取或设置样式的指定包装模式。Gets or sets the specified wrapping mode for the style. 默认值是 NotSetThe default value is NotSet. 此 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.

(继承自 Style)

方法

AddParsedSubObject(Object)

DeviceSpecific 属性设置为指定的对象。Sets the DeviceSpecific property to the specified object. 此 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.

(继承自 Style)
ApplyTo(WebControl)

将样式属性应用到控件。Applies the properties of a style to a 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.

(继承自 Style)
Clone()

返回此 Style 对象的实例的一个副本。Returns a copy of this instance of the Style object. 此 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.

(继承自 Style)
Equals(Object)

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

(继承自 Object)
GetHashCode()

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

(继承自 Object)
GetNextPageText(Int32)

返回用于导航到下一页的用户界面 (UI) 元素的格式化字符串。Returns a formatted string for the user interface (UI) element used to navigate to the next page. 此 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.

GetPageLabelText(Int32, Int32)

返回用于导航到下一页的用户界面元素的格式化字符串。Returns a formatted string for the UI element used to navigate to the next page. 此 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.

GetPreviousPageText(Int32)

返回用于导航到上一页的 UI 元素的格式化字符串。Returns a formatted string for the UI element used to navigate to the previous page. 此 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.

GetTemplate(String)

返回具有指定名称的模板。Returns the template with the specified name. 此 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.

(继承自 Style)
GetType()

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

(继承自 Object)
LoadViewState(Object)

将视图状态加载到 State 对象的 Style 中。Loads the view state into the State of the Style object. 此 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.

(继承自 Style)
MemberwiseClone()

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

(继承自 Object)
SaveViewState()

将对视图状态的更改保存到 ObjectSaves the changes to the view state to an Object. 此 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.

(继承自 Style)
ToString()

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

(继承自 Object)
TrackViewState()

打开 Style 对象中的视图状态跟踪。Turns on the tracking of view state in the Style object. 此 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.

(继承自 Style)

显式接口实现

IParserAccessor.AddParsedSubObject(Object)

有关此成员的说明,请参阅 AddParsedSubObject(Object)For a description of this member, see AddParsedSubObject(Object). 此 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.

(继承自 Style)
IStateManager.IsTrackingViewState

有关此成员的说明,请参阅 IsTrackingViewStateFor a description of this member, see IsTrackingViewState. 此 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.

(继承自 Style)
IStateManager.LoadViewState(Object)

有关此成员的说明,请参阅 LoadViewState(Object)For a description of this member, see LoadViewState(Object). 此 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.

(继承自 Style)
IStateManager.SaveViewState()

有关此成员的说明,请参阅 SaveViewState()For a description of this member, see SaveViewState(). 此 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.

(继承自 Style)
IStateManager.TrackViewState()

有关此成员的说明,请参阅 TrackViewState()For a description of this member, see TrackViewState(). 此 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.

(继承自 Style)

安全性

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

适用于

另请参阅