Skip to content

Commit eded172

Browse files
committed
V1.5.0 Released
1 parent a2369cb commit eded172

File tree

95 files changed

+17683
-968
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+17683
-968
lines changed

Xceed.Document.NET/AssemblyVersionInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This program is provided to you under the terms of the Microsoft Public
2020
internal static class _XceedVersionInfo
2121
{
2222
[System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields" )]
23-
public const string BaseVersion = "1.4";
23+
public const string BaseVersion = "1.5";
2424
[System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields" )]
2525
public const string Version = BaseVersion +
2626
".0.0";

Xceed.Document.NET/Src/Charts/BarChart.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ This program is provided to you under the terms of the Microsoft Public
1414

1515

1616
using System;
17+
using System.Globalization;
18+
using System.IO.Packaging;
1719
using System.Xml.Linq;
1820

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

8183
#endregion
8284

85+
#region Constructors
86+
87+
public BarChart()
88+
{
89+
}
90+
91+
92+
#endregion
93+
8394
#region Overrides
8495

8596
protected override XElement CreateChartXml()
@@ -93,7 +104,6 @@ protected override XElement CreateChartXml()
93104
}
94105

95106
#endregion
96-
97107
}
98108

99109
/// <summary>

Xceed.Document.NET/Src/Charts/Chart.cs

Lines changed: 47 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ This program is provided to you under the terms of the Microsoft Public
2020
using System.Collections;
2121
using System.Drawing;
2222
using System.Globalization;
23+
using System.IO.Packaging;
24+
using System.IO;
2325

2426
namespace Xceed.Document.NET
2527
{
@@ -28,6 +30,11 @@ namespace Xceed.Document.NET
2830
/// </summary>
2931
public abstract class Chart
3032
{
33+
#region Private Members
34+
35+
36+
#endregion
37+
3138
#region Public Properties
3239

3340
/// <summary>
@@ -75,7 +82,7 @@ public virtual Int16 MaxSeriesCount
7582
/// </summary>
7683
public ChartLegend Legend
7784
{
78-
get; private set;
85+
get; internal set;
7986
}
8087

8188
/// <summary>
@@ -156,11 +163,11 @@ public DisplayBlanksAs DisplayBlanksAs
156163

157164
#region Protected Properties
158165

159-
protected XElement ChartXml
166+
protected internal XElement ChartXml
160167
{
161168
get; private set;
162169
}
163-
protected XElement ChartRootXml
170+
protected internal XElement ChartRootXml
164171
{
165172
get; private set;
166173
}
@@ -238,7 +245,8 @@ public Chart()
238245
this.ChartRootXml.Element( XName.Get( "autoTitleDeleted", Document.c.NamespaceName ) ).AddAfterSelf( plotAreaXml );
239246
}
240247

241-
#endregion
248+
249+
#endregion
242250

243251
#region Public Methods
244252

@@ -272,7 +280,7 @@ public void AddLegend()
272280
/// </summary>
273281
public void AddLegend( ChartLegendPosition position, Boolean overlay )
274282
{
275-
if( Legend != null )
283+
if( this.Legend != null )
276284
{
277285
this.RemoveLegend();
278286
}
@@ -285,11 +293,15 @@ public void AddLegend( ChartLegendPosition position, Boolean overlay )
285293
/// </summary>
286294
public void RemoveLegend()
287295
{
288-
Legend.Xml.Remove();
289-
Legend = null;
296+
if( this.Legend != null )
297+
{
298+
this.Legend.Xml.Remove();
299+
this.Legend = null;
300+
}
290301
}
291302

292-
#endregion
303+
304+
#endregion
293305

294306
#region Protected Methods
295307

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

301313
#endregion
314+
315+
#region Internal Method
316+
317+
318+
319+
320+
321+
#endregion
302322
}
303323

304324
/// <summary>
@@ -345,7 +365,19 @@ public Color Color
345365
}
346366
}
347367

348-
#endregion
368+
369+
370+
371+
372+
373+
374+
375+
376+
377+
378+
379+
380+
#endregion
349381

350382
#region Internal Properties
351383

@@ -518,8 +550,14 @@ internal ChartLegend( ChartLegendPosition position, Boolean overlay )
518550
);
519551
}
520552

553+
521554
#endregion
522555

556+
#region Internal Methods
557+
558+
559+
#endregion
560+
523561
#region Private Methods
524562

525563
/// <summary>

Xceed.Document.NET/Src/Charts/LineChart.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ This program is provided to you under the terms of the Microsoft Public
1313
*************************************************************************************/
1414

1515

16+
using System.IO.Packaging;
1617
using System.Xml.Linq;
1718

1819
namespace Xceed.Document.NET
@@ -44,6 +45,15 @@ public Grouping Grouping
4445

4546
#endregion
4647

48+
#region Constructors
49+
50+
public LineChart()
51+
{
52+
}
53+
54+
55+
#endregion
56+
4757
#region Overrides
4858

4959
protected override XElement CreateChartXml()

Xceed.Document.NET/Src/Charts/PieChart.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This program is provided to you under the terms of the Microsoft Public
1414

1515

1616
using System;
17+
using System.IO.Packaging;
1718
using System.Xml.Linq;
1819

1920
namespace Xceed.Document.NET
@@ -43,6 +44,15 @@ public override Int16 MaxSeriesCount
4344

4445
#endregion
4546

47+
#region Constructors
48+
49+
public PieChart()
50+
{
51+
}
52+
53+
54+
#endregion
55+
4656
#region Overrides
4757

4858
protected override XElement CreateChartXml()

0 commit comments

Comments
 (0)