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を使用できます。

適用対象