Skip to content

Commit

Permalink
Updated API examples 24.10
Browse files Browse the repository at this point in the history
  • Loading branch information
vderyushev committed Oct 14, 2024
1 parent 559fb0e commit 5a441e7
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 35 deletions.
14 changes: 7 additions & 7 deletions Examples/ApiExamples/ApiExamples/ApiExamples.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,21 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Aspose.BarCode" Version="24.8.0" />
<PackageReference Include="Aspose.Page" Version="24.8.0" />
<PackageReference Include="Aspose.PDF" Version="24.9.0" />
<PackageReference Include="Aspose.Words" Version="24.9.0" />
<PackageReference Include="Aspose.Words.Shaping.HarfBuzz" Version="24.9.0" />
<PackageReference Include="Aspose.BarCode" Version="24.9.0" />
<PackageReference Include="Aspose.Page" Version="24.9.0" />
<PackageReference Include="Aspose.PDF" Version="24.10.0" />
<PackageReference Include="Aspose.Words" Version="24.10.0" />
<PackageReference Include="Aspose.Words.Shaping.HarfBuzz" Version="24.10.0" />
<PackageReference Include="BouncyCastle.Cryptography" Version="2.4.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="SkiaSharp" Version="2.88.8" />
<PackageReference Include="System.Data.OleDb" Version="8.0.0" />
<PackageReference Include="System.Data.OleDb" Version="8.0.1" />
<PackageReference Include="System.IO.Compression" Version="4.3.0" />
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
</ItemGroup>
Expand Down
28 changes: 14 additions & 14 deletions Examples/ApiExamples/Runner.MAUI/ExCharts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ public void AxisProperties()
xAxis.MinorTickMark = AxisTickMark.Cross;
xAxis.MajorUnit = 10.0d;
xAxis.MinorUnit = 15.0d;
xAxis.TickLabelOffset = 50;
xAxis.TickLabelPosition = AxisTickLabelPosition.Low;
xAxis.TickLabelSpacingIsAuto = false;
xAxis.TickLabels.Offset = 50;
xAxis.TickLabels.Position = AxisTickLabelPosition.Low;
xAxis.TickLabels.IsAutoSpacing = false;
xAxis.TickMarkSpacing = 1;

ChartAxis yAxis = chart.AxisY;
Expand All @@ -204,7 +204,7 @@ public void AxisProperties()
yAxis.MinorTickMark = AxisTickMark.Cross;
yAxis.MajorUnit = 100.0d;
yAxis.MinorUnit = 20.0d;
yAxis.TickLabelPosition = AxisTickLabelPosition.NextToAxis;
yAxis.TickLabels.Position = AxisTickLabelPosition.NextToAxis;

// Column charts do not have a Z-axis.
Assert.Null(chart.AxisZ);
Expand All @@ -222,9 +222,9 @@ public void AxisProperties()
Assert.Equal(AxisTickMark.Cross, chart.AxisX.MinorTickMark);
Assert.Equal(1.0d, chart.AxisX.MajorUnit);
Assert.Equal(0.5d, chart.AxisX.MinorUnit);
Assert.Equal(50, chart.AxisX.TickLabelOffset);
Assert.Equal(AxisTickLabelPosition.Low, chart.AxisX.TickLabelPosition);
Assert.False(chart.AxisX.TickLabelSpacingIsAuto);
Assert.Equal(50, chart.AxisX.TickLabels.Offset);
Assert.Equal(AxisTickLabelPosition.Low, chart.AxisX.TickLabels.Position);
Assert.False(chart.AxisX.TickLabels.IsAutoSpacing);
Assert.Equal(1, chart.AxisX.TickMarkSpacing);

Assert.Equal(AxisCategoryType.Category, chart.AxisY.CategoryType);
Expand All @@ -234,7 +234,7 @@ public void AxisProperties()
Assert.Equal(AxisTickMark.Cross, chart.AxisY.MinorTickMark);
Assert.Equal(100.0d, chart.AxisY.MajorUnit);
Assert.Equal(20.0d, chart.AxisY.MinorUnit);
Assert.Equal(AxisTickLabelPosition.NextToAxis, chart.AxisY.TickLabelPosition);
Assert.Equal(AxisTickLabelPosition.NextToAxis, chart.AxisY.TickLabels.Position);
}

[Fact]
Expand Down Expand Up @@ -285,7 +285,7 @@ public void DateTimeValues()

// Define Y-axis properties for decimal values.
ChartAxis yAxis = chart.AxisY;
yAxis.TickLabelPosition = AxisTickLabelPosition.High;
yAxis.TickLabels.Position = AxisTickLabelPosition.High;
yAxis.MajorUnit = 100.0d;
yAxis.MinorUnit = 50.0d;
yAxis.DisplayUnit.Unit = AxisBuiltInUnit.Hundreds;
Expand All @@ -306,7 +306,7 @@ public void DateTimeValues()
Assert.Equal(AxisTickMark.Cross, chart.AxisX.MajorTickMark);
Assert.Equal(AxisTickMark.Outside, chart.AxisX.MinorTickMark);

Assert.Equal(AxisTickLabelPosition.High, chart.AxisY.TickLabelPosition);
Assert.Equal(AxisTickLabelPosition.High, chart.AxisY.TickLabels.Position);
Assert.Equal(100.0d, chart.AxisY.MajorUnit);
Assert.Equal(50.0d, chart.AxisY.MinorUnit);
Assert.Equal(AxisBuiltInUnit.Hundreds, chart.AxisY.DisplayUnit.Unit);
Expand Down Expand Up @@ -1170,9 +1170,9 @@ public void AxisDisplayUnit()
// Set the X-axis bounds so that the X-axis spans 5 major tick marks and 12 minor tick marks.
axis.Scaling.Minimum = new AxisBound(-10);
axis.Scaling.Maximum = new AxisBound(30);
axis.TickLabelAlignment = ParagraphAlignment.Right;
axis.TickLabels.Alignment = ParagraphAlignment.Right;

Assert.Equal(1, axis.TickLabelSpacing);
Assert.Equal(1, axis.TickLabels.Spacing);

// Set the tick labels to display their value in millions.
axis.DisplayUnit.Unit = AxisBuiltInUnit.Millions;
Expand All @@ -1198,8 +1198,8 @@ public void AxisDisplayUnit()
Assert.Equal(10.0d, axis.MajorUnit);
Assert.Equal(-10.0d, axis.Scaling.Minimum.Value);
Assert.Equal(30.0d, axis.Scaling.Maximum.Value);
Assert.Equal(1, axis.TickLabelSpacing);
Assert.Equal(ParagraphAlignment.Right, axis.TickLabelAlignment);
Assert.Equal(1, axis.TickLabels.Spacing);
Assert.Equal(ParagraphAlignment.Right, axis.TickLabels.Alignment);
Assert.Equal(AxisBuiltInUnit.Custom, axis.DisplayUnit.Unit);
Assert.Equal(1000000.0d, axis.DisplayUnit.CustomUnit);

Expand Down
12 changes: 6 additions & 6 deletions Examples/ApiExamples/Runner.MAUI/Runner.MAUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,20 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Aspose.Page" Version="24.8.0" />
<PackageReference Include="Aspose.PDF" Version="24.9.0" />
<PackageReference Include="Aspose.Words" Version="24.9.0" />
<PackageReference Include="Aspose.Words.Shaping.HarfBuzz" Version="24.9.0" />
<PackageReference Include="Aspose.Page" Version="24.9.0" />
<PackageReference Include="Aspose.PDF" Version="24.10.0" />
<PackageReference Include="Aspose.Words" Version="24.10.0" />
<PackageReference Include="Aspose.Words.Shaping.HarfBuzz" Version="24.10.0" />
<PackageReference Include="Shiny.Xunit.Runners.Maui" Version="1.0.0" />
<PackageReference Include="SkiaSharp" Version="2.88.8" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Microsoft.Maui.Controls" Version="8.0.90" />
<PackageReference Update="Microsoft.Maui.Controls" Version="8.0.91" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Microsoft.Maui.Controls.Compatibility" Version="8.0.90" />
<PackageReference Update="Microsoft.Maui.Controls.Compatibility" Version="8.0.91" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Examples/DocsExamples/Docker/Docker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Aspose.Words" Version="24.9.0" />
<PackageReference Include="Aspose.Words" Version="24.10.0" />
</ItemGroup>

</Project>
10 changes: 5 additions & 5 deletions Examples/DocsExamples/DocsExamples/DocsExamples.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Aspose.BarCode" Version="24.8.0" />
<PackageReference Include="Aspose.Email" Version="24.8.0" />
<PackageReference Include="Aspose.Words" Version="24.9.0" />
<PackageReference Include="Aspose.Words.Shaping.HarfBuzz" Version="24.9.0" />
<PackageReference Include="Aspose.BarCode" Version="24.9.0" />
<PackageReference Include="Aspose.Email" Version="24.9.0" />
<PackageReference Include="Aspose.Words" Version="24.10.0" />
<PackageReference Include="Aspose.Words.Shaping.HarfBuzz" Version="24.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageReference Include="System.Data.OleDb" Version="8.0.0" />
<PackageReference Include="System.Data.OleDb" Version="8.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Aspose.Words">
<Version>24.9.0</Version>
<Version>24.10.0</Version>
</PackageReference>
<PackageReference Include="Aspose.Words" Version="23.10.0" />
<PackageReference Include="Aspose.Words" Version="23.11.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Aspose.Words" Version="24.9.0" />
<PackageReference Include="Aspose.Words" Version="24.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
Expand Down

0 comments on commit 5a441e7

Please sign in to comment.