Skip to content

Commit 69f12df

Browse files
Modified input document and code snippet.
1 parent 73b8554 commit 69f12df

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed
Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 17
4-
VisualStudioVersion = 17.12.35707.178 d17.12
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.31911.196
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Modify-PowerPoint-elements", "Modify-PowerPoint-elements\Modify-PowerPoint-elements.csproj", "{BC2C1CE5-4219-4073-99D4-91E543250166}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Iterate-slide-elements", "Iterate-slide-elements\Iterate-slide-elements.csproj", "{38FB99D1-DB4A-4A3F-B90B-7135724337EF}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1010
Debug|Any CPU = Debug|Any CPU
1111
Release|Any CPU = Release|Any CPU
1212
EndGlobalSection
1313
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{BC2C1CE5-4219-4073-99D4-91E543250166}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{BC2C1CE5-4219-4073-99D4-91E543250166}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{BC2C1CE5-4219-4073-99D4-91E543250166}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{BC2C1CE5-4219-4073-99D4-91E543250166}.Release|Any CPU.Build.0 = Release|Any CPU
14+
{38FB99D1-DB4A-4A3F-B90B-7135724337EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{38FB99D1-DB4A-4A3F-B90B-7135724337EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{38FB99D1-DB4A-4A3F-B90B-7135724337EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{38FB99D1-DB4A-4A3F-B90B-7135724337EF}.Release|Any CPU.Build.0 = Release|Any CPU
1818
EndGlobalSection
1919
GlobalSection(SolutionProperties) = preSolution
2020
HideSolutionNode = FALSE
2121
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {B75368E1-9546-4CD5-BE4C-5C905E8D16C2}
24+
EndGlobalSection
2225
EndGlobal
Binary file not shown.

Slides/Iterate-slide-elements/.NET/Iterate-slide-elements/Iterate-slide-elements.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net8.0</TargetFramework>
66
<RootNamespace>Iterate_slide_elements</RootNamespace>
7-
<ImplicitUsings>enable</ImplicitUsings>
8-
<Nullable>enable</Nullable>
97
</PropertyGroup>
108

119
<ItemGroup>
@@ -16,7 +14,7 @@
1614
<None Update="Data\Template.pptx">
1715
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
1816
</None>
19-
<None Update="Output\.gitkeep">
17+
<None Update="Output\.gitkeep">
2018
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
2119
</None>
2220
</ItemGroup>

Slides/Iterate-slide-elements/.NET/Iterate-slide-elements/Program.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Syncfusion.Presentation;
22
using Syncfusion.OfficeChart;
3+
using System.IO;
34

45
class Program
56
{
@@ -22,7 +23,7 @@ public static void Main(string[] args)
2223
}
2324

2425
// Save the modified presentation to an output file
25-
using (FileStream outputStream = new(Path.GetFullPath(@"../../../Output/Result.pptx"), FileMode.Create, FileAccess.ReadWrite))
26+
using (FileStream outputStream = new(Path.GetFullPath(@"Output/Result.pptx"), FileMode.Create, FileAccess.ReadWrite))
2627
{
2728
presentation.Save(outputStream);
2829
}
@@ -52,6 +53,14 @@ private static void ModifySlideElements(IShape shape, IPresentation presentation
5253
break;
5354
}
5455

56+
case SlideItemType.ConnectionShape:
57+
{
58+
IConnector connector = shape as IConnector;
59+
// Modify the arrowhead style at the beginning of the connector line
60+
connector.LineFormat.BeginArrowheadStyle = ArrowheadStyle.ArrowDiamond;
61+
break;
62+
}
63+
5564
case SlideItemType.Placeholder:
5665
{
5766
// Modify text if present in the placeholder

0 commit comments

Comments
 (0)