VisualStyleRenderer.DrawParentBackground メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > VisualStyleRenderer.DrawParentBackground メソッドの意味・解説 

VisualStyleRenderer.DrawParentBackground メソッド

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

指定した領域にコントロールの親の背景を描画します。

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

Public Sub DrawParentBackground ( _
    dc As IDeviceContext, _
    bounds As Rectangle, _
    childControl As Control _
)
Dim instance As VisualStyleRenderer
Dim dc As IDeviceContext
Dim bounds As Rectangle
Dim childControl As Control

instance.DrawParentBackground(dc, bounds, childControl)
public void DrawParentBackground (
    IDeviceContext dc,
    Rectangle bounds,
    Control childControl
)
public:
void DrawParentBackground (
    IDeviceContext^ dc, 
    Rectangle bounds, 
    Control^ childControl
)
public void DrawParentBackground (
    IDeviceContext dc, 
    Rectangle bounds, 
    Control childControl
)
public function DrawParentBackground (
    dc : IDeviceContext, 
    bounds : Rectangle, 
    childControl : Control
)

パラメータ

dc

childControl の親の背景を描画するときに使用する IDeviceContext。このオブジェクトは、通常、子コントロールに属するものを使用します。

bounds

親コントロールの背景の描画先となる Rectangle。この四角形は、子コントロールの境界内に存在する必要があります。

childControl

親の背景が描画されるコントロール。

例外例外
例外の種類条件

ArgumentNullException

dc が null 参照 (Visual Basic では Nothing) です。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
VisualStyleRenderer クラス
VisualStyleRenderer メンバ
System.Windows.Forms.VisualStyles 名前空間



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

VisualStyleRenderer.DrawParentBackground メソッドのお隣キーワード
検索ランキング

   

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



VisualStyleRenderer.DrawParentBackground メソッドのページの著作権

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

©2026 GRAS Group, Inc.RSS