ControlPaint.DrawBorder3Dとは? わかりやすく解説

ControlPaint.DrawBorder3D メソッド (Graphics, Rectangle, Border3DStyle, Border3DSide)

コントロール3D スタイル輪郭を、指定したスタイル使用して指定したグラフィックス表面側面指定した範囲内描画ます。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Shared Sub DrawBorder3D
 ( _
    graphics As Graphics, _
    rectangle As Rectangle, _
    style As Border3DStyle, _
    sides As Border3DSide _
)
Dim graphics As Graphics
Dim rectangle As Rectangle
Dim style As Border3DStyle
Dim sides As Border3DSide

ControlPaint.DrawBorder3D(graphics, rectangle, style, sides)
public static void DrawBorder3D
 (
    Graphics graphics,
    Rectangle rectangle,
    Border3DStyle style,
    Border3DSide sides
)
public:
static void DrawBorder3D (
    Graphics^ graphics, 
    Rectangle rectangle, 
    Border3DStyle style, 
    Border3DSide sides
)
public static void DrawBorder3D
 (
    Graphics graphics, 
    Rectangle rectangle, 
    Border3DStyle style, 
    Border3DSide sides
)
public static function DrawBorder3D
 (
    graphics : Graphics, 
    rectangle : Rectangle, 
    style : Border3DStyle, 
    sides : Border3DSide
)

パラメータ

graphics

描画する Graphics

rectangle

輪郭大きさを表す Rectangle

style

境界線スタイル指定する Border3DStyle 値の 1 つ

sides

輪郭描画する四角形の辺を指定する Border3DSide 値の 1 つ

使用例使用例

DrawBorder3D メソッドの中の 1 つ使用する方法次のコード例示します。この例を実行するには、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.
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
// 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.
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.get_ClientRectangle();
    borderRectangle.Inflate(-10, -10);
    ControlPaint.DrawBorder3D(e.get_Graphics(), borderRectangle, 
        Border3DStyle.Raised);
} //Form1_Paint
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ControlPaint クラス
ControlPaint メンバ
System.Windows.Forms 名前空間
Rectangle
Border3DStyle 列挙
Border3DSide 列挙

ControlPaint.DrawBorder3D メソッド (Graphics, Int32, Int32, Int32, Int32, Border3DStyle, Border3DSide)

コントロール3D スタイル輪郭を、指定したスタイル使用して指定したグラフィックス表面側面指定した範囲内描画ます。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Shared Sub DrawBorder3D
 ( _
    graphics As Graphics, _
    x As Integer, _
    y As Integer, _
    width As Integer, _
    height As Integer, _
    style As Border3DStyle, _
    sides As Border3DSide _
)
Dim graphics As Graphics
Dim x As Integer
Dim y As Integer
Dim width As Integer
Dim height As Integer
Dim style As Border3DStyle
Dim sides As Border3DSide

ControlPaint.DrawBorder3D(graphics, x, y, width, height, style, sides)
public static void DrawBorder3D
 (
    Graphics graphics,
    int x,
    int y,
    int width,
    int height,
    Border3DStyle style,
    Border3DSide sides
)
public:
static void DrawBorder3D (
    Graphics^ graphics, 
    int x, 
    int y, 
    int width, 
    int height, 
    Border3DStyle style, 
    Border3DSide sides
)
public static void DrawBorder3D
 (
    Graphics graphics, 
    int x, 
    int y, 
    int width, 
    int height, 
    Border3DStyle style, 
    Border3DSide sides
)
public static function DrawBorder3D
 (
    graphics : Graphics, 
    x : int, 
    y : int, 
    width : int, 
    height : int, 
    style : Border3DStyle, 
    sides : Border3DSide
)

パラメータ

graphics

描画する Graphics

x

輪郭四角形左上x 座標

y

輪郭四角形左上y 座標

width

輪郭四角形の幅。

height

輪郭四角形の高さ。

style

境界線スタイル指定する Border3DStyle 値の 1 つ

sides

輪郭描画する四角形の Border3DSide。

使用例使用例

DrawBorder3D メソッドの中の 1 つ使用する方法次のコード例示します。この例を実行するには、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.
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
// 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.
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.get_ClientRectangle();
    borderRectangle.Inflate(-10, -10);
    ControlPaint.DrawBorder3D(e.get_Graphics(), borderRectangle, 
        Border3DStyle.Raised);
} //Form1_Paint
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ControlPaint クラス
ControlPaint メンバ
System.Windows.Forms 名前空間
Border3DStyle 列挙
Border3DSide 列挙

ControlPaint.DrawBorder3D メソッド

コントロール3 次元スタイル輪郭描画ます。
オーバーロードの一覧オーバーロードの一覧

参照参照

関連項目

ControlPaint クラス
ControlPaint メンバ
System.Windows.Forms 名前空間
Rectangle
Border3DStyle 列挙

ControlPaint.DrawBorder3D メソッド (Graphics, Int32, Int32, Int32, Int32)

コントロール3D スタイル輪郭を、指定したグラフィックス表面指定した範囲内描画ます。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

解説解説

既定では、Border3DStyle.Etched スタイル使用して輪郭描画ます。

使用例使用例

DrawBorder3D メソッドの中の 1 つ使用する方法次のコード例示します。この例を実行するには、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.
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
// 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.
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.get_ClientRectangle();
    borderRectangle.Inflate(-10, -10);
    ControlPaint.DrawBorder3D(e.get_Graphics(), borderRectangle, 
        Border3DStyle.Raised);
} //Form1_Paint
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ControlPaint.DrawBorder3D メソッド (Graphics, Rectangle, Border3DStyle)

コントロール3D スタイル輪郭を、指定したスタイル使用して指定した範囲内指定したグラフィックス表面描画ます。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Shared Sub DrawBorder3D
 ( _
    graphics As Graphics, _
    rectangle As Rectangle, _
    style As Border3DStyle _
)
Dim graphics As Graphics
Dim rectangle As Rectangle
Dim style As Border3DStyle

ControlPaint.DrawBorder3D(graphics, rectangle, style)
public static void DrawBorder3D
 (
    Graphics graphics,
    Rectangle rectangle,
    Border3DStyle style
)
public:
static void DrawBorder3D (
    Graphics^ graphics, 
    Rectangle rectangle, 
    Border3DStyle style
)
public static void DrawBorder3D
 (
    Graphics graphics, 
    Rectangle rectangle, 
    Border3DStyle style
)
public static function DrawBorder3D
 (
    graphics : Graphics, 
    rectangle : Rectangle, 
    style : Border3DStyle
)

パラメータ

graphics

描画する Graphics

rectangle

輪郭大きさを表す Rectangle

style

境界線スタイル指定する Border3DStyle 値の 1 つ

使用例使用例

DrawBorder3D メソッドの中の 1 つ使用する方法次のコード例示します。この例を実行するには、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.
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
// 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.
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.get_ClientRectangle();
    borderRectangle.Inflate(-10, -10);
    ControlPaint.DrawBorder3D(e.get_Graphics(), borderRectangle, 
        Border3DStyle.Raised);
} //Form1_Paint
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ControlPaint.DrawBorder3D メソッド (Graphics, Int32, Int32, Int32, Int32, Border3DStyle)

コントロール3D スタイル輪郭を、指定したスタイル使用して指定した範囲内指定したグラフィックス表面描画ます。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Shared Sub DrawBorder3D
 ( _
    graphics As Graphics, _
    x As Integer, _
    y As Integer, _
    width As Integer, _
    height As Integer, _
    style As Border3DStyle _
)
Dim graphics As Graphics
Dim x As Integer
Dim y As Integer
Dim width As Integer
Dim height As Integer
Dim style As Border3DStyle

ControlPaint.DrawBorder3D(graphics, x, y, width, height, style)
public static void DrawBorder3D
 (
    Graphics graphics,
    int x,
    int y,
    int width,
    int height,
    Border3DStyle style
)
public:
static void DrawBorder3D (
    Graphics^ graphics, 
    int x, 
    int y, 
    int width, 
    int height, 
    Border3DStyle style
)
public static void DrawBorder3D
 (
    Graphics graphics, 
    int x, 
    int y, 
    int width, 
    int height, 
    Border3DStyle style
)
public static function DrawBorder3D
 (
    graphics : Graphics, 
    x : int, 
    y : int, 
    width : int, 
    height : int, 
    style : Border3DStyle
)

パラメータ

graphics

描画する Graphics

x

輪郭四角形左上x 座標

y

輪郭四角形左上y 座標

width

輪郭四角形の幅。

height

輪郭四角形の高さ。

style

境界線スタイル指定する Border3DStyle 値の 1 つ

使用例使用例

DrawBorder3D メソッドの中の 1 つ使用する方法次のコード例示します。この例を実行するには、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.
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
// 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.
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.get_ClientRectangle();
    borderRectangle.Inflate(-10, -10);
    ControlPaint.DrawBorder3D(e.get_Graphics(), borderRectangle, 
        Border3DStyle.Raised);
} //Form1_Paint
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ControlPaint.DrawBorder3D メソッド (Graphics, Rectangle)

コントロール3D スタイル輪郭を、指定したグラフィックス表面指定した範囲内描画ます。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

解説解説

既定では、Border3DStyle.Etched スタイル使用して輪郭描画ます。

使用例使用例

DrawBorder3D メソッドの中の 1 つ使用する方法次のコード例示します。この例を実行するには、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.
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
// 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.
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.get_ClientRectangle();
    borderRectangle.Inflate(-10, -10);
    ControlPaint.DrawBorder3D(e.get_Graphics(), borderRectangle, 
        Border3DStyle.Raised);
} //Form1_Paint
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「ControlPaint.DrawBorder3D」の関連用語

ControlPaint.DrawBorder3Dのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ControlPaint.DrawBorder3Dのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS