通过


Alignment 枚举

定义

注意

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 http://go.microsoft.com/fwlink/?LinkId=157231.

指定呈现对象的对齐方式。 无法继承此类。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

public enum class Alignment
public enum Alignment
[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 http://go.microsoft.com/fwlink/?LinkId=157231.")]
public enum Alignment
type Alignment = 
[<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 http://go.microsoft.com/fwlink/?LinkId=157231.")>]
type Alignment = 
Public Enum Alignment
继承
Alignment
属性

字段

名称 说明
NotSet 0

默认值。 如果值为 NotSet,则对齐方式继承自控件的样式,或者如果未定义样式,则从控件的父控件继承。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

Left 1

与屏幕左侧对齐。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

Center 2

与屏幕中心对齐。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

Right 3

与屏幕右侧对齐。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

注解

枚举 Alignment 表示项在其父容器(如面板或窗体)上的水平定位。 例如,如果将图像添加到窗体,则可以将其水平位置设置为与窗体右侧对齐。

尽管可以在脚本语言中使用位值,但不能将它们用于 ASP.NET。 例如, Alignment = "2" 面板标记内不是有效的语句。 但是,在 Visual C# 中 this.myPanel.Alignment = 2,可以使用 。

适用于