Class OTZControlPaint
共通の Windows コントロールとその要素を描画するために使用するメソッドを提供します。
Inheritance
System.Object
OTZControlPaint
名前空間: OTZControls.Utilities
アセンブリ: OTZControls.dll
Syntax
public class OTZControlPaint
メソッド
DrawBackgroundImage(Graphics, Control, Double)
指定したコントロールに親フォームに設定した画像を描画します。
宣言
public static Rectangle DrawBackgroundImage(Graphics g, Control toControl, double customOpacity = -1)
パラメーター
型 | 名前 | 説明 |
---|---|---|
System.Drawing.Graphics | g | 描画クラス。 |
Control | toControl | 描画対象のコントロール。 |
System.Double | customOpacity |
戻り値
型 | 説明 |
---|---|
System.Drawing.Rectangle |
DrawFocusRectangle(Graphics, Boolean, Rectangle)
フォーカスの枠線を描画します。
宣言
public static void DrawFocusRectangle(Graphics g, bool isDarkTheme, Rectangle rect)
パラメーター
型 | 名前 | 説明 |
---|---|---|
System.Drawing.Graphics | g | |
System.Boolean | isDarkTheme | |
System.Drawing.Rectangle | rect |
DrawFocusRectangle(Graphics, Color, Rectangle)
フォーカスの枠線を描画します。
宣言
public static void DrawFocusRectangle(Graphics g, Color color, Rectangle rect)
パラメーター
型 | 名前 | 説明 |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Color | color | |
System.Drawing.Rectangle | rect |
DrawWindowsXpCaption(Graphics, Control, Boolean)
タイトルバーの背景画像を描画します。
宣言
public static void DrawWindowsXpCaption(Graphics g, Control destControl, bool isActive)
パラメーター
型 | 名前 | 説明 |
---|---|---|
System.Drawing.Graphics | g | |
Control | destControl | |
System.Boolean | isActive |