Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2389-EpsLexicase/HeuristicLab.ExtLibs/HeuristicLab.EPPlus/4.0.3/EPPlus-4.0.3/ConditionalFormatting/ExcelConditionalFormattingEnums.cs

Last change on this file was 12074, checked in by sraggl, 10 years ago

#2341: Added EPPlus-4.0.3 to ExtLibs

File size: 21.5 KB
Line 
1/*******************************************************************************
2 * You may amend and distribute as you like, but don't remove this header!
3 *
4 * EPPlus provides server-side generation of Excel 2007/2010 spreadsheets.
5 * See http://www.codeplex.com/EPPlus for details.
6 *
7 * Copyright (C) 2011  Jan Källman
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
17 * See the GNU Lesser General Public License for more details.
18 *
19 * The GNU Lesser General Public License can be viewed at http://www.opensource.org/licenses/lgpl-license.php
20 * If you unfamiliar with this license or have questions about it, here is an http://www.gnu.org/licenses/gpl-faq.html
21 *
22 * All code and executables are provided "as is" with no warranty either express or implied.
23 * The author accepts no liability for any damage or loss of business that this product may cause.
24 *
25 * Code change notes:
26 *
27 * Author          Change                             Date
28 * ******************************************************************************
29 * Eyal Seagull    Conditional Formatting Adaption    2012-04-03
30 *******************************************************************************/
31using System;
32using System.Collections.Generic;
33using System.Linq;
34using System.Text;
35using System.Xml;
36
37namespace OfficeOpenXml.ConditionalFormatting
38{
39  /// <summary>
40  /// Enum for Conditional Format Type ST_CfType §18.18.12. With some changes.
41  /// </summary>
42  public enum eExcelConditionalFormattingRuleType
43  {
44    #region Average
45    /// <summary>
46    /// This conditional formatting rule highlights cells that are above the average
47    /// for all values in the range.
48    /// </summary>
49    /// <remarks>AboveAverage Excel CF Rule Type</remarks>
50    AboveAverage,
51
52    /// <summary>
53    /// This conditional formatting rule highlights cells that are above or equal
54    /// the average for all values in the range.
55    /// </summary>
56    /// <remarks>AboveAverage Excel CF Rule Type</remarks>
57    AboveOrEqualAverage,
58
59    /// <summary>
60    /// This conditional formatting rule highlights cells that are below the average
61    /// for all values in the range.
62    /// </summary>
63    /// <remarks>AboveAverage Excel CF Rule Type</remarks>
64    BelowAverage,
65
66    /// <summary>
67    /// This conditional formatting rule highlights cells that are below or equal
68    /// the average for all values in the range.
69    /// </summary>
70    /// <remarks>AboveAverage Excel CF Rule Type</remarks>
71    BelowOrEqualAverage,
72    #endregion
73
74    #region StdDev
75    /// <summary>
76    /// This conditional formatting rule highlights cells that are above the standard
77    /// deviationa for all values in the range.
78    /// <remarks>AboveAverage Excel CF Rule Type</remarks>
79    /// </summary>
80    AboveStdDev,
81
82    /// <summary>
83    /// This conditional formatting rule highlights cells that are below the standard
84    /// deviationa for all values in the range.
85    /// </summary>
86    /// <remarks>AboveAverage Excel CF Rule Type</remarks>
87    BelowStdDev,
88    #endregion
89
90    #region TopBottom
91    /// <summary>
92    /// This conditional formatting rule highlights cells whose values fall in the
93    /// bottom N bracket as specified.
94    /// </summary>
95    /// <remarks>Top10 Excel CF Rule Type</remarks>
96    Bottom,
97
98    /// <summary>
99    /// This conditional formatting rule highlights cells whose values fall in the
100    /// bottom N percent as specified.
101    /// </summary>
102    /// <remarks>Top10 Excel CF Rule Type</remarks>
103    BottomPercent,
104
105    /// <summary>
106    /// This conditional formatting rule highlights cells whose values fall in the
107    /// top N bracket as specified.
108    /// </summary>
109    /// <remarks>Top10 Excel CF Rule Type</remarks>
110    Top,
111
112    /// <summary>
113    /// This conditional formatting rule highlights cells whose values fall in the
114    /// top N percent as specified.
115    /// </summary>
116    /// <remarks>Top10 Excel CF Rule Type</remarks>
117    TopPercent,
118    #endregion
119
120    #region TimePeriod
121    /// <summary>
122    /// This conditional formatting rule highlights cells containing dates in the
123    /// last 7 days.
124    /// </summary>
125    /// <remarks>TimePeriod Excel CF Rule Type</remarks>
126    Last7Days,
127
128    /// <summary>
129    /// This conditional formatting rule highlights cells containing dates in the
130    /// last month.
131    /// </summary>
132    /// <remarks>TimePeriod Excel CF Rule Type</remarks>
133    LastMonth,
134
135    /// <summary>
136    /// This conditional formatting rule highlights cells containing dates in the
137    /// last week.
138    /// </summary>
139    /// <remarks>TimePeriod Excel CF Rule Type</remarks>
140    LastWeek,
141
142    /// <summary>
143    /// This conditional formatting rule highlights cells containing dates in the
144    /// next month.
145    /// </summary>
146    /// <remarks>TimePeriod Excel CF Rule Type</remarks>
147    NextMonth,
148
149    /// <summary>
150    /// This conditional formatting rule highlights cells containing dates in the
151    /// next week.
152    /// </summary>
153    /// <remarks>TimePeriod Excel CF Rule Type</remarks>
154    NextWeek,
155
156    /// <summary>
157    /// This conditional formatting rule highlights cells containing dates in this
158    /// month.
159    /// </summary>
160    /// <remarks>TimePeriod Excel CF Rule Type</remarks>
161    ThisMonth,
162
163    /// <summary>
164    /// This conditional formatting rule highlights cells containing dates in this
165    /// week.
166    /// </summary>
167    /// <remarks>TimePeriod Excel CF Rule Type</remarks>
168    ThisWeek,
169
170    /// <summary>
171    /// This conditional formatting rule highlights cells containing today dates.
172    /// </summary>
173    /// <remarks>TimePeriod Excel CF Rule Type</remarks>
174    Today,
175
176    /// <summary>
177    /// This conditional formatting rule highlights cells containing tomorrow dates.
178    /// </summary>
179    /// <remarks>TimePeriod Excel CF Rule Type</remarks>
180    Tomorrow,
181
182    /// <summary>
183    /// This conditional formatting rule highlights cells containing yesterday dates.
184    /// </summary>
185    /// <remarks>TimePeriod Excel CF Rule Type</remarks>
186    Yesterday,
187    #endregion
188
189    #region CellIs
190    /// <summary>
191    /// This conditional formatting rule highlights cells in the range that begin with
192    /// the given text.
193    /// </summary>
194    /// <remarks>
195    /// Equivalent to using the LEFT() sheet function and comparing values.
196    /// </remarks>
197    /// <remarks>BeginsWith Excel CF Rule Type</remarks>
198    BeginsWith,
199
200    /// <summary>
201    /// This conditional formatting rule highlights cells in the range between the
202    /// given two formulas.
203    /// </summary>
204    /// <remarks>CellIs Excel CF Rule Type</remarks>
205    Between,
206
207    /// <summary>
208    /// This conditional formatting rule highlights cells that are completely blank.
209    /// </summary>
210    /// <remarks>
211    /// Equivalent of using LEN(TRIM()). This means that if the cell contains only
212    /// characters that TRIM() would remove, then it is considered blank. An empty cell
213    /// is also considered blank.
214    /// </remarks>
215    /// <remarks>ContainsBlanks Excel CF Rule Type</remarks>
216    ContainsBlanks,
217
218    /// <summary>
219    /// This conditional formatting rule highlights cells with formula errors.
220    /// </summary>
221    /// <remarks>
222    /// Equivalent to using ISERROR() sheet function to determine if there is
223    /// a formula error.
224    /// </remarks>
225    /// <remarks>ContainsErrors Excel CF Rule Type</remarks>
226    ContainsErrors,
227
228    /// <summary>
229    /// This conditional formatting rule highlights cells in the range that begin with
230    /// the given text.
231    /// </summary>
232    /// <remarks>
233    /// Equivalent to using the LEFT() sheet function and comparing values.
234    /// </remarks>
235    /// <remarks>ContainsText Excel CF Rule Type</remarks>
236    ContainsText,
237
238    /// <summary>
239    /// This conditional formatting rule highlights duplicated values.
240    /// </summary>
241    /// <remarks>DuplicateValues Excel CF Rule Type</remarks>
242    DuplicateValues,
243
244    /// <summary>
245    /// This conditional formatting rule highlights cells ending with given text.
246    /// </summary>
247    /// <remarks>
248    /// Equivalent to using the RIGHT() sheet function and comparing values.
249    /// </remarks>
250    /// <remarks>EndsWith Excel CF Rule Type</remarks>
251    EndsWith,
252
253    /// <summary>
254    /// This conditional formatting rule highlights cells equals to with given formula.
255    /// </summary>
256    /// <remarks>CellIs Excel CF Rule Type</remarks>
257    Equal,
258
259    /// <summary>
260    /// This conditional formatting rule contains a formula to evaluate. When the
261    /// formula result is true, the cell is highlighted.
262    /// </summary>
263    /// <remarks>Expression Excel CF Rule Type</remarks>
264    Expression,
265
266    /// <summary>
267    /// This conditional formatting rule highlights cells greater than the given formula.
268    /// </summary>
269    /// <remarks>CellIs Excel CF Rule Type</remarks>
270    GreaterThan,
271
272    /// <summary>
273    /// This conditional formatting rule highlights cells greater than or equal the
274    /// given formula.
275    /// </summary>
276    /// <remarks>CellIs Excel CF Rule Type</remarks>
277    GreaterThanOrEqual,
278
279    /// <summary>
280    /// This conditional formatting rule highlights cells less than the given formula.
281    /// </summary>
282    /// <remarks>CellIs Excel CF Rule Type</remarks>
283    LessThan,
284
285    /// <summary>
286    /// This conditional formatting rule highlights cells less than or equal the
287    /// given formula.
288    /// </summary>
289    /// <remarks>CellIs Excel CF Rule Type</remarks>
290    LessThanOrEqual,
291
292    /// <summary>
293    /// This conditional formatting rule highlights cells outside the range in
294    /// given two formulas.
295    /// </summary>
296    /// <remarks>CellIs Excel CF Rule Type</remarks>
297    NotBetween,
298
299    /// <summary>
300    /// This conditional formatting rule highlights cells that does not contains the
301    /// given formula.
302    /// </summary>
303    /// <remarks>CellIs Excel CF Rule Type</remarks>
304    NotContains,
305
306    /// <summary>
307    /// This conditional formatting rule highlights cells that are not blank.
308    /// </summary>
309    /// <remarks>
310    /// Equivalent of using LEN(TRIM()). This means that if the cell contains only
311    /// characters that TRIM() would remove, then it is considered blank. An empty cell
312    /// is also considered blank.
313    /// </remarks>
314    /// <remarks>NotContainsBlanks Excel CF Rule Type</remarks>
315    NotContainsBlanks,
316
317    /// <summary>
318    /// This conditional formatting rule highlights cells without formula errors.
319    /// </summary>
320    /// <remarks>
321    /// Equivalent to using ISERROR() sheet function to determine if there is a
322    /// formula error.
323    /// </remarks>
324    /// <remarks>NotContainsErrors Excel CF Rule Type</remarks>
325    NotContainsErrors,
326
327    /// <summary>
328    /// This conditional formatting rule highlights cells that do not contain
329    /// the given text.
330    /// </summary>
331    /// <remarks>
332    /// Equivalent to using the SEARCH() sheet function.
333    /// </remarks>
334    /// <remarks>NotContainsText Excel CF Rule Type</remarks>
335    NotContainsText,
336
337    /// <summary>
338    /// This conditional formatting rule highlights cells not equals to with
339    /// given formula.
340    /// </summary>
341    /// <remarks>CellIs Excel CF Rule Type</remarks>
342    NotEqual,
343
344    /// <summary>
345    /// This conditional formatting rule highlights unique values in the range.
346    /// </summary>
347    /// <remarks>UniqueValues Excel CF Rule Type</remarks>
348    UniqueValues,
349    #endregion
350
351    #region ColorScale
352    /// <summary>
353    /// Three Color Scale (Low, Middle and High Color Scale)
354    /// </summary>
355    /// <remarks>ColorScale Excel CF Rule Type</remarks>
356    ThreeColorScale,
357
358    /// <summary>
359    /// Two Color Scale (Low and High Color Scale)
360    /// </summary>
361    /// <remarks>ColorScale Excel CF Rule Type</remarks>
362    TwoColorScale,
363    #endregion
364
365    #region IconSet
366    /// <summary>
367    /// This conditional formatting rule applies a 3 set icons to cells according
368    /// to their values.
369    /// </summary>
370    /// <remarks>IconSet Excel CF Rule Type</remarks>
371    ThreeIconSet,
372
373    /// <summary>
374    /// This conditional formatting rule applies a 4 set icons to cells according
375    /// to their values.
376    /// </summary>
377    /// <remarks>IconSet Excel CF Rule Type</remarks>
378    FourIconSet,
379
380    /// <summary>
381    /// This conditional formatting rule applies a 5 set icons to cells according
382    /// to their values.
383    /// </summary>
384    /// <remarks>IconSet Excel CF Rule Type</remarks>
385    FiveIconSet,
386    #endregion
387
388    #region DataBar
389    /// <summary>
390    /// This conditional formatting rule displays a gradated data bar in the range of cells.
391    /// </summary>
392    /// <remarks>DataBar Excel CF Rule Type</remarks>
393    DataBar
394    #endregion
395  }
396
397  /// <summary>
398  /// Enum for Conditional Format Value Object Type ST_CfvoType §18.18.13
399  /// </summary>
400  public enum eExcelConditionalFormattingValueObjectType
401  {
402    /// <summary>
403    /// Formula
404    /// </summary>
405    Formula,
406
407    /// <summary>
408    /// Maximum Value
409    /// </summary>
410    Max,
411
412    /// <summary>
413    /// Minimum Value
414    /// </summary>
415    Min,
416
417    /// <summary>
418    /// Number Value
419    /// </summary>
420    Num,
421
422    /// <summary>
423    /// Percent
424    /// </summary>
425    Percent,
426
427    /// <summary>
428    /// Percentile
429    /// </summary>
430    Percentile
431  }
432
433  /// <summary>
434  /// Enum for Conditional Formatting Value Object Position
435  /// </summary>
436  public enum eExcelConditionalFormattingValueObjectPosition
437  {
438    /// <summary>
439    /// The lower position for both TwoColorScale and ThreeColorScale
440    /// </summary>
441    Low,
442
443    /// <summary>
444    /// The middle position only for ThreeColorScale
445    /// </summary>
446    Middle,
447
448    /// <summary>
449    /// The highest position for both TwoColorScale and ThreeColorScale
450    /// </summary>
451    High
452  }
453
454  /// <summary>
455  /// Enum for Conditional Formatting Value Object Node Type
456  /// </summary>
457  public enum eExcelConditionalFormattingValueObjectNodeType
458  {
459    /// <summary>
460    /// 'cfvo' node
461    /// </summary>
462    Cfvo,
463
464    /// <summary>
465    /// 'color' node
466    /// </summary>
467    Color
468  }
469
470  /// <summary>
471  /// Enum for Conditional Formatting Operartor Type ST_ConditionalFormattingOperator §18.18.15
472  /// </summary>
473  public enum eExcelConditionalFormattingOperatorType
474  {
475    /// <summary>
476    /// Begins With. 'Begins with' operator
477    /// </summary>
478    BeginsWith,
479
480    /// <summary>
481    /// Between. 'Between' operator
482    /// </summary>
483    Between,
484
485    /// <summary>
486    /// Contains. 'Contains' operator
487    /// </summary>
488    ContainsText,
489
490    /// <summary>
491    /// Ends With. 'Ends with' operator
492    /// </summary>
493    EndsWith,
494
495    /// <summary>
496    /// Equal. 'Equal to' operator
497    /// </summary>
498    Equal,
499
500    /// <summary>
501    /// Greater Than. 'Greater than' operator
502    /// </summary>
503    GreaterThan,
504
505    /// <summary>
506    /// Greater Than Or Equal. 'Greater than or equal to' operator
507    /// </summary>
508    GreaterThanOrEqual,
509
510    /// <summary>
511    /// Less Than. 'Less than' operator
512    /// </summary>
513    LessThan,
514
515    /// <summary>
516    /// Less Than Or Equal. 'Less than or equal to' operator
517    /// </summary>
518    LessThanOrEqual,
519
520    /// <summary>
521    /// Not Between. 'Not between' operator
522    /// </summary>
523    NotBetween,
524
525    /// <summary>
526    /// Does Not Contain. 'Does not contain' operator
527    /// </summary>
528    NotContains,
529
530    /// <summary>
531    /// Not Equal. 'Not equal to' operator
532    /// </summary>
533    NotEqual
534  }
535
536  /// <summary>
537  /// Enum for Conditional Formatting Time Period Type ST_TimePeriod §18.18.82
538  /// </summary>
539  public enum eExcelConditionalFormattingTimePeriodType
540  {
541    /// <summary>
542    /// Last 7 Days. A date in the last seven days.
543    /// </summary>
544    Last7Days,
545
546    /// <summary>
547    /// Last Month. A date occuring in the last calendar month.
548    /// </summary>
549    LastMonth,
550
551    /// <summary>
552    /// Last Week. A date occuring last week.
553    /// </summary>
554    LastWeek,
555
556    /// <summary>
557    /// Next Month. A date occuring in the next calendar month.
558    /// </summary>
559    NextMonth,
560
561    /// <summary>
562    /// Next Week. A date occuring next week.
563    /// </summary>
564    NextWeek,
565
566    /// <summary>
567    /// This Month. A date occuring in this calendar month.
568    /// </summary>
569    ThisMonth,
570
571    /// <summary>
572    /// This Week. A date occuring this week.
573    /// </summary>
574    ThisWeek,
575
576    /// <summary>
577    /// Today. Today's date.
578    /// </summary>
579    Today,
580
581    /// <summary>
582    /// Tomorrow. Tomorrow's date.
583    /// </summary>
584    Tomorrow,
585
586    /// <summary>
587    /// Yesterday. Yesterday's date.
588    /// </summary>
589    Yesterday
590  }
591
592  /// <summary>
593  /// 18.18.42 ST_IconSetType (Icon Set Type) - Only 3 icons
594  /// </summary>
595  public enum eExcelconditionalFormatting3IconsSetType
596  {
597    /// <summary>
598    /// (3 Arrows) 3 arrows icon set.
599    /// </summary>
600    Arrows,
601
602    /// <summary>
603    /// (3 Arrows (Gray)) 3 gray arrows icon set.
604    /// </summary>
605    ArrowsGray,
606
607    /// <summary>
608    /// (3 Flags) 3 flags icon set.
609    /// </summary>
610    Flags,
611
612    /// <summary>
613    /// (3 Signs) 3 signs icon set.
614    /// </summary>
615    Signs,
616
617    /// <summary>
618    /// (3 Symbols Circled) 3 symbols icon set.
619    /// </summary>
620    Symbols,
621
622    /// <summary>
623    /// (3 Symbols) 3 Symbols icon set.
624    /// </summary>
625    Symbols2,
626
627    /// <summary>
628    /// (3 Traffic Lights) 3 traffic lights icon set (#1).
629    /// </summary>
630    TrafficLights1,
631
632    /// <summary>
633    /// (3 Traffic Lights Black) 3 traffic lights icon set with thick black border.
634    /// </summary>
635    TrafficLights2
636  }
637
638  /// <summary>
639  /// 18.18.42 ST_IconSetType (Icon Set Type) - Only 4 icons
640  /// </summary>
641  public enum eExcelconditionalFormatting4IconsSetType
642  {
643    /// <summary>
644    /// (4 Arrows) 4 arrows icon set.
645    /// </summary>
646    Arrows,
647
648    /// <summary>
649    /// (4 Arrows (Gray)) 4 gray arrows icon set.
650    /// </summary>
651    ArrowsGray,
652
653    /// <summary>
654    /// (4 Ratings) 4 ratings icon set.
655    /// </summary>
656    Rating,
657
658    /// <summary>
659    /// (4 Red To Black) 4 'red to black' icon set.
660    /// </summary>
661    RedToBlack,
662
663    /// <summary>
664    /// (4 Traffic Lights) 4 traffic lights icon set.
665    /// </summary>
666    TrafficLights
667  }
668
669  /// <summary>
670  /// 18.18.42 ST_IconSetType (Icon Set Type) - Only 5 icons
671  /// </summary>
672  public enum eExcelconditionalFormatting5IconsSetType
673  {
674    /// <summary>
675    /// (5 Arrows) 5 arrows icon set.
676    /// </summary>
677    Arrows,
678
679    /// <summary>
680    /// (5 Arrows (Gray)) 5 gray arrows icon set.
681    /// </summary>
682    ArrowsGray,
683
684    /// <summary>
685    /// (5 Quarters) 5 quarters icon set.
686    /// </summary>
687    Quarters,
688
689    /// <summary>
690    /// (5 Ratings Icon Set) 5 rating icon set.
691    /// </summary>
692    Rating
693  }
694  /// <summary>
695  /// 18.18.42 ST_IconSetType (Icon Set Type)
696  /// </summary>
697  public enum eExcelconditionalFormattingIconsSetType
698  {
699      /// <summary>
700      /// (3 Arrows) 3 arrows icon set.
701      /// </summary>
702      ThreeArrows,
703
704      /// <summary>
705      /// (3 Arrows (Gray)) 3 gray arrows icon set.
706      /// </summary>
707      ThreeArrowsGray,
708
709      /// <summary>
710      /// (3 Flags) 3 flags icon set.
711      /// </summary>
712      ThreeFlags,
713
714      /// <summary>
715      /// (3 Signs) 3 signs icon set.
716      /// </summary>
717      ThreeSigns,
718
719      /// <summary>
720      /// (3 Symbols Circled) 3 symbols icon set.
721      /// </summary>
722      ThreeSymbols,
723
724      /// <summary>
725      /// (3 Symbols) 3 Symbols icon set.
726      /// </summary>
727      ThreeSymbols2,
728
729      /// <summary>
730      /// (3 Traffic Lights) 3 traffic lights icon set (#1).
731      /// </summary>
732      ThreeTrafficLights1,
733
734      /// <summary>
735      /// (3 Traffic Lights Black) 3 traffic lights icon set with thick black border.
736      /// </summary>
737      ThreeTrafficLights2,
738 
739    /// <summary>
740    /// (4 Arrows) 4 arrows icon set.
741    /// </summary>
742    FourArrows,
743
744    /// <summary>
745    /// (4 Arrows (Gray)) 4 gray arrows icon set.
746    /// </summary>
747    FourArrowsGray,
748
749    /// <summary>
750    /// (4 Ratings) 4 ratings icon set.
751    /// </summary>
752    FourRating,
753
754    /// <summary>
755    /// (4 Red To Black) 4 'red to black' icon set.
756    /// </summary>
757    FourRedToBlack,
758
759    /// <summary>
760    /// (4 Traffic Lights) 4 traffic lights icon set.
761    /// </summary>
762    FourTrafficLights,
763
764      /// <summary>
765    /// (5 Arrows) 5 arrows icon set.
766    /// </summary>
767    FiveArrows,
768
769    /// <summary>
770    /// (5 Arrows (Gray)) 5 gray arrows icon set.
771    /// </summary>
772    FiveArrowsGray,
773
774    /// <summary>
775    /// (5 Quarters) 5 quarters icon set.
776    /// </summary>
777    FiveQuarters,
778
779    /// <summary>
780    /// (5 Ratings Icon Set) 5 rating icon set.
781    /// </summary>
782    FiveRating
783}
784}
Note: See TracBrowser for help on using the repository browser.