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
屬性

欄位

名稱 Description
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.

適用於