Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.EPPlus/4.0.3/EPPlus-4.0.3/ConditionalFormatting/Contracts/IRangeConditionalFormatting.cs @ 12074

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

#2341: Added EPPlus-4.0.3 to ExtLibs

File size: 10.6 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    2012-04-03
30 *******************************************************************************/
31using OfficeOpenXml.ConditionalFormatting.Contracts;
32using System.Drawing;
33
34namespace OfficeOpenXml.ConditionalFormatting
35{
36  /// <summary>
37  /// Provides functionality for adding Conditional Formatting to a range (<see cref="ExcelRangeBase"/>).
38  /// Each method will return a configurable condtional formatting type.
39  /// </summary>
40  public interface IRangeConditionalFormatting
41  {
42    /// <summary>
43    /// Adds a Above Average rule to the range
44    /// </summary>
45    /// <returns></returns>
46    IExcelConditionalFormattingAverageGroup AddAboveAverage();
47
48    /// <summary>
49    /// Adds a Above Or Equal Average rule to the range
50    /// </summary>
51    /// <returns></returns>
52    IExcelConditionalFormattingAverageGroup AddAboveOrEqualAverage();
53
54    /// <summary>
55    /// Adds a Below Average rule to the range
56    /// </summary>
57    /// <returns></returns>
58    IExcelConditionalFormattingAverageGroup AddBelowAverage();
59
60    /// <summary>
61    /// Adds a Below Or Equal Average rule to the range
62    /// </summary>
63    /// <returns></returns>
64    IExcelConditionalFormattingAverageGroup AddBelowOrEqualAverage();
65
66    /// <summary>
67    /// Adds a Above StdDev rule to the range
68    /// </summary>
69    /// <returns></returns>
70    IExcelConditionalFormattingStdDevGroup AddAboveStdDev();
71
72    /// <summary>
73    /// Adds a Below StdDev rule to the range
74    /// </summary>
75    /// <returns></returns>
76    IExcelConditionalFormattingStdDevGroup AddBelowStdDev();
77
78    /// <summary>
79    /// Adds a Bottom rule to the range
80    /// </summary>
81    /// <returns></returns>
82    IExcelConditionalFormattingTopBottomGroup AddBottom();
83
84    /// <summary>
85    /// Adds a Bottom Percent rule to the range
86    /// </summary>
87    /// <returns></returns>
88    IExcelConditionalFormattingTopBottomGroup AddBottomPercent();
89
90    /// <summary>
91    /// Adds a Top rule to the range
92    /// </summary>
93    /// <returns></returns>
94    IExcelConditionalFormattingTopBottomGroup AddTop();
95
96    /// <summary>
97    /// Adds a Top Percent rule to the range
98    /// </summary>
99    /// <returns></returns>
100    IExcelConditionalFormattingTopBottomGroup AddTopPercent();
101
102    /// <summary>
103    /// Adds a Last 7 Days rule to the range
104    /// </summary>
105    /// <returns></returns>
106    IExcelConditionalFormattingTimePeriodGroup AddLast7Days();
107
108    /// <summary>
109    /// Adds a Last Month rule to the range
110    /// </summary>
111    /// <returns></returns>
112    IExcelConditionalFormattingTimePeriodGroup AddLastMonth();
113
114    /// <summary>
115    /// Adds a Last Week rule to the range
116    /// </summary>
117    /// <returns></returns>
118    IExcelConditionalFormattingTimePeriodGroup AddLastWeek();
119
120    /// <summary>
121    /// Adds a Next Month rule to the range
122    /// </summary>
123    /// <returns></returns>
124    IExcelConditionalFormattingTimePeriodGroup AddNextMonth();
125
126    /// <summary>
127    /// Adds a Next Week rule to the range
128    /// </summary>
129    /// <returns></returns>
130    IExcelConditionalFormattingTimePeriodGroup AddNextWeek();
131
132    /// <summary>
133    /// Adds a This Month rule to the range
134    /// </summary>
135    /// <returns></returns>
136    IExcelConditionalFormattingTimePeriodGroup AddThisMonth();
137
138    /// <summary>
139    /// Adds a This Week rule to the range
140    /// </summary>
141    /// <returns></returns>
142    IExcelConditionalFormattingTimePeriodGroup AddThisWeek();
143
144    /// <summary>
145    /// Adds a Today rule to the range
146    /// </summary>
147    /// <returns></returns>
148    IExcelConditionalFormattingTimePeriodGroup AddToday();
149
150    /// <summary>
151    /// Adds a Tomorrow rule to the range
152    /// </summary>
153    /// <returns></returns>
154    IExcelConditionalFormattingTimePeriodGroup AddTomorrow();
155
156    /// <summary>
157    /// Adds a Yesterday rule to the range
158    /// </summary>
159    /// <returns></returns>
160    IExcelConditionalFormattingTimePeriodGroup AddYesterday();
161
162    /// <summary>
163    /// Adds a Begins With rule to the range
164    /// </summary>
165    /// <returns></returns>
166    IExcelConditionalFormattingBeginsWith AddBeginsWith();
167
168    /// <summary>
169    /// Adds a Between rule to the range
170    /// </summary>
171    /// <returns></returns>
172    IExcelConditionalFormattingBetween AddBetween();
173
174    /// <summary>
175    /// Adds a ContainsBlanks rule to the range
176    /// </summary>
177    /// <returns></returns>
178    IExcelConditionalFormattingContainsBlanks AddContainsBlanks();
179
180    /// <summary>
181    /// Adds a ContainsErrors rule to the range
182    /// </summary>
183    /// <returns></returns>
184    IExcelConditionalFormattingContainsErrors AddContainsErrors();
185
186    /// <summary>
187    /// Adds a ContainsText rule to the range
188    /// </summary>
189    /// <returns></returns>
190    IExcelConditionalFormattingContainsText AddContainsText();
191
192    /// <summary>
193    /// Adds a DuplicateValues rule to the range
194    /// </summary>
195    /// <returns></returns>
196    IExcelConditionalFormattingDuplicateValues AddDuplicateValues();
197
198    /// <summary>
199    /// Adds a EndsWith rule to the range
200    /// </summary>
201    /// <returns></returns>
202    IExcelConditionalFormattingEndsWith AddEndsWith();
203
204    /// <summary>
205    /// Adds a Equal rule to the range
206    /// </summary>
207    /// <returns></returns>
208    IExcelConditionalFormattingEqual AddEqual();
209
210    /// <summary>
211    /// Adds a Expression rule to the range
212    /// </summary>
213    /// <returns></returns>
214    IExcelConditionalFormattingExpression AddExpression();
215
216    /// <summary>
217    /// Adds a GreaterThan rule to the range
218    /// </summary>
219    /// <returns></returns>
220    IExcelConditionalFormattingGreaterThan AddGreaterThan();
221
222    /// <summary>
223    /// Adds a GreaterThanOrEqual rule to the range
224    /// </summary>
225    /// <returns></returns>
226    IExcelConditionalFormattingGreaterThanOrEqual AddGreaterThanOrEqual();
227
228    /// <summary>
229    /// Adds a LessThan rule to the range
230    /// </summary>
231    /// <returns></returns>
232    IExcelConditionalFormattingLessThan AddLessThan();
233
234    /// <summary>
235    /// Adds a LessThanOrEqual rule to the range
236    /// </summary>
237    /// <returns></returns>
238    IExcelConditionalFormattingLessThanOrEqual AddLessThanOrEqual();
239
240    /// <summary>
241    /// Adds a NotBetween rule to the range
242    /// </summary>
243    /// <returns></returns>
244    IExcelConditionalFormattingNotBetween AddNotBetween();
245
246    /// <summary>
247    /// Adds a NotContainsBlanks rule to the range
248    /// </summary>
249    /// <returns></returns>
250    IExcelConditionalFormattingNotContainsBlanks AddNotContainsBlanks();
251
252    /// <summary>
253    /// Adds a NotContainsErrors rule to the range
254    /// </summary>
255    /// <returns></returns>
256    IExcelConditionalFormattingNotContainsErrors AddNotContainsErrors();
257
258    /// <summary>
259    /// Adds a NotContainsText rule to the range
260    /// </summary>
261    /// <returns></returns>
262    IExcelConditionalFormattingNotContainsText AddNotContainsText();
263
264    /// <summary>
265    /// Adds a NotEqual rule to the range
266    /// </summary>
267    /// <returns></returns>
268    IExcelConditionalFormattingNotEqual AddNotEqual();
269
270    /// <summary>
271    /// Adds a UniqueValues rule to the range
272    /// </summary>
273    /// <returns></returns>
274    IExcelConditionalFormattingUniqueValues AddUniqueValues();
275
276    /// <summary>
277    /// Adds a <see cref="ExcelConditionalFormattingThreeColorScale"/> to the range
278    /// </summary>
279    /// <returns></returns>
280    IExcelConditionalFormattingThreeColorScale AddThreeColorScale();
281
282    /// <summary>
283    /// Adds a <see cref="ExcelConditionalFormattingTwoColorScale"/> to the range
284    /// </summary>
285    /// <returns></returns>
286    IExcelConditionalFormattingTwoColorScale AddTwoColorScale();
287
288    /// <summary>
289    /// Adds a <see cref="IExcelConditionalFormattingThreeIconSet&lt;eExcelconditionalFormatting3IconsSetType&gt;"/> to the range
290    /// </summary>
291    /// <param name="IconSet"></param>
292    /// <returns></returns>
293    IExcelConditionalFormattingThreeIconSet<eExcelconditionalFormatting3IconsSetType> AddThreeIconSet(eExcelconditionalFormatting3IconsSetType IconSet);
294    /// <summary>
295    /// Adds a <see cref="IExcelConditionalFormattingFourIconSet&lt;eExcelconditionalFormatting4IconsSetType&gt;"/> to the range
296    /// </summary>
297    /// <param name="IconSet"></param>
298    /// <returns></returns>
299    IExcelConditionalFormattingFourIconSet<eExcelconditionalFormatting4IconsSetType> AddFourIconSet(eExcelconditionalFormatting4IconsSetType IconSet);
300    /// <summary>
301    /// Adds a <see cref="IExcelConditionalFormattingFiveIconSet"/> to the range
302    /// </summary>
303    /// <param name="IconSet"></param>
304    /// <returns></returns>
305    IExcelConditionalFormattingFiveIconSet AddFiveIconSet(eExcelconditionalFormatting5IconsSetType IconSet);
306    /// <summary>
307    /// Adds a <see cref="IExcelConditionalFormattingDataBarGroup"/> to the range
308    /// </summary>
309    /// <param name="color"></param>
310    /// <returns></returns>
311    IExcelConditionalFormattingDataBarGroup AddDatabar(Color color);
312    }
313}
Note: See TracBrowser for help on using the repository browser.