HotXLS ドキュメント

AddCondFormatIconSet メソッド

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

構文

function AddCondFormatIconSet(const ARange: WideString;
  ASetType: TXLSIconSetType): TCondFormatRule;
ARangeWideString. Sqref String, e.g. 'A1:A10'
ASetTypeTXLSIconSetType。Excel 2007 の標準 17 種類のアイコン ファミリーのいずれかです — icsArrows3 / icsArrows3Gray / icsFlags3 / icsTrafficLights3 / icsTrafficLightsRimmed3 / icsSigns3 / icsSymbols3 / icsSymbolsUncircled3 / icsArrows4 / icsArrows4Gray / icsRedToBlack4 / icsRatings4 / icsTrafficLights4 / icsArrows5 / icsArrows5Gray / icsRatings5 / icsQuarters5。詳細は TXLSIconSetType

使用例

この例では、A1:A10 に「3 方向の矢印 (色あり)」アイコンセットを設定します TCondFormatRule.IconSet to override individual thresholds via SetThreshold, or to set Reverse / ShowOnly

関連項目

AddCondFormatDataBar

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

関連項目