Skip to content

Commit

Permalink
Version 3.0.0.2
Browse files Browse the repository at this point in the history
Documentation added.
  • Loading branch information
JanKallman committed Jan 31, 2012
1 parent 9bd0fbf commit e1c2e0c
Show file tree
Hide file tree
Showing 10 changed files with 81 additions and 68 deletions.
1 change: 1 addition & 0 deletions EPPlus/ExcelPackage.cs
Expand Up @@ -137,6 +137,7 @@ namespace OfficeOpenXml
///
/// return newFile.FullName;
/// </code>
/// More samples can be found at <a href="http://epplus.codeplex.com/">http://epplus.codeplex.com/</a>
/// </summary>
public sealed class ExcelPackage : IDisposable
{
Expand Down
4 changes: 2 additions & 2 deletions EPPlus/Properties/AssemblyInfo.cs
Expand Up @@ -60,6 +60,6 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("3.0.0.1")]
[assembly: AssemblyFileVersion("3.0.0.1")]
[assembly: AssemblyVersion("3.0.0.2")]
[assembly: AssemblyFileVersion("3.0.0.2")]
[assembly: AllowPartiallyTrustedCallers]
99 changes: 36 additions & 63 deletions EPPlus/Table/ExcelTable.cs
Expand Up @@ -105,66 +105,6 @@ public enum TableStyles
Dark9,
Dark10,
Dark11,
//PivotStyleLight1,
//PivotStyleLight2,
//PivotStyleLight3,
//PivotStyleLight4,
//PivotStyleLight5,
//PivotStyleLight6,
//PivotStyleLight7,
//PivotStyleLight8,
//PivotStyleLight9,
//PivotStyleLight10,
//PivotStyleLight11,
//PivotStyleLight12,
//PivotStyleLight13,
//PivotStyleLight14,
//PivotStyleLight15,
//PivotStyleLight16,
//PivotStyleLight17,
//PivotStyleLight18,
//PivotStyleLight19,
//PivotStyleLight20,
//PivotStyleLight21,
//PivotStyleMedium1,
//PivotStyleMedium2,
//PivotStyleMedium3,
//PivotStyleMedium4,
//PivotStyleMedium5,
//PivotStyleMedium6,
//PivotStyleMedium7,
//PivotStyleMedium8,
//PivotStyleMedium9,
//PivotStyleMedium10,
//PivotStyleMedium11,
//PivotStyleMedium12,
//PivotStyleMedium13,
//PivotStyleMedium14,
//PivotStyleMedium15,
//PivotStyleMedium16,
//PivotStyleMedium17,
//PivotStyleMedium18,
//PivotStyleMedium19,
//PivotStyleMedium20,
//PivotStyleMedium21,
//PivotStyleMedium22,
//PivotStyleMedium23,
//PivotStyleMedium24,
//PivotStyleMedium25,
//PivotStyleMedium26,
//PivotStyleMedium27,
//PivotStyleMedium28
//PivotStyleDark1,
//PivotStyleDark2,
//PivotStyleDark3,
//PivotStyleDark4,
//PivotStyleDark5,
//PivotStyleDark6,
//PivotStyleDark7,
//PivotStyleDark8,
//PivotStyleDark9,
//PivotStyleDark10,
//PivotStyleDark11
}
/// <summary>
/// An Excel Table
Expand Down Expand Up @@ -286,7 +226,7 @@ internal int Id
const string NAME_PATH = "@name";
const string DISPLAY_NAME_PATH = "@displayName";
/// <summary>
/// Name of the table object in Excel
/// The name of the table object in Excel
/// </summary>
public string Name
{
Expand Down Expand Up @@ -328,6 +268,9 @@ public ExcelAddressBase Address
internal set;
}
ExcelTableColumnCollection _cols = null;
/// <summary>
/// Collection of the columns in the table
/// </summary>
public ExcelTableColumnCollection Columns
{
get
Expand All @@ -341,7 +284,7 @@ public ExcelTableColumnCollection Columns
}
TableStyles _tableStyle = TableStyles.Medium6;
/// <summary>
/// The table style. If this property is cusom the style from the StyleName propery is used.
/// The table style. If this property is cusom, the style from the StyleName propery is used.
/// </summary>
public TableStyles TableStyle
{
Expand All @@ -360,6 +303,9 @@ public TableStyles TableStyle
}
const string HEADERROWCOUNT_PATH = "@headerRowCount";
const string AUTOFILTER_PATH = "d:autoFilter/@ref";
/// <summary>
/// If the header row is visible or not
/// </summary>
public bool ShowHeader
{
get
Expand Down Expand Up @@ -418,7 +364,7 @@ private void WriteAutoFilter(bool showTotal)
}
}
/// <summary>
/// If the headerrow has an autofilter
/// If the header row has an autofilter
/// </summary>
public bool ShowFilter
{
Expand Down Expand Up @@ -447,6 +393,9 @@ public bool ShowFilter
}
const string TOTALSROWCOUNT_PATH = "@totalsRowCount";
const string TOTALSROWSHOWN_PATH = "@totalsRowShown";
/// <summary>
/// If the total row is visible or not
/// </summary>
public bool ShowTotal
{
get
Expand Down Expand Up @@ -479,6 +428,9 @@ public bool ShowTotal
}
}
const string STYLENAME_PATH = "d:tableStyleInfo/@name";
/// <summary>
/// The style name for custum styles
/// </summary>
public string StyleName
{
get
Expand Down Expand Up @@ -511,6 +463,9 @@ public string StyleName
}
}
const string SHOWFIRSTCOLUMN_PATH = "d:tableStyleInfo/@showFirstColumn";
/// <summary>
/// Display special formatting for the first row
/// </summary>
public bool ShowFirstColumn
{
get
Expand All @@ -523,6 +478,9 @@ public bool ShowFirstColumn
}
}
const string SHOWLASTCOLUMN_PATH = "d:tableStyleInfo/@showLastColumn";
/// <summary>
/// Display special formatting for the last row
/// </summary>
public bool ShowLastColumn
{
get
Expand All @@ -535,6 +493,9 @@ public bool ShowLastColumn
}
}
const string SHOWROWSTRIPES_PATH = "d:tableStyleInfo/@showRowStripes";
/// <summary>
/// Display banded rows
/// </summary>
public bool ShowRowStripes
{
get
Expand All @@ -547,6 +508,9 @@ public bool ShowRowStripes
}
}
const string SHOWCOLUMNSTRIPES_PATH = "d:tableStyleInfo/@showColumnStripes";
/// <summary>
/// Display banded columns
/// </summary>
public bool ShowColumnStripes
{
get
Expand All @@ -560,6 +524,9 @@ public bool ShowColumnStripes
}

const string TOTALSROWCELLSTYLE_PATH = "@totalsRowCellStyle";
/// <summary>
/// Named style used for the total row
/// </summary>
public string TotalsRowCellStyle
{
get
Expand All @@ -581,6 +548,9 @@ public string TotalsRowCellStyle
}
}
const string DATACELLSTYLE_PATH = "@dataCellStyle";
/// <summary>
/// Named style used for the data cells
/// </summary>
public string DataCellStyleName
{
get
Expand All @@ -605,6 +575,9 @@ public string DataCellStyleName
}
}
const string HEADERROWCELLSTYLE_PATH = "@headerRowCellStyle";
/// <summary>
/// Named style used for the header row
/// </summary>
public string HeaderRowCellStyle
{
get
Expand Down
8 changes: 8 additions & 0 deletions EPPlus/Table/ExcelTableCollection.cs
Expand Up @@ -105,6 +105,9 @@ internal string GetNewTableName()
}
return name;
}
/// <summary>
/// Number of items in the collection
/// </summary>
public int Count
{
get
Expand Down Expand Up @@ -144,6 +147,11 @@ public ExcelTable GetFromRange(ExcelRangeBase Range)
return _tables[Index];
}
}
/// <summary>
/// Indexer
/// </summary>
/// <param name="Name">The name of the table</param>
/// <returns>The table. Null if the table name is not found in the collection</returns>
public ExcelTable this[string Name]
{
get
Expand Down
13 changes: 12 additions & 1 deletion EPPlus/Table/ExcelTableColumn.cs
Expand Up @@ -65,7 +65,9 @@ public class ExcelTableColumn : XmlHelper
_tbl = tbl;
Position = pos;
}

/// <summary>
/// The column id
/// </summary>
public int Id
{
get
Expand All @@ -77,11 +79,17 @@ public int Id
SetXmlNodeString("@id", value.ToString());
}
}
/// <summary>
/// The position of the column
/// </summary>
public int Position
{
get;
private set;
}
/// <summary>
/// The name of the column
/// </summary>
public string Name
{
get
Expand Down Expand Up @@ -158,6 +166,9 @@ public string TotalsRowFormula
}
}
const string DATACELLSTYLE_PATH = "@dataCellStyle";
/// <summary>
/// The named style for datacells in the column
/// </summary>
public string DataCellStyleName
{
get
Expand Down
11 changes: 11 additions & 0 deletions EPPlus/Table/ExcelTableColumnCollection.cs
Expand Up @@ -52,11 +52,17 @@ public ExcelTableColumnCollection(ExcelTable table)
_colNames.Add(_cols[_cols.Count - 1].Name, _cols.Count - 1);
}
}
/// <summary>
/// A reference to the table object
/// </summary>
public ExcelTable Table
{
get;
private set;
}
/// <summary>
/// Number of items in the collection
/// </summary>
public int Count
{
get
Expand All @@ -80,6 +86,11 @@ public int Count
return _cols[Index] as ExcelTableColumn;
}
}
/// <summary>
/// Indexer
/// </summary>
/// <param name="Name">The name of the table</param>
/// <returns>The table column. Null if the table name is not found in the collection</returns>
public ExcelTableColumn this[string Name]
{
get
Expand Down
2 changes: 1 addition & 1 deletion EPPlus/Table/PivotTable/ExcelPivotTable.cs
Expand Up @@ -310,7 +310,7 @@ public ExcelWorksheet WorkSheet
set;
}
/// <summary>
/// The location of the pivott table
/// The location of the pivot table
/// </summary>
public ExcelAddressBase Address
{
Expand Down
2 changes: 1 addition & 1 deletion EPPlus/Table/PivotTable/ExcelPivotTableDataField.cs
Expand Up @@ -38,7 +38,7 @@
namespace OfficeOpenXml.Table.PivotTable
{
/// <summary>
///
/// A pivo table data field
/// </summary>
public class ExcelPivotTableDataField : XmlHelper
{
Expand Down
3 changes: 3 additions & 0 deletions EPPlus/Table/PivotTable/ExcelPivotTableField.cs
Expand Up @@ -126,6 +126,9 @@ public enum eSortType
Ascending,
Descending
}
/// <summary>
/// A pivot table field.
/// </summary>
public class ExcelPivotTableField : XmlHelper
{
internal ExcelPivotTable _table;
Expand Down
6 changes: 6 additions & 0 deletions EPPlus/Table/PivotTable/ExcelPivotTableFieldGroup.cs
Expand Up @@ -38,6 +38,9 @@

namespace OfficeOpenXml.Table.PivotTable
{
/// <summary>
/// Base class for pivot table field groups
/// </summary>
public class ExcelPivotTableFieldGroup : XmlHelper
{
internal ExcelPivotTableFieldGroup(XmlNamespaceManager ns, XmlNode topNode) :
Expand Down Expand Up @@ -99,6 +102,9 @@ public bool AutoEnd
}
}
}
/// <summary>
/// A pivot table field numeric grouping
/// </summary>
public class ExcelPivotTableFieldNumericGroup : ExcelPivotTableFieldGroup
{
internal ExcelPivotTableFieldNumericGroup(XmlNamespaceManager ns, XmlNode topNode) :
Expand Down

0 comments on commit e1c2e0c

Please sign in to comment.