HotXLS ドキュメント

AddCondFormatIconSet メソッド

セル範囲に Excel 2007+ の アイコンセット 条件付き書式ルールを追加し、新しい TCondFormatRule を返します。各セルはその値のパーセンタイルに基づいてアイコンを 1 つ受け取ります

構文

function AddCondFormatIconSet(const ARange: WideString;
  ASetType: TXLSIconSetType): TCondFormatRule;
ARange WideString. Sqref String, e.g. 'A1:A10'
ASetType TXLSIconSetType. One of the 17 baseline Excel 2007 icon families — icsArrows3 / icsArrows3Gray / icsFlags3 / icsTrafficLights3 / icsTrafficLightsRimmed3 / icsSigns3 / icsSymbols3 / icsSymbolsUncircled3 / icsArrows4 / icsArrows4Gray / icsRedToBlack4 / icsRatings4 / icsTrafficLights4 / icsArrows5 / icsArrows5Gray / icsRatings5 / icsQuarters5. See TXLSIconSetType

使用例

この例では、A1:A10 に「3 方向の矢印 (色あり)」アイコンセットを設定します

関連項目


Sheet.AddCondFormatIconSet('A1:A10', icsArrows3);

関連項目