-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathSamplesConfiguration.cs
406 lines (380 loc) · 19.7 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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
#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 DocIO;
using Syncfusion.DemosCommon.WinUI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Syncfusion.DocIODemos.WinUI
{
public class SamplesConfiguration
{
public SamplesConfiguration()
{
DemoInfo salesInvoice = new()
{
Name = "Sales Invoice",
Category = "Product Showcase",
DemoType = DemoTypes.None,
Description = "This example demonstrates the generation of sales invoice from an input Word template using the mail merge functionality.",
DemoView = typeof(SalesInvoice),
ShowInfoPanel = true
};
List<Documentation> selectionDocumentations = new()
{
new Documentation() { Content = "Word library - Working with Mail Merge", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/working-with-mail-merge") }
};
salesInvoice.Documentation.AddRange(selectionDocumentations);
DemoInfo helloWorld = new()
{
Name = "Hello World",
Category = "Getting Started",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to create a simple Word document with text, images, and tables.",
DemoView = typeof(HelloWorld),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Working with Text", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/working-with-paragraph#working-with-text") },
new Documentation() { Content = "Word library - Working with Images", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/working-with-paragraph#working-with-images") },
new Documentation() { Content = "Word library - Working with Tables", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/working-with-tables") }
};
helloWorld.Documentation.AddRange(selectionDocumentations);
DemoInfo findAndHighlight = new()
{
Name = "Find and Highlight",
Category = "Editing",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to find and highlight a specific text in an existing Word document using the Find functionality.",
DemoView = typeof(FindAndHighlight),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Working with Find and Replace", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/working-with-find-and-replace") }
};
findAndHighlight.Documentation.AddRange(selectionDocumentations);
DemoInfo findAndReplace = new()
{
Name = "Find and Replace",
Category = "Editing",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to find a specific text and replace it with another text in the Word document using the Find and Replace functionality.",
DemoView = typeof(FindAndReplace),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Working with Find and Replace", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/working-with-find-and-replace") }
};
findAndReplace.Documentation.AddRange(selectionDocumentations);
DemoInfo bookmarks = new()
{
Name = "Bookmarks",
Category = "Insert Content",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to add bookmarks to a Word document.",
DemoView = typeof(Bookmarks),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Working with Bookmarks", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/working-with-bookmarks") }
};
bookmarks.Documentation.AddRange(selectionDocumentations);
DemoInfo headerAndFooter = new()
{
Name = "Header and Footer",
Category = "Insert Content",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to insert headers and footers in a Word document.",
DemoView = typeof(HeaderAndFooter),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Working with Headers and Footers", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/working-with-sections#working-with-headers-and-footers") }
};
headerAndFooter.Documentation.AddRange(selectionDocumentations);
DemoInfo imageInsertion = new()
{
Name = "Image Insertion",
Category = "Insert Content",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to insert images in a Word document.",
DemoView = typeof(ImageInsertion),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Working with Images", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/working-with-paragraph#working-with-images") }
};
imageInsertion.Documentation.AddRange(selectionDocumentations);
DemoInfo createUsingLaTeX = new()
{
Name = "Create using LaTeX",
Category = "Equation",
DemoType = DemoTypes.None,
Description = "This sample demonstrates how to create a Word document with mathematical equation using LaTeX using .NET Word Library (DocIO).",
DemoView = typeof(CreateUsingLaTeX),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Working with LaTeX", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/working-with-latex") }
};
createUsingLaTeX.Documentation.AddRange(selectionDocumentations);
DemoInfo editUsingLaTeX = new()
{
Name = "Edit using LaTeX",
Category = "Equation",
DemoType = DemoTypes.None,
Description = "This sample demonstrates how to modify a mathematical equation using LaTeX in a Word document using .NET Word Library (DocIO).",
DemoView = typeof(EditUsingLaTeX),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Working with LaTeX", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/working-with-latex") }
};
editUsingLaTeX.Documentation.AddRange(selectionDocumentations);
DemoInfo wordToPdf = new()
{
Name = "Word to PDF",
Category = "Conversions",
DemoType = DemoTypes.Updated,
Description = "This example demonstrates how to convert a Word document to a PDF file.",
DemoView = typeof(WordToPDF),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Word document to PDF conversion", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/word-to-pdf") }
};
wordToPdf.Documentation.AddRange(selectionDocumentations);
DemoInfo wordToHTML = new()
{
Name = "Word to HTML",
Category = "Conversions",
Description = "This example demonstrates how to convert a Word document to HTML file using .NET Word Library (DocIO).",
DemoView = typeof(WordToHTML),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Word document to HTML conversion", Uri = new Uri("https://help.syncfusion.com/document-processing/word/word-library/net/html") }
};
wordToHTML.Documentation.AddRange(selectionDocumentations);
DemoInfo htmlToWord = new()
{
Name = "HTML to Word",
Category = "Conversions",
Description = "This example demonstrates how to convert HTML file to a Word document using .NET Word Library (DocIO).",
DemoView = typeof(HTMLToWord),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - HTML to Word document conversion", Uri = new Uri("https://help.syncfusion.com/document-processing/word/word-library/net/html") }
};
htmlToWord.Documentation.AddRange(selectionDocumentations);
DemoInfo wordToMd = new()
{
Name = "Word to Markdown",
Category = "Conversions",
Description = "This example demonstrates how to convert the Word document to Markdown file.",
DemoView = typeof(WordToMarkdown),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Word document to Markdown conversion", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/convert-word-document-to-markdown-in-csharp") }
};
wordToMd.Documentation.AddRange(selectionDocumentations);
DemoInfo mdToWord = new()
{
Name = "Markdown to Word",
Category = "Conversions",
DemoType = DemoTypes.None,
Description = "This sample demonstrates how to convert the Markdown file to Word document using .NET Word (DocIO) library.",
DemoView = typeof(MarkdownToWord),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Markdown to Word conversion", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/convert-markdown-to-word-document-in-csharp") }
};
mdToWord.Documentation.AddRange(selectionDocumentations);
DemoInfo rtfConversion = new()
{
Name = "RTF Conversion",
Category = "Conversions",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to convert a RTF file to a Word document and PDF.",
DemoView = typeof(RTFConversion),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - RTF conversion", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/rtf") }
};
rtfConversion.Documentation.AddRange(selectionDocumentations);
DemoInfo employeeReport = new()
{
Name = "Employee Report",
Category = "Mail Merge",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to generate employees’ addresses using the mail merge feature.",
DemoView = typeof(EmployeeReport),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Working with Mail Merge", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/working-with-mail-merge") }
};
employeeReport.Documentation.AddRange(selectionDocumentations);
DemoInfo ordersReport = new()
{
Name = "Orders Report",
Category = "Mail Merge",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to generate order details of customers using the nested mail merge functionality with hierarchical data.",
DemoView = typeof(OrdersReport),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Working with Nested Mail Merge", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/mail-merge/mail-merge-for-nested-groups") }
};
ordersReport.Documentation.AddRange(selectionDocumentations);
DemoInfo tableOfContent = new()
{
Name = "Table of Contents",
Category = "References",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to insert and update a table of contents (TOC) in a Word document.",
DemoView = typeof(TableOfContent),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Working with Table of Contents", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/working-with-table-of-contents") }
};
tableOfContent.Documentation.AddRange(selectionDocumentations);
DemoInfo tableOfFigures = new()
{
Name = "Table of Figures",
Category = "References",
DemoType = DemoTypes.None,
Description = "This example demonstrates how to insert and update the table of figures in a Word document using .NET Word Library (DocIO).",
DemoView = typeof(TableOfFigures),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Working with Table of Contents", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/working-with-table-of-contents") }
};
tableOfFigures.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 Word document.",
DemoView = typeof(EncryptAndDecrypt),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Working with Security", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/working-with-security") }
};
encryptAndDecrypt.Documentation.AddRange(selectionDocumentations);
DemoInfo compareDocuments = new()
{
Name = "Compare Documents",
Category = "Review",
Description = "This sample demonstrates how to compare two Word documents using .NET Word (DocIO) library. With this, you can easily identify the changes between two versions of a document.",
DemoView = typeof(CompareDocuments),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Compare Documents", Uri = new Uri("https://help.syncfusion.com/file-formats/docio/word-document/compare-word-documents") }
};
compareDocuments.Documentation.AddRange(selectionDocumentations);
DemoInfo createSmartArt = new()
{
Name = "Create SmartArt",
Category = "SmartArts",
DemoType = DemoTypes.New,
Description = "This sample demonstrates how to create a Word document with SmartArt graphics using the .NET Word Library (DocIO).",
DemoView = typeof(CreateSmartArt),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Working with SmartArts", Uri = new Uri("https://help.syncfusion.com/document-processing/word/word-library/net/working-with-smartarts") }
};
createSmartArt.Documentation.AddRange(selectionDocumentations);
DemoInfo editSmartArt = new()
{
Name = "Edit SmartArt",
Category = "SmartArts",
DemoType = DemoTypes.New,
Description = "This sample demonstrates how to modify SmartArt graphics in a Word document using the .NET Word Library (DocIO).",
DemoView = typeof(EditSmartArt),
ShowInfoPanel = true
};
selectionDocumentations = new List<Documentation>
{
new Documentation() { Content = "Word library - Working with SmartArts", Uri = new Uri("https://help.syncfusion.com/document-processing/word/word-library/net/working-with-smartarts") }
};
editSmartArt.Documentation.AddRange(selectionDocumentations);
var demos = new List<DemoInfo>()
{
salesInvoice,
helloWorld,
employeeReport,
ordersReport,
findAndHighlight,
findAndReplace,
bookmarks,
headerAndFooter,
imageInsertion,
createUsingLaTeX,
editUsingLaTeX,
createSmartArt,
editSmartArt,
wordToPdf,
wordToHTML,
htmlToWord,
wordToMd,
mdToWord,
rtfConversion,
tableOfContent,
tableOfFigures,
encryptAndDecrypt,
compareDocuments,
};
var controlInfo = new ControlInfo()
{
Control = DemoControl.EssentialDocIO,
ControlBadge=ControlBadge.Updated,
ControlCategory = ControlCategory.FileFormat,
Description = "A .NET Word library to create, read, and edit Word documents programmatically.",
Glyph = "\ue71e",
ImageSource = "DocIO.png"
};
controlInfo.Demos.AddRange(demos);
DemoHelper.ControlInfos.Add(controlInfo);
}
}
}