FlexCel Studio for VCL/LCL
ContentsIndex
PreviousUpNext
TFlexCelImport.GetDefaultFormat Method

Returns the Excel standard format for an empty cell.

Pascal
procedure GetDefaultFormat(var F: TFlxFormat);
C++
__fastcall GetDefaultFormat(TFlxFormat F);
Parameters 
Description 
var F: TFlxFormat 
Variable where the default format will be returned. 

You can use the format returned by this methods as a base to create your own formats.

To create a cell format colored with the color nearest to clBlue, you could use: 

 

FlexCelImport.GetDefaultFormat(F);
F.FillPattern.FgColorIndex := F.NearestColorIndex(clBlue);
NewFormat := FlexCelImport.AddFormat(F);
Copyright (c) 2002-2008 TMS Software. All rights reserved.
What do you think about this topic? Send feedback!