Developer

SelectedCell

Indicate currently selected INxCell object represented by SelectedCol and SelectedRow properties.

property SelectedCell: INxCell read GetSelectedCell;

Example


procedure TForm1.Button1Click(Sender: TObject); var FontDialog: TFontDialog; begin if NextGrid61.IsSelectionValid then begin FontDialog := TFontDialog.Create(Self); try if NextGrid61.SelectedCell.IsFontSet then begin FontDialog.Font.Assign(NextGrid61.SelectedCell.Font); end; if FontDialog.Execute then begin NextGrid61.SelectedCell.Font := FontDialog.Font; end; finally FreeAndNil(FontDialog); end; end; end;

See also