DataGridViewHeaderCell.MouseUpUnsharesRow メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ポインターが行のセル上にある間にマウス ボタンが離されたときに、行の共有を解除するかどうかを示します。
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
パラメーター
マウスの位置に関する情報を含む DataGridViewCellMouseEventArgs 。
返品
true マウスの左ボタンが離された場合、ビジュアル スタイルが有効になり、 EnableHeadersVisualStyles プロパティが trueされ、 DataGridView プロパティが nullされません。それ以外の場合は false。
注釈
ビジュアル スタイルを有効にする方法の詳細については、 Application.EnableVisualStyles メソッドを参照してください。
MouseUpUnsharesRow は、 OnMouseUpの直前に呼び出されます。
trueの呼び出しが行OnMouseUpの共有を解除する効果がある場合は、rowIndexを返す必要があります。 それ以外の場合 false 返す必要があります。
行共有の詳細については、「 Windows フォーム DataGridView コントロールのスケーリングのベスト プラクティス」を参照してください。