バージョン

GetAdjustableCursor メソッド (RowCellAreaUIElementBase)

要素の調整可能領域の上に使用するためにカーソルを返します。
シンタックス
'宣言
 
Public Overrides Function GetAdjustableCursor( _
   ByVal point As Point _
) As Cursor
public override Cursor GetAdjustableCursor( 
   Point point
)

パラメータ

point
領域が調整可能であるかどうかを決定するために使用される点です。

戻り値の型

調整可能領域を表すために使用されるカーソルです。
使用例
Imports System.Diagnostics
Imports System.Collections
Imports Infragistics.Win
Imports System.Windows.Forms

  Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

	' グリッドで配列データを生成します
      Dim list As New ArrayList()

      list.AddRange(New Object() {"One", "Two"})
      Me.UltraGrid1.DataSource = list

  End Sub

  Private Sub UltraGrid1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles UltraGrid1.MouseDown

      PrintAdjustableElementFromPt(New Point(e.X, e.Y))

  End Sub

  Private Sub PrintAdjustableElementFromPt(ByVal pt As Point)

	'渡されたポイントの下に AdjustableElement があるかどうかを確認します
      Dim element As UIElement = Me.UltraGrid1.DisplayLayout.UIElement.AdjustableElementFromPoint(pt)

      If Not element Is Nothing Then

          Debug.WriteLine(element.GetType().ToString())

		  'AdjustableElement がある場合、その関連付けられたカーソルを取得します
          Dim cursor As Cursor = element.GetAdjustableCursor(pt)

          If (Not cursor Is Nothing) Then
              Debug.WriteLine("Cursor is adjustable")
          End If

          Debug.WriteLine("Not Adjustable")

      End If

  End Sub
using System.Diagnostics;
 using System.Collections;
 using Infragistics.Win;
 using System.Windows.Forms;


private void Form1_Load(object sender, System.EventArgs e)
{

	// グリッドで配列データを生成します
	ArrayList list = new ArrayList();

	list.AddRange(new object[] {"One","Two"});
	this.ultraGrid1.DataSource = list;

}

private void ultraGrid1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{

	PrintAdjustableElementFromPt(new Point(e.X,e.Y));

}

private void PrintAdjustableElementFromPt(Point pt)
{

	// 渡されたポイントの下に AdjustableElement があるかどうかを確認します
	UIElement element = this.ultraGrid1.DisplayLayout.UIElement.AdjustableElementFromPoint(pt);
	
		
	if (null != element )
	{
		Debug.WriteLine(element.GetType().ToString());

		// AdjustableElement がある場合、その関連付けられたカーソルを取得します
		Cursor cursor = element.GetAdjustableCursor(pt);

		if (null != cursor)
			Debug.WriteLine("Cursor is adjustable");
	}
	else
		Debug.WriteLine("Not Adjustable");
}
参照