-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathSamplesConfiguration.cs
214 lines (200 loc) · 9.91 KB
/
SamplesConfiguration.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
#region Copyright Syncfusion® Inc. 2001-2025.
// Copyright Syncfusion® Inc. 2001-2025. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// [email protected]. Any infringement will be prosecuted under
// applicable laws.
#endregion
using Syncfusion.DemosCommon.WinUI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Syncfusion.PresentationDemos.WinUI
{
public class SamplesConfiguration
{
public SamplesConfiguration()
{
DemoInfo helloWorld = new()
{
Name = "Hello World",
Category = "Getting Started",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to create a slide with text in a PowerPoint presentation file.",
DemoView = typeof(EssentialPresentation.HelloWorld),
ShowInfoPanel = true
};
List<Documentation> selectionDocumentations = new()
{
new Documentation() { Content = "PowerPoint library - Getting started", Uri = new Uri("https://help.syncfusion.com/file-formats/presentation/getting-started") }
};
helloWorld.Documentation.AddRange(selectionDocumentations);
DemoInfo pptxToImage = new()
{
Name = "PPTX To Image",
Category = "Conversions",
DemoType = DemoTypes.Updated,
Description = "This example demonstrates how to convert a PowerPoint slide to an image.",
DemoView = typeof(EssentialPresentation.PPTXToImage),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "PowerPoint library - PPTX to Image conversion", Uri = new Uri("https://help.syncfusion.com/file-formats/presentation/presentation-to-image") }
};
pptxToImage.Documentation.AddRange(selectionDocumentations);
DemoInfo pptxToPDF = new()
{
Name = "PPTX To PDF",
Category = "Conversions",
DemoType = DemoTypes.Updated,
Description = "This example demonstrates how to convert a PowerPoint presentation file to a PDF file.",
DemoView = typeof(EssentialPresentation.PPTXToPDF),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "PowerPoint library - PPTX to PDF conversion", Uri = new Uri("https://help.syncfusion.com/file-formats/presentation/presentation-to-pdf") }
};
pptxToPDF.Documentation.AddRange(selectionDocumentations);
DemoInfo findAndReplace = new()
{
Name = "Find and Replace",
Category = "Editing",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to replace a specific text or text pattern in the PowerPoint presentation file.",
DemoView = typeof(EssentialPresentation.FindAndReplace),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "PowerPoint library - Find and Replace", Uri = new Uri("https://help.syncfusion.com/file-formats/presentation/working-with-find-and-replace") }
};
findAndReplace.Documentation.AddRange(selectionDocumentations);
DemoInfo findAndHighlight = new()
{
Name = "Find and Highlight",
Category = "Editing",
Description = "This example demonstrates how to find a specific text and highlight it in an existing PowerPoint presentation file.",
DemoView = typeof(EssentialPresentation.FindAndHighlight),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "PowerPoint library - Find and Highlight", Uri = new Uri("https://help.syncfusion.com/file-formats/presentation/working-with-find-and-replace") }
};
findAndHighlight.Documentation.AddRange(selectionDocumentations);
DemoInfo encryptAndDecrypt = new()
{
Name = "Encrypt and Decrypt",
Category = "Security",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to encrypt and decrypt a PowerPoint presentation file.",
DemoView = typeof(EssentialPresentation.EncryptAndDecrypt),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "PowerPoint library - Working with Security", Uri = new Uri("https://help.syncfusion.com/file-formats/presentation/security") }
};
encryptAndDecrypt.Documentation.AddRange(selectionDocumentations);
DemoInfo image = new()
{
Name = "Image",
Category = "Slide Elements",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to add and format images in PowerPoint Presentation using .NET PowerPoint Library (Presentation).",
DemoView = typeof(EssentialPresentation.Image),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "PowerPoint library - Working with Images", Uri = new Uri("https://help.syncfusion.com/file-formats/presentation/working-with-images") }
};
image.Documentation.AddRange(selectionDocumentations);
DemoInfo chart = new()
{
Name = "Chart",
Category = "Slide Elements",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to create a chart in a PowerPoint presentation file.",
DemoView = typeof(EssentialPresentation.Chart),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "PowerPoint library - Working with Charts", Uri = new Uri("https://help.syncfusion.com/file-formats/presentation/working-with-charts") }
};
chart.Documentation.AddRange(selectionDocumentations);
DemoInfo slide = new()
{
Name = "Slide",
Category = "Slide Elements",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to create slides with text, table, and images in a PowerPoint presentation file.",
DemoView = typeof(EssentialPresentation.Slide),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "PowerPoint library - Working with Slides", Uri = new Uri("https://help.syncfusion.com/file-formats/presentation/working-with-slide") }
};
slide.Documentation.AddRange(selectionDocumentations);
DemoInfo table = new()
{
Name = "Table",
Category = "Slide Elements",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to create a table in a PowerPoint presentation file.",
DemoView = typeof(EssentialPresentation.Table),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "PowerPoint library - Working with Tables", Uri = new Uri("https://help.syncfusion.com/file-formats/presentation/working-with-tables") }
};
table.Documentation.AddRange(selectionDocumentations);
DemoInfo headerAndFooter = new()
{
Name = "Header and Footer",
Category = "Slide Elements",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to insert headers and footers in a PowerPoint presentation.",
DemoView = typeof(EssentialPresentation.HeaderAndFooter),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "PowerPoint library - Working with Headers and Footers", Uri = new Uri("https://help.syncfusion.com/file-formats/presentation/working-with-headers-and-footers") }
};
headerAndFooter.Documentation.AddRange(selectionDocumentations);
var demos = new List<DemoInfo>()
{
helloWorld,
pptxToImage,
pptxToPDF,
findAndReplace,
findAndHighlight,
image,
chart,
slide,
table,
headerAndFooter,
encryptAndDecrypt
};
var controlInfo = new ControlInfo()
{
Control = DemoControl.EssentialPresentation,
ControlCategory = ControlCategory.FileFormat,
Description = "A .NET PowerPoint library to create, read, and edit PowerPoint files programmatically.",
Glyph = "\ue71f",
ImageSource = "Presentation.png",
ControlBadge = ControlBadge.Updated
};
controlInfo.Demos.AddRange(demos);
DemoHelper.ControlInfos.Add(controlInfo);
}
}
}