Alignment 列舉
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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 行動應用程式的資訊,請參閱
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
- 繼承
- 屬性
欄位
| 名稱 | 值 | Description |
|---|---|---|
| NotSet | 0 | 預設值。 若值為 NotSet,則對齊是從控制項的樣式繼承,若樣式未定義,則從控制項的父控制項繼承。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 |
| Left | 1 | 會對齊到螢幕左側。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 |
| Center | 2 | 會對齊螢幕中央。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 |
| Right | 3 | 與螢幕右側對齊。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 |
備註
Alignment列舉表示項目在其母容器(如面板或表單)上的水平位置。 舉例來說,如果你把圖片加入表單,你可以設定它的水平位置與表單的右側對齊。
雖然你可以在腳本語言中使用位元值,但無法在 ASP.NET 中使用。 例如, Alignment = "2" 在面板內的標籤並不是有效的陳述。 不過,在 Visual C# 中,你可以使用 this.myPanel.Alignment = 2.