Class OTZButton
OTZ ボタンコントロールの機能を提供します。
Inheritance
System.Object
OTZButton
Implements
名前空間: OTZControls.Controls
アセンブリ: OTZControls.dll
Syntax
public class OTZButton : Button, IOTZControl
コンストラクタ
OTZButton()
コンストラクタ
宣言
public OTZButton()
プロパティ
ColorTable
カラーテーブルを取得または設定します。
宣言
[Browsable(false)]
public OTZControlColorTableBase ColorTable { get; set; }
プロパティ値
| 型 | 説明 |
|---|---|
| OTZControlColorTableBase | カラーテーブル。 |
Theme
テーマを取得または設定します。
宣言
public OTZControlThemeType Theme { get; set; }
プロパティ値
| 型 | 説明 |
|---|---|
| OTZControlThemeType | テーマ。 |
メソッド
GetRoundRect(Rectangle, Int32)
宣言
public GraphicsPath GetRoundRect(Rectangle rect, int radius)
パラメーター
| 型 | 名前 | 説明 |
|---|---|---|
| Rectangle | rect | |
| System.Int32 | radius |
戻り値
| 型 | 説明 |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath |
OnMouseDown(MouseEventArgs)
MouseDown イベントを発生させます。
宣言
protected override void OnMouseDown(MouseEventArgs mevent)
パラメーター
| 型 | 名前 | 説明 |
|---|---|---|
| MouseEventArgs | mevent |
OnMouseEnter(EventArgs)
MouseEnter イベントを発生させます。
宣言
protected override void OnMouseEnter(EventArgs e)
パラメーター
| 型 | 名前 | 説明 |
|---|---|---|
| EventArgs | e |
OnMouseLeave(EventArgs)
MouseLeave イベントを発生させます。
宣言
protected override void OnMouseLeave(EventArgs e)
パラメーター
| 型 | 名前 | 説明 |
|---|---|---|
| EventArgs | e |
OnMouseUp(MouseEventArgs)
MouseUp イベントを発生させます。
宣言
protected override void OnMouseUp(MouseEventArgs mevent)
パラメーター
| 型 | 名前 | 説明 |
|---|---|---|
| MouseEventArgs | mevent |
OnPaint(PaintEventArgs)
Paint イベントを発生させます。
独自描画しなくても UseVisualStyleBackColor = true でそれっぽい 描画をするのがわかったので一旦、独自描画はしない方針だったが Windows 10 でダークモードが反映されない不具合がみつかったので独自に描画する。
宣言
protected override void OnPaint(PaintEventArgs e)
パラメーター
| 型 | 名前 | 説明 |
|---|---|---|
| PaintEventArgs | e |
WndProc(ref Message)
Windows メッセージを処理します。
宣言
protected override void WndProc(ref Message m)
パラメーター
| 型 | 名前 | 説明 |
|---|---|---|
| Message | m |