Wendet einen zuvor erfassten TXLSFormatSnapshot auf jede
Zelle in einem IXLSRange an und stellt die vollständige,
von CaptureFormat aufgezeichnete Formatierung wieder her
Syntax
procedure ApplyFormat(AFormat: TXLSFormatSnapshot);
Hinweise
Der Snapshot kann aus einer anderen Arbeitsmappe oder einem anderen
Arbeitsblatt stammen; die erfasste Formatierung wird erneut auf den
eigenen Formatpool des Zielbereichs angewendet.
AFormat darf nicht nil sein.
Beispiel
var
Snapshot: TXLSFormatSnapshot;
begin
Snapshot:= Workbook.Sheets[1].Range['A1', 'D1'].CaptureFormat;
Workbook.Sheets[2].Range['A1', 'D1'].ApplyFormat(Snapshot);
Snapshot.Free;
end;
Siehe auch