Current code in XLSRow5.pas (version 50.20.41):
Code: Select all
procedure TXLSRow.SetHeight(AValue: integer);
begin
if FRowItem <> Nil then
FRowItem.Height := AValue
else if AValue <> XLS_DEFAULT_ROWHEIGHT then begin
FRowItem := FOwner.FCells.AddRow(FIndex,XLS_STYLE_DEFAULT_XF);
FRowItem.Height := AValue;
FRowItem.Options := FRowItem.Options + [xroCustomHeight];
end;
end;
Code: Select all
procedure TXLSRow.SetHeight(AValue: integer);
begin
if FRowItem = Nil then
FRowItem := FOwner.FCells.AddRow(FIndex,XLS_STYLE_DEFAULT_XF);
if AValue <> XLS_DEFAULT_ROWHEIGHT then begin
FRowItem.Height := AValue;
FRowItem.Options := FRowItem.Options + [xroCustomHeight];
end;
end;