Skip to content

Commit a76624b

Browse files
committed
Updated to version 20.9
1 parent 5cd18c5 commit a76624b

File tree

11 files changed

+183
-14
lines changed

11 files changed

+183
-14
lines changed

Examples/CSharp/CSharp.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
</PropertyGroup>
3838
<PropertyGroup />
3939
<ItemGroup>
40-
<Reference Include="Aspose.Cells, Version=20.8.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
41-
<HintPath>..\packages\Aspose.Cells.20.8.0\lib\net40\Aspose.Cells.dll</HintPath>
40+
<Reference Include="Aspose.Cells, Version=20.9.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
41+
<HintPath>..\packages\Aspose.Cells.20.9.0\lib\net40\Aspose.Cells.dll</HintPath>
4242
</Reference>
4343
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
4444
<Reference Include="Microsoft.VisualStudio.Tools.Applications.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
@@ -520,6 +520,7 @@
520520
<Compile Include="PivotTables\PivotTableSaveInODS.cs" />
521521
<Compile Include="PivotTables\PivotTableSortAndHide.cs" />
522522
<Compile Include="PivotTables\PivotTableCustomSort.cs" />
523+
<Compile Include="Slicers\ChangeSlicerProperties.cs" />
523524
<Compile Include="Slicers\CreateSlicerToExcelTable.cs" />
524525
<Compile Include="Slicers\ExportSlicerToPDF.cs" />
525526
<Compile Include="Tables\ConvertTableToRange.cs" />

Examples/CSharp/RunExamples.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ public static void Main()
115115
// Uncomment the one you want to try out
116116

117117

118+
//Aspose.Cells for .NET v20.9
119+
//ChangeSlicerProperties.Run();
120+
121+
118122
//Aspose.Cells for .NET v20.8
119123
//CreateSlicerToExcelTable.Main();
120124
//PivotTableSaveInODS.Run();
@@ -536,7 +540,7 @@ public static void Main()
536540
//ConvertingPieChartToImageFile.Run();
537541
//ConvertWorksheetToImageByPage.Run();
538542
//ConvertWorksheetToSVG.Run();
539-
//ConvertWorksheettoImageFile.Run();
543+
//ConvertWorksheettoImageFile.Run();
540544
//DeletingBlankColumns.Run();
541545
//DeletingBlankRows.Run();
542546
//ExtractOLEObjects.Run();
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
using Aspose.Cells.Drawing;
2+
using Aspose.Cells.Slicers;
3+
using Aspose.Cells.Tables;
4+
using System;
5+
using System.Collections.Generic;
6+
using System.Linq;
7+
using System.Text;
8+
9+
namespace Aspose.Cells.Examples.CSharp.Slicers
10+
{
11+
class ChangeSlicerProperties
12+
{
13+
//Source directory
14+
static string sourceDir = RunExamples.Get_SourceDirectory();
15+
16+
//Output directory
17+
static string outputDir = RunExamples.Get_OutputDirectory();
18+
19+
public static void Run()
20+
{
21+
// ExStart:1
22+
// Load sample Excel file containing a table.
23+
Workbook workbook = new Workbook(sourceDir + "sampleCreateSlicerToExcelTable.xlsx");
24+
25+
// Access first worksheet.
26+
Worksheet worksheet = workbook.Worksheets[0];
27+
28+
// Access first table inside the worksheet.
29+
ListObject table = worksheet.ListObjects[0];
30+
31+
// Add slicer
32+
int idx = worksheet.Slicers.Add(table, 0, "H5");
33+
34+
Slicer slicer = worksheet.Slicers[idx];
35+
slicer.Placement = PlacementType.FreeFloating;
36+
slicer.RowHeightPixel = 50;
37+
slicer.WidthPixel = 500;
38+
slicer.Title = "Aspose";
39+
slicer.AlternativeText = "Alternate Text";
40+
slicer.IsPrintable = false;
41+
slicer.IsLocked = false;
42+
43+
// Refresh the slicer.
44+
slicer.Refresh();
45+
46+
47+
// Save the workbook in output XLSX format.
48+
workbook.Save(outputDir + "outputChangeSlicerProperties.xlsx", SaveFormat.Xlsx);
49+
// ExEnd:1
50+
51+
Console.WriteLine("ChangeSlicerProperties executed successfully.");
52+
}
53+
54+
}
55+
}
56+

Examples/CSharp/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Aspose.Cells" version="20.8.0" targetFramework="net40" />
3+
<package id="Aspose.Cells" version="20.9.0" targetFramework="net40" />
44
<package id="Microsoft.Office.Interop.Excel" version="15.0.4795.1000" targetFramework="net40" />
55
</packages>

Examples_GridWeb/CSharp/CSharp.csproj

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@
104104
<Prefer32Bit>false</Prefer32Bit>
105105
</PropertyGroup>
106106
<ItemGroup>
107-
<Reference Include="Aspose.Cells, Version=20.8.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
108-
<HintPath>..\packages\Aspose.Cells.20.8.0\lib\net40\Aspose.Cells.dll</HintPath>
107+
<Reference Include="Aspose.Cells, Version=20.9.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
108+
<HintPath>..\packages\Aspose.Cells.20.9.0\lib\net40\Aspose.Cells.dll</HintPath>
109109
</Reference>
110110
<Reference Include="Aspose.Cells.GridWeb, Version=18.9.0.0, Culture=neutral, PublicKeyToken=699ccf88ff76f11a, processorArchitecture=MSIL">
111111
<SpecificVersion>False</SpecificVersion>
@@ -606,6 +606,13 @@
606606
<Compile Include="Worksheets\AccessNamedRanges.aspx.designer.cs">
607607
<DependentUpon>AccessNamedRanges.aspx</DependentUpon>
608608
</Compile>
609+
<Compile Include="Worksheets\AddRemoveCommentsFromClientSide.aspx.cs">
610+
<DependentUpon>AddRemoveCommentsFromClientSide.aspx</DependentUpon>
611+
<SubType>ASPXCodeBehind</SubType>
612+
</Compile>
613+
<Compile Include="Worksheets\AddRemoveCommentsFromClientSide.aspx.designer.cs">
614+
<DependentUpon>AddRemoveCommentsFromClientSide.aspx</DependentUpon>
615+
</Compile>
609616
<Compile Include="Worksheets\AddRemoveHyperlinkFromClientSide.aspx.cs">
610617
<DependentUpon>AddRemoveHyperlinkFromClientSide.aspx</DependentUpon>
611618
<SubType>ASPXCodeBehind</SubType>
@@ -1007,6 +1014,7 @@
10071014
<Content Include="WorkingWithGridWebClientSideScript\MakingGridWebResizableUsingResizablejQueryUiFeature.aspx" />
10081015
<Content Include="WorkingWithGridWebClientSideScript\ResizeGridWebUsingResizeMethod.aspx" />
10091016
<Content Include="Worksheets\AccessNamedRanges.aspx" />
1017+
<Content Include="Worksheets\AddRemoveCommentsFromClientSide.aspx" />
10101018
<Content Include="Worksheets\AddRemoveHyperlinkFromClientSide.aspx" />
10111019
<Content Include="Worksheets\UpdateFontFromClientSide.aspx" />
10121020
<Content Include="Worksheets\ShowAddButton.aspx" />

Examples_GridWeb/CSharp/Examples.aspx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@
2626
<div class="tab-content">
2727
<div class="tab-pane active" id="articles">
2828
<ul class="list-group">
29+
<li class="list-group-item" title="Add/Remove Comments From Client Side">
30+
<p class="productTitle">
31+
<a href="Worksheets/AddRemoveCommentsFromClientSide.aspx">Add/Remove Comments From Client Side</a>
32+
</p>
33+
<p>
34+
Add/Remove Comments From Client Side
35+
</p>
36+
</li>
2937
<li class="list-group-item" title="Add/Remove Hyperlinks From Client Side">
3038
<p class="productTitle">
3139
<a href="Worksheets/AddRemoveHyperlinkFromClientSide.aspx">Add/Remove Hyperlinks From Client Side</a>

Examples_GridWeb/CSharp/Grid/acw_client/acwmain.js

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)