Vcl.Grids.TCustomGrid.Selection

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property Selection: TGridRect read GetSelection write SetSelection;

C++

__property TGridRect Selection = {read=GetSelection, write=SetSelection};

プロパティ

種類 可視性 ソース ユニット
property protected
Vcl.Grids.pas
Vcl.Grids.hpp
Vcl.Grids TCustomGrid

説明

現在選択されている領域の境界を指定します。

セルの範囲を選択するには,Selection プロパティを設定します。Selection は,グリッド内の第 1 列,第 1 行,最終列,最終行か,または選択された領域における左上および右下のセルの行および列の座標を表現できます。

Selection は,Options に goRangeSelect が含まれているときは 1 つのセルだけを選択することができなくなり,必ず領域の指定を行わなければならなくなります。

関連項目