Border3DStyle 列挙型

定義

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

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

フィールド

名前 説明
RaisedOuter 1

境界線の外側のエッジが上がり、内側のエッジはありません。

SunkenOuter 2

境界線には、外側のエッジが沈み込み、内側のエッジがありません。

RaisedInner 4

境界線には上げ内側のエッジがあり、外側のエッジはありません。

Raised 5

境界線の内側と外側のエッジが上がっています。

Etched 6

境界線の内側と外側のエッジは、エッチングされた外観を持っています。

SunkenInner 8

境界線には、内側のエッジが沈み込み、外側のエッジがありません。

Bump 9

境界線の内側と外側のエッジは、浮き上がって見えます。

Sunken 10

境界線の内側と外側のエッジが沈んだ。

Adjust 8192

罫線は、指定した四角形の外側に描画され、描画用の四角形の寸法が保持されます。

Flat 16394

境界線には 3 次元効果はありません。

次のコード例では、 ControlPaint.DrawBorder3D メソッドと Border3DStyle 列挙体の使用方法を示します。 この例を実行するには、システムをインポートするフォームに次のコードを貼り付けます。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

注釈

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

適用対象