'宣言 Protected Overrides Sub DrawFocus( _ ByRef drawParams As Infragistics.Win.UIElementDrawParams _ )
protected override void DrawFocus( ref Infragistics.Win.UIElementDrawParams drawParams )
Imports Infragistics.Win Protected Overrides Sub DrawFocus(ByRef drawParams As UIElementDrawParams) ' 境界線ボーダー内の矩形を取得します Dim rect As Rectangle = me.RectInsideBorders ' ControlPaint クラスを使用すると、フォーカス矩形を描画します ControlPaint.DrawFocusRectangle(drawParams.Graphics, _ rect, drawParams.AppearanceData.GetForeColor(Me.Enabled), _ drawParams.AppearanceData.GetBackColor(Me.Enabled)) End Sub
using Infragistics.Win; protected override void DrawFocus(ref UIElementDrawParams drawParams) { // 境界線ボーダー内の矩形を取得します Rectangle rect = this.RectInsideBorders; // ControlPaint クラスを使用すると、フォーカス矩形を描画します ControlPaint.DrawFocusRectangle(drawParams.Graphics, rect,drawParams.AppearanceData.GetForeColor(this.Enabled), drawParams.AppearanceData.GetBackColor(this.Enabled)); }