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.

指定所呈現物件的對齊方式。Specifies the alignment of a rendered object. 此類別無法獲得繼承。This class cannot be inherited. 如需如何開發 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.

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

欄位

Center 2

對齊螢幕中央。Aligns with the center of the screen. 這個 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.

Left 1

對齊螢幕左邊。Aligns with the left of the screen. 這個 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.

NotSet 0

預設值。Default value. 如果數值是 NotSet,則會從控制項的樣式繼承對齊方式,或者如果沒有定義樣式,則會從控制項的父控制項繼承對齊方式。If the value is NotSet, then the alignment is inherited from the control's style, or, if the style is not defined, from the control's parent 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.

Right 3

對齊螢幕右邊。Aligns with the right of the screen. 這個 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.

備註

Alignment列舉代表專案在其父容器(例如面板或表單)的水準位置。The Alignment enumeration represents the horizontal positioning of an item on its parent container, such as a panel or form. 例如,如果您將影像加入至表單,您可以將其水準位置設定為與表單的右邊對齊。For example, if you add an image to a form, you can set its horizontal position to align with the right side of the form.

雖然您可以使用指令碼語言中的位值,但無法將它們與 ASP.NET 搭配使用。Although you can use the bit values in scripting languages, you cannot use them with ASP.NET. 例如, Alignment = "2" 在 panel 標記中不是有效的語句。For example, Alignment = "2" within a panel tag is not a valid statement. 不過,在 Visual c # 中,您可以使用 this.myPanel.Alignment = 2However, in Visual C#, you can use this.myPanel.Alignment = 2.

適用於