本文整理自网络,侵删。
typeTExCell = class(TStringGrid)
publicprocedure DeleteRow(ARow: Longint);procedure DeleteColumn(ACol: Longint);procedure InsertRow(ARow: LongInt);procedure InsertColumn(ACol: LongInt);end;
procedure TExCell.InsertColumn(ACol: Integer);beginColCount :=ColCount +1;MoveColumn(ColCount-1, ACol);end;
procedure TExCell.InsertRow(ARow: Integer);beginRowCount :=RowCount +1;MoveRow(RowCount-1, ARow);end;
procedure TExCell.DeleteColumn(ACol: Longint);beginMoveColumn(ACol, ColCount -1);ColCount := ColCount - 1;end;
procedure TExCell.DeleteRow(ARow: Longint);beginMoveRow(ARow, RowCount - 1);RowCount := RowCount - 1;end;――――――――――――――――
原文链接:https://blog.csdn.net/ozhy111/article/details/102821053
相关阅读 >>
Delphi excel操作,写了个adodataset转excel的函数
Delphi tms web core js callproc
Delphi 用updateresource修改exe文件图标(已修正)
更多相关阅读请进入《Delphi》频道 >>