バージョン

OnMouseDown メソッド (PaneSlidingGroupUIElement)

キャプションのUI要素のためにマウスボタンが押されたときに呼び出されます。
シンタックス
'宣言
 
Protected Overrides Function OnMouseDown( _
   ByVal e As MouseEventArgs, _
   ByVal adjustableArea As Boolean, _
   ByRef captureMouseForElement As Infragistics.Win.UIElement _
) As Boolean
protected override bool OnMouseDown( 
   MouseEventArgs e,
   bool adjustableArea,
   ref Infragistics.Win.UIElement captureMouseForElement
)

パラメータ

e
マウス イベント引数。
adjustableArea
マウスが調整可能領域の上にあるときにTrue。
captureMouseForElement
参照によって、どの要素がマウスをキャプチャするのかを示すために使用されるパラメーター。

戻り値の型

デフォルトの処理をオーバーライドするためにはTrue
使用例
Imports System.Windows.Forms
Imports Infragistics.Win
Imports System.Diagnostics

Private Sub ultraProgressBar1_MouseDown(ByVal sender As Object, ByVal e As MouseEventArgs) Handles MyBase.MouseDown
   
    ' ProgressFillTextUIElement のヒット テスト
    Dim fillTextUIElement As UIElement
 	fillTextUIElement = Me.ultraProgressBar1.UIElement.GetDescendant( _
		GetType(UltraWinProgressBar.ProgressFillTextUIElement))
    

    If Not fillTextUIElement Is Nothing Then
	  If fillTextUIElement.Contains(new Point(e.X,e.Y))
            Debug.WriteLine("Hit ProgressFillTextUIElement")
      End If
 		End If

End Sub
using System.Windows.Forms;
	usingInfragistics.Win;
	usingSystem.Diagnostics;

private void ultraProgressBar1_MouseDown(object sender, MouseEventArgs e)
{

	// ProgressFillTextUIElement のヒット テスト

	UIElement fillTextUIElement = this.ultraProgressBar1.UIElement.GetDescendant(typeof(UltraWinProgressBar.ProgressFillTextUIElement));

	if(null != fillTextUIElement)
		if(fillTextUIElement.Contains(new Point(e.X,e.Y))
			Debug.WriteLine("Hit ProgressFillTextUIElement");

}
参照