DataGridViewHeaderCell.MouseUpUnsharesRow メソッド

定義

ポインターが行のセル上にある間にマウス ボタンが離されたときに、行の共有を解除するかどうかを示します。

protected:
 override bool MouseUpUnsharesRow(System::Windows::Forms::DataGridViewCellMouseEventArgs ^ e);
protected override bool MouseUpUnsharesRow(System.Windows.Forms.DataGridViewCellMouseEventArgs e);
override this.MouseUpUnsharesRow : System.Windows.Forms.DataGridViewCellMouseEventArgs -> bool
Protected Overrides Function MouseUpUnsharesRow (e As DataGridViewCellMouseEventArgs) As Boolean

パラメーター

e
DataGridViewCellMouseEventArgs

マウスの位置に関する情報を含む DataGridViewCellMouseEventArgs

返品

true マウスの左ボタンが離された場合、ビジュアル スタイルが有効になり、 EnableHeadersVisualStyles プロパティが trueされ、 DataGridView プロパティが nullされません。それ以外の場合は false

注釈

ビジュアル スタイルを有効にする方法の詳細については、 Application.EnableVisualStyles メソッドを参照してください。

MouseUpUnsharesRow は、 OnMouseUpの直前に呼び出されます。 trueの呼び出しが行OnMouseUpの共有を解除する効果がある場合は、rowIndexを返す必要があります。 それ以外の場合 false 返す必要があります。

行共有の詳細については、「 Windows フォーム DataGridView コントロールのスケーリングのベスト プラクティス」を参照してください。

適用対象

こちらもご覧ください