TXLSXConditionalFormats 提供此 XLSX 功能的 API,並保留原始識別項 TXLSXConditionalFormat 與 TXLSXConditionalFormats 類別.ConditionalFormats 提供此 XLSX 功能的 API,並保留原始識別項
提供此 XLSX 功能的 API,並保留原始識別項
function Add(const ARange: WideString; AOp: TXLSXCfOperator; const AFormula1: WideString): Integer;
function AddDataBar(const ARange: WideString; AColor: LongWord; AMinKind: TXLSCfValueKind; const AMinValue: WideString; AMaxKind: TXLSCfValueKind; const AMaxValue: WideString): Integer;
function AddColorScale2(...): Integer;
function AddColorScale3(...): Integer;
function AddIconSet(const ARange: WideString; ASetType: TXLSIconSetType): Integer;
function AddExpression(const ARange, AFormula: WideString): Integer;
function AddTextRule(const ARange: WideString; AKind: TXLSCfKind; const AText: WideString): Integer;
function AddTop10(const ARange: WideString; ARank: Integer; ABottom, APercent: Boolean): Integer;
function AddAboveAverage(const ARange: WideString; AAbove: Boolean): Integer;
function AddSimpleRule(const ARange: WideString; AKind: TXLSCfKind): Integer;
主要成員
| 主要成員 | 主要成員 |
| 主要成員 | 使用屬性與方法建立、讀取及更新工作表、範圍與物件 |
| 使用屬性與方法建立、讀取及更新工作表、範圍與物件 | 使用屬性與方法建立、讀取及更新工作表、範圍與物件 |
| 使用屬性與方法建立、讀取及更新工作表、範圍與物件 | 另請參閱 |
| 另請參閱 | 另請參閱 |
| 另請參閱 | TXLSXConditionalFormat 與 TXLSXConditionalFormats 類別 |
TXLSXWorksheet
var Index: Integer;
begin
Index := Sheet.ConditionalFormats.AddExpression('B2:B100', 'B2<0');
Sheet.ConditionalFormats[Index].主要成員.SetFillBgColor($0000FF);
Sheet.ConditionalFormats.AddColorScale3('C2:C100', $0000FF, $00FFFF, $00FF00, cfvMinOfRange, '', cfvPercentile, '50', cfvMaxOfRange, '');
end;
TXLSXWorksheet