PrepareHeaderDrag 方法

準備指定的資料行標頭以進行重新排序。

private void PrepareHeaderDrag(GridViewColumnHeader header, Point pos, Point relativePos, bool cancelInvoke)

警告

此方法屬於私人,並不適合直接使用在您的程式碼。

Microsoft 在任何情況下都不支援在實際執行應用程式中使用此方法。

參數

header GridViewColumnHeader
要準備重新排序的資料行標頭。

pos Point
相對於GridViewHeaderRowPresenter的位置,拖曳開始的位置。

relativePos Point
相對於header的位置,拖曳開始的位置。

cancelInvoke Boolean
true要取消重新排序;否則為false

需求

命名空間︰System.Windows.Controls

組件:PresentationFramework.dll

另請參閱