Border3DStyle 列挙体とは? わかりやすく解説

Border3DStyle 列挙体

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

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

<ComVisibleAttribute(True)> _
Public Enumeration Border3DStyle
Dim instance As Border3DStyle
[ComVisibleAttribute(true)] 
public enum Border3DStyle
[ComVisibleAttribute(true)] 
public enum class Border3DStyle
/** @attribute ComVisibleAttribute(true) */ 
public enum Border3DStyle
ComVisibleAttribute(true) 
public enum Border3DStyle
メンバメンバ
解説解説

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

使用例使用例

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.
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翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「Border3DStyle 列挙体」の関連用語

Border3DStyle 列挙体のお隣キーワード
検索ランキング

   

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



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

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

©2025 GRAS Group, Inc.RSS