Border3DStyle 列挙型

定義

3D 境界線のスタイルを指定します。

public enum class Border3DStyle
[System.Runtime.InteropServices.ComVisible(true)]
public enum Border3DStyle
public enum Border3DStyle
[<System.Runtime.InteropServices.ComVisible(true)>]
type Border3DStyle = 
type Border3DStyle = 
Public Enum Border3DStyle
継承
Border3DStyle
属性

フィールド

Adjust 8192

境界線が指定した四角形の外側に描画され、四角形の大きさは保持されます。

Bump 9

境界線の内縁と外縁が、浮き出した状態で表示されます。

Etched 6

境界線の内縁と外縁が、くぼんだ状態で表示されます。

Flat 16394

境界線に 3D スタイルは適用されません。

Raised 5

境界線の内縁と外縁が、浮き出して表示されます。

RaisedInner 4

境界線の内縁だけが浮き出して表示され、外縁は表示されません。

RaisedOuter 1

境界線の外縁だけが浮き出して表示され、内縁は表示されません。

Sunken 10

境界線の内縁と外縁が、くぼんで表示されます。

SunkenInner 8

境界線の内縁だけがくぼんで表示され、外縁は表示されません。

SunkenOuter 2

境界線の外縁だけがくぼんで表示され、内縁は表示されません。

次のコード例では、 メソッドと 列挙体の ControlPaint.DrawBorder3D 使用方法を Border3DStyle 示します。 この例を実行するには、System.Windows.Forms 名前空間と System.Drawing 名前空間をインポートするフォームに次のコードを貼り付けます。 フォーム Paint のイベントが、この例のイベント処理メソッドに関連付けられていることを確認します。

// Handle the Form's Paint event to draw a 3D three-dimensional 
// raised border just inside the border of the frame.
void Form1_Paint( Object^ /*sender*/, PaintEventArgs^ e )
{
   Rectangle borderRectangle = this->ClientRectangle;
   borderRectangle.Inflate(  -10, -10 );
   ControlPaint::DrawBorder3D( e->Graphics, borderRectangle, Border3DStyle::Raised );
}
// Handle the Form's Paint event to draw a 3D three-dimensional 
// raised border just inside the border of the frame.
private void Form1_Paint(object sender, PaintEventArgs e)
{

    Rectangle borderRectangle = this.ClientRectangle;
    borderRectangle.Inflate(-10, -10);
    ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, 
        Border3DStyle.Raised);
}
' Handle the Form's Paint event to draw a 3D three-dimensional 
' raised border just inside the border of the frame.
Private Sub Form1_Paint(ByVal sender As Object, _
    ByVal e As PaintEventArgs) Handles MyBase.Paint

    Dim borderRectangle As Rectangle = Me.ClientRectangle
    borderRectangle.Inflate(-10, -10)
    ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, _
        Border3DStyle.Raised)
End Sub

注釈

クラスの メソッドを呼び出すときに、 DrawBorder3D この列挙体のメンバーを ControlPaint 使用します。

適用対象