Skip to content

Commit

Permalink
V1.5.0 Released
Browse files Browse the repository at this point in the history
  • Loading branch information
XceedBoucherS committed Nov 26, 2019
1 parent a2369cb commit eded172
Show file tree
Hide file tree
Showing 95 changed files with 17,683 additions and 968 deletions.
2 changes: 1 addition & 1 deletion Xceed.Document.NET/AssemblyVersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This program is provided to you under the terms of the Microsoft Public
internal static class _XceedVersionInfo
{
[System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields" )]
public const string BaseVersion = "1.4";
public const string BaseVersion = "1.5";
[System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields" )]
public const string Version = BaseVersion +
".0.0";
Expand Down
14 changes: 12 additions & 2 deletions Xceed.Document.NET/Src/Charts/BarChart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ This program is provided to you under the terms of the Microsoft Public


using System;
using System.Globalization;
using System.IO.Packaging;
using System.Xml.Linq;

namespace Xceed.Document.NET
Expand Down Expand Up @@ -74,12 +76,21 @@ public Int32 GapWidth
{
if( ( value < 1 ) || ( value > 500 ) )
throw new ArgumentException( "GapWidth lay between 0% and 500%!" );
ChartXml.Element( XName.Get( "gapWidth", Document.c.NamespaceName ) ).Attribute( XName.Get( "val" ) ).Value = value.ToString();
ChartXml.Element( XName.Get( "gapWidth", Document.c.NamespaceName ) ).Attribute( XName.Get( "val" ) ).Value = value.ToString( CultureInfo.InvariantCulture );
}
}

#endregion

#region Constructors

public BarChart()
{
}


#endregion

#region Overrides

protected override XElement CreateChartXml()
Expand All @@ -93,7 +104,6 @@ protected override XElement CreateChartXml()
}

#endregion

}

/// <summary>
Expand Down
56 changes: 47 additions & 9 deletions Xceed.Document.NET/Src/Charts/Chart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ This program is provided to you under the terms of the Microsoft Public
using System.Collections;
using System.Drawing;
using System.Globalization;
using System.IO.Packaging;
using System.IO;

namespace Xceed.Document.NET
{
Expand All @@ -28,6 +30,11 @@ namespace Xceed.Document.NET
/// </summary>
public abstract class Chart
{
#region Private Members


#endregion

#region Public Properties

/// <summary>
Expand Down Expand Up @@ -75,7 +82,7 @@ public virtual Int16 MaxSeriesCount
/// </summary>
public ChartLegend Legend
{
get; private set;
get; internal set;
}

/// <summary>
Expand Down Expand Up @@ -156,11 +163,11 @@ public DisplayBlanksAs DisplayBlanksAs

#region Protected Properties

protected XElement ChartXml
protected internal XElement ChartXml
{
get; private set;
}
protected XElement ChartRootXml
protected internal XElement ChartRootXml
{
get; private set;
}
Expand Down Expand Up @@ -238,7 +245,8 @@ public Chart()
this.ChartRootXml.Element( XName.Get( "autoTitleDeleted", Document.c.NamespaceName ) ).AddAfterSelf( plotAreaXml );
}

#endregion

#endregion

#region Public Methods

Expand Down Expand Up @@ -272,7 +280,7 @@ public void AddLegend()
/// </summary>
public void AddLegend( ChartLegendPosition position, Boolean overlay )
{
if( Legend != null )
if( this.Legend != null )
{
this.RemoveLegend();
}
Expand All @@ -285,11 +293,15 @@ public void AddLegend( ChartLegendPosition position, Boolean overlay )
/// </summary>
public void RemoveLegend()
{
Legend.Xml.Remove();
Legend = null;
if( this.Legend != null )
{
this.Legend.Xml.Remove();
this.Legend = null;
}
}

#endregion

#endregion

#region Protected Methods

Expand All @@ -299,6 +311,14 @@ public void RemoveLegend()
protected abstract XElement CreateChartXml();

#endregion

#region Internal Method





#endregion
}

/// <summary>
Expand Down Expand Up @@ -345,7 +365,19 @@ public Color Color
}
}

#endregion












#endregion

#region Internal Properties

Expand Down Expand Up @@ -518,8 +550,14 @@ internal ChartLegend( ChartLegendPosition position, Boolean overlay )
);
}


#endregion

#region Internal Methods


#endregion

#region Private Methods

/// <summary>
Expand Down
10 changes: 10 additions & 0 deletions Xceed.Document.NET/Src/Charts/LineChart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This program is provided to you under the terms of the Microsoft Public
*************************************************************************************/


using System.IO.Packaging;
using System.Xml.Linq;

namespace Xceed.Document.NET
Expand Down Expand Up @@ -44,6 +45,15 @@ public Grouping Grouping

#endregion

#region Constructors

public LineChart()
{
}


#endregion

#region Overrides

protected override XElement CreateChartXml()
Expand Down
10 changes: 10 additions & 0 deletions Xceed.Document.NET/Src/Charts/PieChart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This program is provided to you under the terms of the Microsoft Public


using System;
using System.IO.Packaging;
using System.Xml.Linq;

namespace Xceed.Document.NET
Expand Down Expand Up @@ -43,6 +44,15 @@ public override Int16 MaxSeriesCount

#endregion

#region Constructors

public PieChart()
{
}


#endregion

#region Overrides

protected override XElement CreateChartXml()
Expand Down
Loading

0 comments on commit eded172

Please sign in to comment.