diff --git a/_config.yml b/_config.yml
index ed840bfe..49139e36 100644
--- a/_config.yml
+++ b/_config.yml
@@ -49,7 +49,7 @@ navigation:
title: Troubleshooting
position: 99
common-information:
- title: Common Information
+ title: Common
position: 98
security:
title: Security
diff --git a/common-information/device-independent-pixels.md b/common-information/device-independent-pixels.md
index 6be9340f..038df39b 100644
--- a/common-information/device-independent-pixels.md
+++ b/common-information/device-independent-pixels.md
@@ -48,23 +48,23 @@ Most of the methods follow the same pattern for converting units:
__Example 1__ shows how to obtain row height as DIPs and convert it to Points.
-#### __[C#] Example 1: Convert from DIP to Point__
+#### __Example 1: Convert from DIP to Point__
-{{region dips_1}}
+```csharp
var rowHeightInDips = worksheet.Rows[0].GetHeight().Value.Value;
var rowHeightInPoints = UnitHelper.DipToPoint(rowHeightInDips);
-{{endregion}}
+```
except the **DipToUnit** and **UnitToDip** methods which accepts not only the units but the [UnitType](https://docs.telerik.com/devtools/document-processing/api/telerik.windows.documents.media.unittype) as well as a parameter:
__Example 2__ shows how to convert from Point to DIP and set the row height.
-#### __[C#] Example 2: Convert from Point to DIP__
+#### __Example 2: Convert from Point to DIP__
-{{region dips_2}}
+```csharp
double dips = UnitHelper.UnitToDip(60, UnitType.Point);
RowHeight newRowHeight = new RowHeight(dips, isCustom: true);
worksheet.Rows[0].SetHeight(newRowHeight);
-{{endregion}}
+```
diff --git a/common-information/fileformatdetector.md b/common-information/fileformatdetector.md
new file mode 100644
index 00000000..cdb6155b
--- /dev/null
+++ b/common-information/fileformatdetector.md
@@ -0,0 +1,57 @@
+---
+title: FileFormatDetector
+description: Detect file formats automatically using the FileFormatDetector of the Telerik Document Processing libraries.
+page_title: FileFormatDetector
+slug: fileformatdetector
+position: 1
+published: True
+tags: file, format, detection, detector, pdf, docx, xlsx, zip, doc, xls, xlsm, txt, document, processing, libraries
+---
+
+# FileFormatDetector
+
+The **FileFormatDetector** API provides automatic file format detection capabilities for various document types supported by Telerik Document Processing libraries. This utility enables you to programmatically identify the format of a document stream before attempting to process it, making it easier to handle documents of unknown types and providing better error handling in your applications.
+
+The detector analyzes file signatures, headers, and content patterns to accurately identify document formats including PDF, DOCX, XLSX, RTF, and other supported formats. This is particularly useful when working with user-uploaded files or when processing documents from external sources where the file format might not be immediately known.
+
+## Key Features
+
+* **Automatic Format Detection**: Identifies document formats from a stream without requiring file extensions
+* **Multiple Format Support**: Detects PDF, DOCX, XLSX, PPTX, RTF, and other document formats
+* **Stream-Based**: Works directly with streams, making it compatible with various input sources
+* **Error Handling**: Provides detailed error messages when detection fails
+* **Lightweight**: Minimal overhead with efficient signature and header analysis
+
+## API
+
+**Namespace:** Telerik.Documents.Utilities.Detectors.FileFormat
+
+### FileFormatDetector
+
+The main class for detecting file formats.
+
+| Member | Type | Description |
+|--------|------|-------------|
+| **Detect(Stream stream)** | Method | Detects the format of a file from a stream. Returns a **FileFormatDetectionResult** containing the detection outcome. |
+
+### FileFormatDetectionResult
+
+Represents the result of a file format detection operation.
+
+| Member | Type | Description |
+|--------|------|-------------|
+| **IsSuccessful** | Property (bool) | Gets a value indicating whether a specific file format was successfully detected. Returns false if the format is unknown or detection failed. |
+| **Format** | Property (DocumentFormatType) | Gets the detected document format type. Returns **DocumentFormatType.Unknown** if detection was unsuccessful. |
+| **ErrorMessage** | Property (string) | Gets the error message if detection failed, or null if successful. |
+
+## Using FileFormatDetector
+
+The following example demonstrates how to detect the format of a document from a file stream:
+
+
Hello, world!
"; @@ -57,7 +57,7 @@ In order to use the **PdfFormatProvider** of **RadWordsProcessing**, you should // Export the document. The different overloads enables you to export to a byte[] or to a Stream. byte[] pdfBytes = pdfProvider.Export(document, TimeSpan.FromSeconds(10)); -{{endregion}} +``` ## Convert a Spreadsheet Document to PDF diff --git a/getting-started/Installation/telerik-nuget-source.md b/getting-started/Installation/telerik-nuget-source.md index 5a5a394d..e447caf3 100644 --- a/getting-started/Installation/telerik-nuget-source.md +++ b/getting-started/Installation/telerik-nuget-source.md @@ -187,7 +187,7 @@ The NuGet v2 server at `https://nuget.telerik.com/nuget` was sunset in November ### Troubleshooting -See the [NuGet Troubleshooting](slug:troubleshooting-nuget) article for tips about common pitfalls when working with the Telerik NuGet feed. +See the [NuGet Troubleshooting]({%slug dpl-troubleshooting-nuget%}) article for tips about common pitfalls when working with the Telerik NuGet feed. ## See Also diff --git a/getting-started/first-steps.md b/getting-started/first-steps.md index e35c97c3..85eb75d5 100644 --- a/getting-started/first-steps.md +++ b/getting-started/first-steps.md @@ -72,21 +72,21 @@ This sample application will use [RadWordsProcessing]({%slug radwordsprocessing- ## Step 4: Create a Document -#### __[C#] Example 1: Create RadFlowDocument__ +#### __Example 1: Create RadFlowDocument__ -{{region cs-radwordsprocessing-getting-started_0}} +```csharp Telerik.Windows.Documents.Flow.Model.RadFlowDocument document = new Telerik.Windows.Documents.Flow.Model.RadFlowDocument(); Telerik.Windows.Documents.Flow.Model.Editing.RadFlowDocumentEditor editor = new Telerik.Windows.Documents.Flow.Model.Editing.RadFlowDocumentEditor(document); editor.InsertText("Hello world!"); -{{endregion}} +``` -#### __[VB.NET] Example 1: Create RadFlowDocument__ +#### __Example 1: Create RadFlowDocument__ -{{region cs-radwordsprocessing-getting-started_0}} +```csharp Dim document As Telerik.Windows.Documents.Flow.Model.RadFlowDocument = New Telerik.Windows.Documents.Flow.Model.RadFlowDocument() Dim editor As Telerik.Windows.Documents.Flow.Model.Editing.RadFlowDocumentEditor = New Telerik.Windows.Documents.Flow.Model.Editing.RadFlowDocumentEditor(document) editor.InsertText("Hello world!") -{{endregion}} +``` ## Step 5: Export the Generated Document @@ -95,48 +95,48 @@ This sample application will use [RadWordsProcessing]({%slug radwordsprocessing- To export the document as a docx file, use [DocxFormatProvider]({%slug radwordsprocessing-formats-and-conversion-docx-docxformatprovider%}). Using the below code will create a provider instance and save a document with it. The document will be exported in the bin folder of your current project. -#### __[C#] Example 2: Export RadFlowDocument to DOCX__ +#### __Example 2: Export RadFlowDocument to DOCX__ -{{region cs-radwordsprocessing-getting-started_1}} +```csharp using (Stream output = new FileStream("output.docx", FileMode.OpenOrCreate)) { Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider docxProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider(); docxProvider.Export(document, output); } -{{endregion}} +``` -#### __[VB.NET] Example 2: Export RadFlowDocument to DOCX__ +#### __Example 2: Export RadFlowDocument to DOCX__ -{{region cs-radwordsprocessing-getting-started_0}} +```csharp Using output As Stream = New FileStream("output.docx", FileMode.OpenOrCreate) Dim docxProvider As Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider = New Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider() docxProvider.Export(document, output, TimeSpan.FromSeconds(10)) End Using -{{endregion}} +``` ### Export the RadFlowDocument to PDF To export the document as a PDF file, use [PdfFormatProvider]({%slug radpdfprocessing-formats-and-conversion-pdf-pdfformatprovider%}). __Example 3__ shows how to export the __RadFlowDocument__ created in Examples 1 to a file. -#### __[C#] Example 3: Export RadFlowDocument to PDF__ +#### __Example 3: Export RadFlowDocument to PDF__ -{{region cs-radpdfprocessing-getting-started_2}} +```csharp using (Stream output = File.OpenWrite("Output.pdf")) { Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider flowPdfProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider(); flowPdfProvider.Export(document, output); } -{{endregion}} +``` -#### __[VB.NET] Example 2: Export RadFlowDocument to PDF__ +#### __Example 2: Export RadFlowDocument to PDF__ -{{region cs-radwordsprocessing-getting-started_0}} +```csharp Using output As Stream = File.OpenWrite("Output.pdf") Dim flowPdfProvider As Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider = New Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider() flowPdfProvider.Export(document, output, TimeSpan.FromSeconds(10)) End Using -{{endregion}} +``` Run the project and you should see something like this: diff --git a/images/avatar-ninja.svg b/images/avatar-ninja.svg new file mode 100644 index 00000000..d98c1b20 --- /dev/null +++ b/images/avatar-ninja.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/ninja-no-results.svg b/images/ninja-no-results.svg new file mode 100644 index 00000000..5d84ade5 --- /dev/null +++ b/images/ninja-no-results.svg @@ -0,0 +1,47 @@ + diff --git a/images/pdf-cover.png b/images/pdf-cover.png new file mode 100644 index 00000000..ce9967ef Binary files /dev/null and b/images/pdf-cover.png differ diff --git a/introduction.md b/introduction.md index 3e6c5491..cc5d76e2 100644 --- a/introduction.md +++ b/introduction.md @@ -36,13 +36,36 @@ img[alt$="><"] { Telerik Document Processing features the following libraries: -|Library|Description| -|----|----| -| [RadPdfProcessing]({%slug radpdfprocessing-overview%})|A processing library that allows you to create, import, and export PDF documents from your code. You can use it in any web or desktop .NET application without relying on third-party software like Adobe Acrobat.| -| [RadSpreadProcessing]({%slug radspreadprocessing-overview%})|A powerful library that enables you to create applications with native support for spreadsheet documents. With RadSpreadProcessing, you can create spreadsheets from scratch, modify existing documents or convert between the most common spreadsheet formats. You can save the generated workbook to a local file, stream, or stream it to the client browser.| -| [RadSpreadStreamProcessing]({%slug radspreadstreamprocessing-overview%})|Spread streaming is a document processing paradigm that allows you to create or read big spreadsheet documents with great performance and minimal memory footprint. The key for the memory efficiency is that the spread streaming library writes the spreadsheet content directly to a stream without creating and preserving the spreadsheet document model in memory.| -| [RadWordsProcessing]({%slug radwordsprocessing-overview%})|A processing library that allows you to create, modify and export documents to a variety of formats. Through the API, you can access each element in the document and modify, remove it or add a new one. The generated content you can save as a stream, as a file, or sent it to the client browser.| -| [RadZipLibrary]({%slug radziplibrary-overview%})| It allows you to compress and combine files in ZIP archives, browse and extract files from existing ZIP archives and compress streams for easy file shipping and reduced storage space.| +* [RadPdfProcessing]({%slug radpdfprocessing-overview%}) + + ||| + |----|----| + ||A processing library that allows you to create, import, and export PDF documents from your code. You can use it in any web or desktop .NET application without relying on third-party software like Adobe Acrobat.| + +* [RadSpreadProcessing]({%slug radspreadprocessing-overview%}) + + ||| + |----|----| + || A powerful library that enables you to create applications with native support for spreadsheet documents. With RadSpreadProcessing, you can create spreadsheets from scratch, modify existing documents or convert between the most common spreadsheet formats. You can save the generated workbook to a local file, stream, or stream it to the client browser.| + +* [RadSpreadStreamProcessing]({%slug radspreadstreamprocessing-overview%}) + + ||| + |----|----| + ||Spread streaming is a document processing paradigm that allows you to create or read big spreadsheet documents with great performance and minimal memory footprint. The key for the memory efficiency is that the spread streaming library writes the spreadsheet content directly to a stream without creating and preserving the spreadsheet document model in memory. | + +* [RadWordsProcessing]({%slug radwordsprocessing-overview%}) + + ||| + |----|----| + ||A processing library that allows you to create, modify and export documents to a variety of formats. Through the API, you can access each element in the document and modify, remove it or add a new one. The generated content you can save as a stream, as a file, or sent it to the client browser.| + + +* [RadZipLibrary]({%slug radziplibrary-overview%}) + + ||| + |----|----| + ||It allows you to compress and combine files in ZIP archives, browse and extract files from existing ZIP archives and compress streams for easy file shipping and reduced storage space.| ## Key Features diff --git a/knowledge-base/add-html-to-pdf-document.md b/knowledge-base/add-html-to-pdf-document.md index a0a0c6ff..7028841f 100644 --- a/knowledge-base/add-html-to-pdf-document.md +++ b/knowledge-base/add-html-to-pdf-document.md @@ -33,11 +33,7 @@ You have an HTML that needs to be converted to PDF or added to an existing docum ## Solution You can use the WordsProcessing library to convert the content to a RadFlowDocument and then insert it to the existing document along with other content. -#### __C#__ - -{{region kb-convert-html-to-pdf}} - -```c# +```csharp HtmlFormatProvider provider = new HtmlFormatProvider(); var htmlConteont = provider.Import(File.ReadAllText(@"..\..\HtmlPage1.html")); @@ -58,8 +54,6 @@ var pdfBytes = pdfFProvider.Export(document); File.WriteAllBytes("result.pdf", pdfBytes); ``` -{{endregion}} - # See Also * [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%}) diff --git a/knowledge-base/archive-a-list-of-files.md b/knowledge-base/archive-a-list-of-files.md index 502ceeff..72cce4d5 100644 --- a/knowledge-base/archive-a-list-of-files.md +++ b/knowledge-base/archive-a-list-of-files.md @@ -21,9 +21,7 @@ You need to create an archive from a list of files. Use [RadZipLibrary]({%slug radziplibrary-overview%}) to create and export the archive. -#### __C#__ - -{{region kb-archive-a-list-of-files1}} +```csharp ListHello, world!
"; Telerik.Windows.Documents.Flow.FormatProviders.Html.HtmlFormatProvider htmlProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Html.HtmlFormatProvider(); @@ -97,11 +97,11 @@ In scenarios where you need to convert a document from another file format to PD // Export the document. The different overloads enables you to export to a byte[] or to a Stream. byte[] pdfBytes = pdfProvider.Export(flowDocument); -```` +``` ### Convert RTF to PDF -````C# +```csharp Telerik.Windows.Documents.Flow.Model.RadFlowDocument flowDocument; using (Stream input = File.OpenRead("sample.rtf")) { @@ -114,12 +114,12 @@ In scenarios where you need to convert a document from another file format to PD // Export the document. The different overloads enables you to export to a byte[] or to a Stream. byte[] pdfBytes = pdfProvider.Export(flowDocument); -```` +``` ### Convert Plain text to PDF -````C# +```csharp Telerik.Windows.Documents.Flow.Model.RadFlowDocument flowDocument; string text = "Hello, WordsProcessing!"; Telerik.Windows.Documents.Flow.FormatProviders.Txt.TxtFormatProvider provider = new Telerik.Windows.Documents.Flow.FormatProviders.Txt.TxtFormatProvider(); @@ -130,7 +130,7 @@ In scenarios where you need to convert a document from another file format to PD // Export the document. The different overloads enables you to export to a byte[] or to a Stream. byte[] pdfBytes = pdfProvider.Export(flowDocument); -```` +``` ## Convert a Spreadsheet Document to PDF @@ -143,7 +143,7 @@ While the so far discussed libraries allow working with text documents, with **S ### Convert XLSX to PDF -````C# +```csharp Telerik.Windows.Documents.Spreadsheet.Model.Workbook workbook; using (Stream input = File.OpenRead("sample.xlsx")) { @@ -156,11 +156,11 @@ While the so far discussed libraries allow working with text documents, with **S // Export the document. The different overloads enables you to export to a byte[] or to a Stream. byte[] pdfBytes = pdfProvider.Export(workbook); -```` +``` ### Convert XLS to PDF -````C# +```csharp Telerik.Windows.Documents.Spreadsheet.Model.Workbook workbook; using (Stream input = File.OpenRead("sample.xls")) { @@ -174,11 +174,11 @@ While the so far discussed libraries allow working with text documents, with **S // Export the document. The different overloads enables you to export to a byte[] or to a Stream. byte[] pdfBytes = pdfProvider.Export(workbook); -```` +``` ### Convert CSV to PDF -````C# +```csharp Telerik.Windows.Documents.Spreadsheet.Model.Workbook workbook; using (Stream input = File.OpenRead("sample.csv")) { @@ -191,11 +191,11 @@ While the so far discussed libraries allow working with text documents, with **S // Export the document. The different overloads enables you to export to a byte[] or to a Stream. byte[] pdfBytes = pdfProvider.Export(workbook); -```` +``` ### Convert DataTable to PDF -````C# +```csharp Telerik.Windows.Documents.Spreadsheet.Model.Workbook workbook; using (Stream input = File.OpenRead("sample.csv")) { @@ -209,7 +209,7 @@ While the so far discussed libraries allow working with text documents, with **S // Export the document. The different overloads enables you to export to a byte[] or to a Stream. byte[] pdfBytes = pdfProvider.Export(workbook); -```` +``` ## See Also diff --git a/knowledge-base/convert-xlsx-to-pdf.md b/knowledge-base/convert-xlsx-to-pdf.md index 2dc2f0fc..c2ef184b 100644 --- a/knowledge-base/convert-xlsx-to-pdf.md +++ b/knowledge-base/convert-xlsx-to-pdf.md @@ -21,9 +21,9 @@ This article demonstrates how you can convert a Xlsx file to a PDF with the [Sp The solution is to import the file with the XlsxFormatProvider and export it with the PdfFormatProvider. -#### [C#] Convert Xlsx to PDF +#### Convert Xlsx to PDF -{{region kb-convert-xlsx-topdf1}} +```csharp public static void ConvertXlsxToPdf(string path, string resultPath) { @@ -37,5 +37,5 @@ The solution is to import the file with the XlsxFormatProvider and export it wit File.WriteAllBytes(resultPath, resultBytes); } -{{endregion}} +``` diff --git a/knowledge-base/create-custom-image-bullets.md b/knowledge-base/create-custom-image-bullets.md index 5b988b12..7666a88c 100644 --- a/knowledge-base/create-custom-image-bullets.md +++ b/knowledge-base/create-custom-image-bullets.md @@ -34,9 +34,7 @@ How to create a custom [ListLevel](https://docs.telerik.com/devtools/document-pr This functionality could be achieved by creating a custom class implementing [IBulletNumberingFormat](https://docs.telerik.com/devtools/document-processing/api/Telerik.Windows.Documents.Fixed.Model.Editing.Lists.IBulletNumberingFormat.html) and passing it to [BulletNumberingFormat](https://docs.telerik.com/devtools/document-processing/api/Telerik.Windows.Documents.Fixed.Model.Editing.Lists.ListLevel.html#collapsible-Telerik_Windows_Documents_Fixed_Model_Editing_Lists_ListLevel_BulletNumberingFormat) property of the [ListLevel](https://docs.telerik.com/devtools/document-processing/api/Telerik.Windows.Documents.Fixed.Model.Editing.Lists.ListLevel.html) class. -#### __[C#]__ - -{{region kb-create-custom-image-bullets1}} +```csharp RadFixedDocument document = new RadFixedDocument(); @@ -61,11 +59,11 @@ This functionality could be achieved by creating a custom class implementing [IB RadFixedDocumentEditor editor = new RadFixedDocumentEditor(document); editor.InsertTable(table); -{{endregion}} +``` -#### __[C#] Create custom image numbering bullet__ +#### __Create custom image numbering bullet__ -{{region kb-create-custom-image-bullets2}} +```csharp private List GetCustomBullet() { @@ -98,11 +96,11 @@ This functionality could be achieved by creating a custom class implementing [IB return list; } -{{endregion}} +``` -#### __[C#] Creating a custom class implementing IBulletNumberingFormat__ +#### __Creating a custom class implementing IBulletNumberingFormat__ -{{region kb-create-custom-image-bullets2}} +```csharp internal class CustomBullet : IBulletNumberingFormat { @@ -120,4 +118,4 @@ This functionality could be achieved by creating a custom class implementing [IB } } -{{endregion}} +``` diff --git a/knowledge-base/create-custom-image-properties-resolver-net-standard.md b/knowledge-base/create-custom-image-properties-resolver-net-standard.md index f3b5eaee..14b96158 100644 --- a/knowledge-base/create-custom-image-properties-resolver-net-standard.md +++ b/knowledge-base/create-custom-image-properties-resolver-net-standard.md @@ -41,7 +41,7 @@ res_type: kb The following code snippets demonstrate how to create a custom implementation of the ImagePropertiesResolver abstract class using the [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) (2.0.0) library and set it to the **ImagePropertiesResolver** property of the **FixedExtensibilityManager**. -#### __[C#] Create a custom implementation inheriting the ImagePropertiesResolverBase abstract class__ +#### __Create a custom implementation inheriting the ImagePropertiesResolverBase abstract class__ ```csharp @@ -186,7 +186,7 @@ public class ImagePropertiesResolver : ImagePropertiesResolverBase ``` -#### __[C#] Set the custom implementation to the ImagePropertiesResolver property of the FixedExtensibilityManager__ +#### __Set the custom implementation to the ImagePropertiesResolver property of the FixedExtensibilityManager__ ```csharp diff --git a/knowledge-base/create-custom-jpeg-image-converter-net-standard.md b/knowledge-base/create-custom-jpeg-image-converter-net-standard.md index 98e75b8d..96583be9 100644 --- a/knowledge-base/create-custom-jpeg-image-converter-net-standard.md +++ b/knowledge-base/create-custom-jpeg-image-converter-net-standard.md @@ -40,9 +40,9 @@ res_type: kb The following code snippets demonstrate how to create a custom implementation of the JpegImageConverterBase abstract class using the [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) library and set it to the JpegImageConverter property of the FixedExtensibilityManager. We are using the ImageSharp library to convert the images from one of the library's supported formats to Jpeg and to change their quality if it is set. Note that this approach is valid up to version 2023.1.410 of RadPdfProcessing. -#### __[C#] Create a custom implementation inheriting the JpegImageConverterBase abstract class__ +#### __Create a custom implementation inheriting the JpegImageConverterBase abstract class__ -{{region kb-create-custom-jpeg-image-converter1}} +```csharp public class CustomJpegImageConverter : JpegImageConverterBase { @@ -89,11 +89,11 @@ The following code snippets demonstrate how to create a custom implementation of } } -{{endregion}} +``` -#### __[C#] Set the custom implementation to the JpegImageConverter property of the FixedExtensibilityManager__ +#### __Set the custom implementation to the JpegImageConverter property of the FixedExtensibilityManager__ -{{region kb-create-custom-jpeg-image-converter2}} +```csharp JpegImageConverterBase customJpegImageConverter = new CustomJpegImageConverter(); FixedExtensibilityManager.JpegImageConverter = customJpegImageConverter; @@ -123,7 +123,7 @@ The following code snippets demonstrate how to create a custom implementation of Process.Start(new ProcessStartInfo() { FileName = outputFilePath, UseShellExecute = true }); -{{endregion}} +``` # See Also diff --git a/knowledge-base/create-custom-predefined-cmaps-provider.md b/knowledge-base/create-custom-predefined-cmaps-provider.md index d2a80fee..b7c0f018 100644 --- a/knowledge-base/create-custom-predefined-cmaps-provider.md +++ b/knowledge-base/create-custom-predefined-cmaps-provider.md @@ -35,9 +35,9 @@ How to create a custom implementation of the [PredefinedCMapsProviderBase](https This functionality could be achieved by creating a custom class inheriting the [PredefinedCMapsProviderBase](https://docs.telerik.com/devtools/document-processing/api/telerik.windows.documents.extensibility.predefinedcmapsproviderbase) and passing it to [PredefinedCMapsProvider](https://docs.telerik.com/devtools/document-processing/api/telerik.windows.documents.cmaputils.predefinedcmapsprovider) property of the [FixedExtensibilityManager](https://docs.telerik.com/devtools/document-processing/api/telerik.windows.documents.extensibility.fixedextensibilitymanager) class. -#### __[C#] Creating a custom class inheriting PredefinedCMapsProviderBase__ +#### __Creating a custom class inheriting PredefinedCMapsProviderBase__ -{{region kb-create-custom-predefined-cmaps-provider1}} +```csharp internal class CustomPredefinedCMapsProvider : PredefinedCMapsProviderBase { @@ -64,12 +64,12 @@ This functionality could be achieved by creating a custom class inheriting the [ } } -{{endregion}} +``` -#### __[C#] Set the custom PredefinedCMapsProvider the FixedExtensibilityManager.PredefinedCMapsProvider__ +#### __Set the custom PredefinedCMapsProvider the FixedExtensibilityManager.PredefinedCMapsProvider__ -{{region kb-create-custom-predefined-cmaps-provider2}} +```csharp FixedExtensibilityManager.PredefinedCMapsProvider = new CustomPredefinedCMapsProvider(new PredefinedCMapsProvider()); -{{endregion}} +``` diff --git a/knowledge-base/create-custom-text-measurer-net-standard.md b/knowledge-base/create-custom-text-measurer-net-standard.md index fa8f6345..baa74164 100644 --- a/knowledge-base/create-custom-text-measurer-net-standard.md +++ b/knowledge-base/create-custom-text-measurer-net-standard.md @@ -34,9 +34,9 @@ Due to **.NET Standard** APIs limitations, the _SimpleTextMeasurer_ provides bas In the example below, we are demonstrating how to create a custom [TextMeasurer](https://docs.telerik.com/devtools/document-processing/api/telerik.windows.documents.core.textmeasurer) inheriting the _SpreadTextMeasurerBase_ abstract class and set it to the _TextMeasurer_ property of the _SpreadExtensibilityManager_. -#### __[C#] Creating a CustomTextMeasurer__ +#### __Creating a CustomTextMeasurer__ -{{region kb-create-custom-text-measurer-net-standard1}} +```csharp public class CustomTextMeasurer : SpreadTextMeasurerBase { @@ -79,17 +79,17 @@ In the example below, we are demonstrating how to create a custom [TextMeasurer] }; } } -{{endregion}} +``` The following example shows how to set the custom implementation inheriting the SpreadTextMeasurerBase abstract class to the TextMeasurer property of the SpreadExtensibilityManager. -#### __[C#] Setting the CustomTextMeasurer__ +#### __Setting the CustomTextMeasurer__ -{{region kb-create-custom-text-measurer-net-standard2}} +```csharp SpreadTextMeasurerBase customTextMeasurer = new CustomTextMeasurer(SpreadExtensibilityManager.TextMeasurer); SpreadExtensibilityManager.TextMeasurer = customTextMeasurer; -{{endregion}} +``` ## See Also * [How to Measure Text in WordsProcessing .NET Framework]({%slug wordsprocessing-measure-text-netframework%}) diff --git a/knowledge-base/create-dashed-line-border-table-radpdfprocessing.md b/knowledge-base/create-dashed-line-border-table-radpdfprocessing.md index 7f34e9a5..a7bfeb55 100644 --- a/knowledge-base/create-dashed-line-border-table-radpdfprocessing.md +++ b/knowledge-base/create-dashed-line-border-table-radpdfprocessing.md @@ -7,17 +7,17 @@ slug: create-dashed-line-border-table-radpdfprocessing tags: pdfprocessing, table, border, dash, line res_type: kb --- -# Environment +## Environment | Version | Product | Author | | --- | --- | ---- | | 2024.1.124 | RadPdfProcessing |[Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova)| -# Description +## Description Learn how to add a dashed line border in a table using [RadPdfProcessing]({%slug radpdfprocessing-overview%}). -# Solution +## Solution To create a dashed line border for a [Table]({%slug radpdfprocessing-editing-table-overview%}) in RadPdfProcessing, you can follow these steps: 1. Set the desired font style properties for the table. @@ -26,7 +26,7 @@ To create a dashed line border for a [Table]({%slug radpdfprocessing-editing-tab 4. Set the `Padding` property of the table's `DefaultCellProperties` to the desired padding values. 5. Add rows and cells to the table and set the preferred width for each cell. 6. Insert text into each cell using the desired font style properties. -7. Use a [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}}) to draw the table on the document page. +7. Use a [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}) to draw the table on the document page. 8. Specify the desired dashed line style by setting the `StrokeDashArray` property of the `GraphicProperties` of the `FixedContentEditor`. Here is a sample code snippet that demonstrates how to create a dashed line border for a table in RadPdfProcessing: diff --git a/knowledge-base/create-pdf-document-with-logo-and-text-using-fixedcontenteditor.md b/knowledge-base/create-pdf-document-with-logo-and-text-using-fixedcontenteditor.md index e2c65364..a6d3c3d6 100644 --- a/knowledge-base/create-pdf-document-with-logo-and-text-using-fixedcontenteditor.md +++ b/knowledge-base/create-pdf-document-with-logo-and-text-using-fixedcontenteditor.md @@ -7,16 +7,16 @@ slug: create-pdf-document-with-logo-and-text-using-fixedcontenteditor tags: pdf, fixedcontenteditor, editor, logo, image, text res_type: kb --- -# Environment +## Environment | Version | Product | Author | | --- | --- | ---- | | 2024.1.124 | RadPdfProcessing |[Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova)| -# Description +## Description This tutorial demonstrates a sample approach how to create a PDF document from scratch that contains a logo and text. -# Solution +## Solution The powerful [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}) allows you draw any element at the desired [Position]({%slug radpdfprocessing-concepts-position%}): diff --git a/knowledge-base/creating-colored-squares-radflowdocument.md b/knowledge-base/creating-colored-squares-radflowdocument.md index 0903178e..de0dd710 100644 --- a/knowledge-base/creating-colored-squares-radflowdocument.md +++ b/knowledge-base/creating-colored-squares-radflowdocument.md @@ -7,7 +7,7 @@ slug: creating-colored-squares-radflowdocument tags: radflowdocument, colored-square, border, telerik-document-processing res_type: kb --- -# Environment +## Environment | Version | Product | Author | | ---- | ---- | ---- | diff --git a/knowledge-base/cs0104-error-pdf-format-provider.md b/knowledge-base/cs0104-error-pdf-format-provider.md index c4240ec7..3c233dcf 100644 --- a/knowledge-base/cs0104-error-pdf-format-provider.md +++ b/knowledge-base/cs0104-error-pdf-format-provider.md @@ -24,13 +24,13 @@ When using the **PdfFormatProvider** in your project, you may encounter one of t Usually, such an error may occur when the following **using** statements are imported: -````C# +```csharp using Telerik.Windows.Documents.Fixed.FormatProviders.Pdf; using Telerik.Windows.Documents.Flow.FormatProviders.Pdf; using Telerik.Windows.Documents.Spreadsheet.FormatProviders.Pdf; PdfFormatProvider provider = PdfFormatProvider(); -```` +``` ## Solution @@ -45,21 +45,21 @@ Telerik Document Processing Libraries offer PdfFormatProvider which makes it eas Explicitly specify the namespace when declaring the **PdfFormatProvider** object based on your specific requirement: - If you are working with **RadSpreadProcessing**, use the following namespace: -````C# +```csharp Telerik.Windows.Documents.Spreadsheet.FormatProviders.Pdf.PdfFormatProvider provider = new Telerik.Windows.Documents.Spreadsheet.FormatProviders.Pdf.PdfFormatProvider(); -```` +``` - If you are working with **RadWordsProcessing**, use the following namespace: -````C# +```csharp Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider provider = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider(); -```` +``` - If you are working with **RadPdfProcessing**, use the following namespace: -````C# +```csharp Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider provider = new Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider(); -```` +``` By explicitly specifying the namespace, you ensure that the correct `PdfFormatProvider` is used and avoid ambiguous reference errors. diff --git a/knowledge-base/dpl-troubleshooting-nuget.md b/knowledge-base/dpl-troubleshooting-nuget.md index e6a9d3cb..3cc83b89 100644 --- a/knowledge-base/dpl-troubleshooting-nuget.md +++ b/knowledge-base/dpl-troubleshooting-nuget.md @@ -15,7 +15,7 @@ ticketid: 1671187 | --- | --- | ---- | | N/A| Telerik Document Processing Libraries|[Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova)| -# Troubleshooting Telerik NuGet +## Troubleshooting Telerik NuGet This article provides solutions to common issues that you may observe when working with the Telerik NuGet server and the NuGet packages that it provides. diff --git a/knowledge-base/draw-chart-with-fixedcontenteditor.md b/knowledge-base/draw-chart-with-fixedcontenteditor.md index 2824cf7c..54458c67 100644 --- a/knowledge-base/draw-chart-with-fixedcontenteditor.md +++ b/knowledge-base/draw-chart-with-fixedcontenteditor.md @@ -7,16 +7,16 @@ slug: draw-chart-with-fixedcontenteditor tags: pdfprocessing, chart, draw, pdf, fixedcontenteditor res_type: kb --- -# Environment +## Environment | Version | Product | Author | | ---- | ---- | ---- | | 2024.1.124 | RadPdfProcessing |[Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova)| -# Description +## Description This article demonstrates a sample solution how to draw a chart in PdfProcessing. -# Solution +## Solution The powerful [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}) allows you to draw a simulation of a chart element at the desired [Position]({%slug radpdfprocessing-concepts-position%}): diff --git a/knowledge-base/export-radfixedpage-to-image.md b/knowledge-base/export-radfixedpage-to-image.md index 3ed25f4e..33d85549 100644 --- a/knowledge-base/export-radfixedpage-to-image.md +++ b/knowledge-base/export-radfixedpage-to-image.md @@ -42,8 +42,8 @@ To achieve this we can use the [RadPdfViewer](https://docs.telerik.com/devtools/ q >note The COM threading model for the application has to be a single-threaded apartment (STA). A STAThreadAttribute tag "[STAThread]" should be placed on the class. -#### __[C#] Assemblies version bellow 2020.2.513__ -{{region kb-export-radfixedpage-to-image1}} +#### __Assemblies version bellow 2020.2.513__ +```csharp [STAThread] private static void Main(string[] args) @@ -85,10 +85,10 @@ To achieve this we can use the [RadPdfViewer](https://docs.telerik.com/devtools/ } } -{{endregion}} +``` -#### __[C#] Assemblies version 2020.2.513 or above__ -{{region kb-export-radfixedpage-to-image2}} +#### __Assemblies version 2020.2.513 or above__ +```csharp [STAThread] private static void Main(string[] args) @@ -123,4 +123,4 @@ To achieve this we can use the [RadPdfViewer](https://docs.telerik.com/devtools/ } } -{{endregion}} +``` diff --git a/knowledge-base/extract-text-specific-rectangle-pdf-radpdfprocessing.md b/knowledge-base/extract-text-specific-rectangle-pdf-radpdfprocessing.md index cc29af3f..3f19b6fc 100644 --- a/knowledge-base/extract-text-specific-rectangle-pdf-radpdfprocessing.md +++ b/knowledge-base/extract-text-specific-rectangle-pdf-radpdfprocessing.md @@ -65,6 +65,6 @@ The detected text is printed in the Output console: ## See Also -- [RadPdfProcessing Documentation]({%slug radpdfprocessing-overview%}}) -- [TextFragment]({%slug radpdfprocessing-model-textfragment%}}) +- [RadPdfProcessing Documentation]({%slug radpdfprocessing-overview%}) +- [TextFragment]({%slug radpdfprocessing-model-textfragment%}) - [MatrixPosition]({%slug radpdfprocessing-concepts-position%}) diff --git a/knowledge-base/fit-multiline-text-stamp-annotation-radpdfprocessing.md b/knowledge-base/fit-multiline-text-stamp-annotation-radpdfprocessing.md index c586652e..f0f64603 100644 --- a/knowledge-base/fit-multiline-text-stamp-annotation-radpdfprocessing.md +++ b/knowledge-base/fit-multiline-text-stamp-annotation-radpdfprocessing.md @@ -36,7 +36,7 @@ To fit multiline text inside a stamp rectangle: Below is a complete example demonstrating these steps. -#### [C#] Measure and Fit Multiline Text in a StampAnnotation +#### Measure and Fit Multiline Text in a StampAnnotation ```csharp using System; diff --git a/knowledge-base/fix-winforms-runtime-dpi-aware-application.md b/knowledge-base/fix-winforms-runtime-dpi-aware-application.md index ba1bd449..4949a6c3 100644 --- a/knowledge-base/fix-winforms-runtime-dpi-aware-application.md +++ b/knowledge-base/fix-winforms-runtime-dpi-aware-application.md @@ -33,7 +33,7 @@ With this approach your app will look smaller when started. It will not look blu This approach works only on Windows 10. If you intend to use your application on machines where the DPI scaling is larger than 100 percent, you should explicitly set the application to be DPI-unaware -#### [C#] Force process DPI unaware before using a Document Processing type +#### Force process DPI unaware before using a Document Processing type ```csharp private void workbookTestButton_Click(object sender, EventArgs e) diff --git a/knowledge-base/flatten-form-fields.md b/knowledge-base/flatten-form-fields.md index 32cd58fb..e454b626 100644 --- a/knowledge-base/flatten-form-fields.md +++ b/knowledge-base/flatten-form-fields.md @@ -36,9 +36,7 @@ How to flatten [Form Fields]({%slug radpdfprocessing-model-interactive-forms-for This could be achieved by iterating the [RadFixedPage]({%slug radpdfprocessing-model-radfixedpage%})`s [Annotations]({%slug radpdfprocessing-model-annotations-overview%}) and if the type of the annotation is [Widget]({%slug radpdfprocessing-model-annotations-widgets%}) to flatten its appearance. -#### __C#__ - -{{region kb-flatten-form-fields1}} +```csharp public static void FlattenFormFields(RadFixedDocument document) { @@ -139,4 +137,4 @@ This could be achieved by iterating the [RadFixedPage]({%slug radpdfprocessing-m return widgetAppearance; } -{{endregion}} +``` diff --git a/knowledge-base/generate-table-with-images-pdf-processing.md b/knowledge-base/generate-table-with-images-pdf-processing.md index ac95ca25..9e997115 100644 --- a/knowledge-base/generate-table-with-images-pdf-processing.md +++ b/knowledge-base/generate-table-with-images-pdf-processing.md @@ -8,16 +8,16 @@ tags: radpdfprocessing, radfixeddocument, image, height, width, retain res_type: kb --- -# Environment +## Environment | Version | Product | Author | | --- | --- | ---- | | 2024.1.124 | RadPdfProcessing |[Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova)| -# Description +## Description Learn how to create a PDF document containing a [Table]({%slug radpdfprocessing-editing-table-overview%}) with [images]({%slug radpdfprocessing-model-image%}). -# Solution +## Solution [RadPdfProcessing]({%slug radpdfprocessing-overview%}) is suitable for such a requirement and it allows a convenient API for creating a RadFixedDocument from scratch and populating a table with image content: @@ -81,7 +81,7 @@ Here is an example of how to implement this solution:  # See Also -- [RadPdfProcessing]({%slug radpdfprocessing-overview%}}) +- [RadPdfProcessing]({%slug radpdfprocessing-overview%}) - [Table]({%slug radpdfprocessing-editing-table-overview%}) - [Images]({%slug radpdfprocessing-model-image%}) diff --git a/knowledge-base/how-to-fit-graphics-to-frames.md b/knowledge-base/how-to-fit-graphics-to-frames.md index 0b327e45..ec334b45 100644 --- a/knowledge-base/how-to-fit-graphics-to-frames.md +++ b/knowledge-base/how-to-fit-graphics-to-frames.md @@ -40,9 +40,9 @@ This functionality could be achieved by using the [FixedContentEditor](https://d * Fit Frame to Content The following example demonstrates how to fit the image in a square without changing the image sides aspect ratio. -#### __[C#] Fit Content Proportionally__ +#### __Fit Content Proportionally__ -{{region kb-how-to-fit-graphics-to-frames1}} +```csharp double squareSide = 90; @@ -63,12 +63,12 @@ The following example demonstrates how to fit the image in a square without chan } } -{{endregion}} +``` The following example demonstrates how to stretch the image in a square (the image aspect ratio is changed). -#### __[C#] Fit Content To Frame__ +#### __Fit Content To Frame__ -{{region kb-how-to-fit-graphics-to-frames2}} +```csharp double squareSide = 90; @@ -82,12 +82,12 @@ The following example demonstrates how to stretch the image in a square (the ima editor.DrawBlock(block); } -{{endregion}} +``` The following example demonstrates how to crop the image in order to fill a square without changing the image aspect ratio. -#### __[C#] Fill Frame Proportionally__ +#### __Fill Frame Proportionally__ -{{region kb-how-to-fit-graphics-to-frames3}} +```csharp double squareSide = 90; @@ -126,15 +126,15 @@ The following example demonstrates how to crop the image in order to fill a squa } } -{{endregion}} +``` In the last scenario, we are finding the smallest side of the image and use it to calculate the factor which we are using to scale the position. After that, we are calculating the offset that we are going to use to create an image [Clipping](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/concepts/clipping) with the desired size. The following example demonstrates how to insert an image in its original size. -#### __[C#] Fit Frame to Content__ +#### __Fit Frame to Content__ -{{region kb-how-to-fit-graphics-to-frames4}} +```csharp FixedContentEditor editor = new FixedContentEditor(document.Pages.AddPage()); editor.DrawText("Fit Frame To Content"); @@ -147,4 +147,4 @@ The following example demonstrates how to insert an image in its original size. editor.DrawBlock(block); } -{{endregion}} +``` diff --git a/knowledge-base/how-to-identify-document-type.md b/knowledge-base/how-to-identify-document-type.md index 008da324..ba2063ad 100644 --- a/knowledge-base/how-to-identify-document-type.md +++ b/knowledge-base/how-to-identify-document-type.md @@ -35,9 +35,9 @@ This article describes how to identify the actual document type when the filenam The following example demonstrates how to read two documents with ".doc" filename extensions but actually different document types. Using the [`StringBuilder`](https://docs.microsoft.com/en-us/dotnet/api/system.text.stringbuilder?view=net-6.0) class we are creating the document signature (header) string, which later to compare with predefined values. Once having the right document type we can determine which format provider to use to import the document. -#### __[C#] Example__ +#### __Example__ -{{region how-to-identify-document-type1}} +```csharp List
editor.InsertField("PAGE \\* ROMAN", "«VII»");
@@ -59,7 +59,7 @@ The __\\* ROMAN__ is general formatting switch that formats a numeric result usi
**Example 2** demonstrates how a combination of __PAGE__ and __NUMPAGES__ fields can be inserted to show which is the current page as well as the total page count in the document.
-#### __[C#] Example 2: Insert NUMPAGES field__
+#### __Example 2: Insert NUMPAGES field__
editor.InsertText("Page ");
@@ -73,7 +73,7 @@ The __\\* ROMAN__ is general formatting switch that formats a numeric result usi
In **Example 3** is demonstrated how to insert __AUTHOR__ field showing the name of the author of the document.
-#### __[C#] Example 3: Insert AUTHOR field__
+#### __ Example 3: Insert AUTHOR field__
editor.InsertField("AUTHOR \\* Upper", "«JOHN DOE»");
@@ -87,7 +87,7 @@ The __\\* Upper__ switch will convert all letters in the result to uppercase.
**Example 4** shows how to insert a table of contents (TOC) field.
-#### __[C#] Example 4: Insert Table of Contents field__
+#### __ Example 4: Insert Table of Contents field__
FieldInfo tocField = editor.InsertField("TOC \\o \"1-3\" \\h \\z \\u", "«result»");
diff --git a/libraries/radwordsprocessing/concepts/fields/date-field.md b/libraries/radwordsprocessing/concepts/fields/date-field.md
index d0991907..1892b23d 100644
--- a/libraries/radwordsprocessing/concepts/fields/date-field.md
+++ b/libraries/radwordsprocessing/concepts/fields/date-field.md
@@ -38,7 +38,7 @@ Inserting a Date Field is easily achieved through the [RadFlowDocumentEditor]({%
__Example 1__ demonstrates how you can insert a date field.
-#### __[C#] Example 1: Insert date field__
+#### __Example 1: Insert date field__
diff --git a/libraries/radwordsprocessing/concepts/fields/document-variables.md b/libraries/radwordsprocessing/concepts/fields/document-variables.md
index 78e75456..7356a07d 100644
--- a/libraries/radwordsprocessing/concepts/fields/document-variables.md
+++ b/libraries/radwordsprocessing/concepts/fields/document-variables.md
@@ -18,7 +18,7 @@ position: 4
[RadFlowDocument]({%slug radwordsprocessing-model-radflowdocument%}) has a __DocumentVariableCollection__ property, which holds document variable records. The collection maps string keys to string values. You can add a record in it through an indexer or with the collection's __Add()__ method. __Example 1__ demonstrates both approaches.
-#### __[C#] Example 1: Add document variable record__
+#### __Example 1: Add document variable record__
@@ -33,7 +33,7 @@ The same two methods can be used to modify the value of an existing variable in
Removing defined variables can be achieved by using the __Remove()__ method of the variables collection. It accepts the name of the variable as a parameter.
-#### __[C#] Example 2: Remove document variable record__
+#### __Example 2: Remove document variable record__
@@ -58,7 +58,7 @@ A __DocumentVariable__ field can be inserted through [RadFlowDocumentEditor]({%s
__Example 3__ shows insertion of the field created in __Example 1__.
-#### __[C#] Example 3: Insert document variable field__
+#### __Example 3: Insert document variable field__
diff --git a/libraries/radwordsprocessing/concepts/fields/expression-field.md b/libraries/radwordsprocessing/concepts/fields/expression-field.md
index 8d1ecb1d..65ea96f9 100644
--- a/libraries/radwordsprocessing/concepts/fields/expression-field.md
+++ b/libraries/radwordsprocessing/concepts/fields/expression-field.md
@@ -90,7 +90,7 @@ Specifies the display of a numeric result. This switch is called a "picture" swi
Inserting an Expression Field is easily achieved through the [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%})'s **InsertField()** method. It accepts code as first argument and result as second argument.
-#### __[C#] Example 1: Insert an Expression field__
+#### __Example 1: Insert an Expression field__
diff --git a/libraries/radwordsprocessing/concepts/fields/fields.md b/libraries/radwordsprocessing/concepts/fields/fields.md
index e6cfe01a..43a8571a 100644
--- a/libraries/radwordsprocessing/concepts/fields/fields.md
+++ b/libraries/radwordsprocessing/concepts/fields/fields.md
@@ -77,14 +77,14 @@ In the document object model Fields are represented by the [Field](https://docs.
The suggested way to insert field is to use the __InsertField()__ method of [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%}) class. It takes care of creating and inserting the code and result fragments as well as placing the appropriate field character inlines to separate them. The __InsertField()__ method returns an instance of the __FieldInfo__ class. It holds references to the start, separate and end field characters and also provides an API for getting the code and result fragments and updating the field.
-#### __[C#] Example 1: Create a document containing a Date field using RadFlowDocumentEditor__
+#### __Example 1: Create a document containing a Date field using RadFlowDocumentEditor__
You can also create and insert all the parts of the field manually by creating a __FieldInfo__ instance and adding all the inlines to the document structure. **Example 2** demonstrates how to achieve the same result as in **Example 1**.
-#### __[C#] Example 2: Create a document containing a Date field using the RadDocument model and FieldInfo__
+#### __Example 2: Create a document containing a Date field using the RadDocument model and FieldInfo__
@@ -109,7 +109,7 @@ If the field type is not one of the above, the result will not be updated and th
Updating a single field is done with the __UpdateField()__ method of the __FieldInfo__ class as demonstrated in **Example 3**.
-#### __[C#] Example 3: Update a field__
+#### __Example 3: Update a field__
@@ -118,7 +118,7 @@ Updating a single field is done with the __UpdateField()__ method of the __Field
All fields in the document can be updated using __UpdateFields()__ of __RadFlowDocument__. **Example 4** shows how to use this method.
-#### __[C#] Example 4: Update all fields in a document__
+#### __Example 4: Update all fields in a document__
@@ -130,7 +130,7 @@ In R3 2022 the above fields were introduced. Their evaluation requires calculati
You can register the provider with the following code:
-#### __[C#] Example 5: Register the default NumberingFieldsProvider__
+#### __Example 5: Register the default NumberingFieldsProvider__
@@ -168,7 +168,7 @@ Fields can also be nested in each other. If there are nested fields inside the c
**Example 5** creates a field, which will be evaluated to appropriate greeting based on the time of the day.
-#### __[C#] Example 6: Create a nested field__
+#### __Example 6: Create a nested field__
diff --git a/libraries/radwordsprocessing/concepts/fields/hyperlink-field.md b/libraries/radwordsprocessing/concepts/fields/hyperlink-field.md
index b64b09c4..0730c283 100644
--- a/libraries/radwordsprocessing/concepts/fields/hyperlink-field.md
+++ b/libraries/radwordsprocessing/concepts/fields/hyperlink-field.md
@@ -56,7 +56,7 @@ The possible switches for a Hyperlink field are:
Inserting a Hyperlink field is easily achieved through the [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%}). It provides two options for this:
* __InsertHyperlink()__ method. It accepts the hyperlink text, URI, IsAnchor value and tooltip as parameters.
- #### __[C#] Example 1: Insert a Hyperlink using InsertHyperlink method__
+ #### __Example 1: Insert a Hyperlink using InsertHyperlink method__
@@ -69,7 +69,7 @@ Inserting a Hyperlink field is easily achieved through the [RadFlowDocumentEdito
* __InsertField()__ method. It accepts code as first argument and result as second argument.
- #### __[C#] Example 2: Insert a Hyperlink field using InsertField method__
+ #### __Example 2: Insert a Hyperlink field using InsertField method__
@@ -81,7 +81,7 @@ Inserting a Hyperlink field is easily achieved through the [RadFlowDocumentEdito
Hyperlinks can also point to a [Bookmark]({%slug radwordsprocessing-model-bookmark%}) inside the document. **Example 3** shows how to create a document containing a bookmark and a hyperlink pointing to that bookmark.
-#### __[C#] Example 3: Insert a hyperlink pointing to a bookmark__
+#### __Example 3: Insert a hyperlink pointing to a bookmark__
diff --git a/libraries/radwordsprocessing/concepts/fields/if-field.md b/libraries/radwordsprocessing/concepts/fields/if-field.md
index e311a450..7e002fb9 100644
--- a/libraries/radwordsprocessing/concepts/fields/if-field.md
+++ b/libraries/radwordsprocessing/concepts/fields/if-field.md
@@ -42,7 +42,7 @@ Text that results when the comparison is true (TrueText) or false (FalseText). I
Inserting an If field is easily achieved through the [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%})'s __InsertField()__ method. It accepts code as first argument and result as second argument.
-#### __[C#] Example 1: Insert If field__
+#### __Example 1: Insert If field__
diff --git a/libraries/radwordsprocessing/concepts/fields/merge-field.md b/libraries/radwordsprocessing/concepts/fields/merge-field.md
index 72486606..ff87a996 100644
--- a/libraries/radwordsprocessing/concepts/fields/merge-field.md
+++ b/libraries/radwordsprocessing/concepts/fields/merge-field.md
@@ -53,16 +53,16 @@ The possible switches for a Merge field are:
Inserting a Merge field is easily achieved through the [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%})'s __InsertField()__ method. It accepts code as first argument and result as second argument.
-#### __[C#] Example 1: Insert Merge field__
+#### __Example 1: Insert Merge field__
-#### __[C#] Example 2: Insert Merge field with switches__
+#### __Example 2: Insert Merge field with switches__
-#### __[C#] Example 3: Insert Merge field with a Date-Time format switch__
+#### __Example 3: Insert Merge field with a Date-Time format switch__
diff --git a/libraries/radwordsprocessing/concepts/fields/numbering-fields-provider.md b/libraries/radwordsprocessing/concepts/fields/numbering-fields-provider.md
index 53aaafb0..123e346d 100644
--- a/libraries/radwordsprocessing/concepts/fields/numbering-fields-provider.md
+++ b/libraries/radwordsprocessing/concepts/fields/numbering-fields-provider.md
@@ -19,7 +19,7 @@ To use the default implementation of the __NumberingFieldsProvider__ you need to
The default provider can be set with the following code:
-#### __[C#] Example 1: Register the default NumberingFieldsProvider__
+#### __Example 1: Register the default NumberingFieldsProvider__
@@ -27,7 +27,7 @@ The default provider can be set with the following code:
This method allows you to use a custom numbering style converter.
-#### __[C#] Example 2: Register custom NumberingStyleConverter__
+#### __Example 2: Register custom NumberingStyleConverter__
diff --git a/libraries/radwordsprocessing/concepts/fields/numpages-fields.md b/libraries/radwordsprocessing/concepts/fields/numpages-fields.md
index 82c148d0..7c2c9c72 100644
--- a/libraries/radwordsprocessing/concepts/fields/numpages-fields.md
+++ b/libraries/radwordsprocessing/concepts/fields/numpages-fields.md
@@ -27,7 +27,7 @@ Inserting this field is easily achieved through the [RadFlowDocumentEditor]({%sl
__Example 1__ demonstrates how you can insert a NumPages field.
-#### __[C#] Example 1: Insert NumPages field__
+#### __Example 1: Insert NumPages field__
diff --git a/libraries/radwordsprocessing/concepts/fields/page-field.md b/libraries/radwordsprocessing/concepts/fields/page-field.md
index cf17f43c..3c6f5b50 100644
--- a/libraries/radwordsprocessing/concepts/fields/page-field.md
+++ b/libraries/radwordsprocessing/concepts/fields/page-field.md
@@ -40,7 +40,7 @@ Inserting this field is easily achieved through the [RadFlowDocumentEditor]({%sl
__Example 1__ demonstrates how you can insert a date field.
-#### __[C#] Example 1: Insert page field__
+#### __Example 1: Insert page field__
diff --git a/libraries/radwordsprocessing/concepts/fields/pageref-field.md b/libraries/radwordsprocessing/concepts/fields/pageref-field.md
index 31f33eb4..b67f9023 100644
--- a/libraries/radwordsprocessing/concepts/fields/pageref-field.md
+++ b/libraries/radwordsprocessing/concepts/fields/pageref-field.md
@@ -40,7 +40,7 @@ Inserting this field is easily achieved through the [RadFlowDocumentEditor]({%sl
__Example 1__ demonstrates how you can insert a PageRef field.
-#### __[C#] Example 1: Insert PageRef field__
+#### __Example 1: Insert PageRef field__
diff --git a/libraries/radwordsprocessing/concepts/fields/section.md b/libraries/radwordsprocessing/concepts/fields/section.md
index 2080d32a..12849b05 100644
--- a/libraries/radwordsprocessing/concepts/fields/section.md
+++ b/libraries/radwordsprocessing/concepts/fields/section.md
@@ -27,7 +27,7 @@ Inserting a Section field is easily achieved through the [RadFlowDocumentEditor]
__Example 1__ demonstrates how you can insert a section field.
-#### __[C#] Example 1: Insert section field__
+#### __Example 1: Insert section field__
diff --git a/libraries/radwordsprocessing/concepts/fields/sectionpages-field.md b/libraries/radwordsprocessing/concepts/fields/sectionpages-field.md
index 4b8bdc06..95e9b7ee 100644
--- a/libraries/radwordsprocessing/concepts/fields/sectionpages-field.md
+++ b/libraries/radwordsprocessing/concepts/fields/sectionpages-field.md
@@ -27,7 +27,7 @@ Inserting SectionPages field is easily achieved through the [RadFlowDocumentEdit
__Example 1__ demonstrates how you can insert a SectionPages field.
-#### __[C#] Example 1: Insert SectionPages field__
+#### __Example 1: Insert SectionPages field__
diff --git a/libraries/radwordsprocessing/concepts/fields/sequence-field.md b/libraries/radwordsprocessing/concepts/fields/sequence-field.md
index 0c6bc953..7d8b25ba 100644
--- a/libraries/radwordsprocessing/concepts/fields/sequence-field.md
+++ b/libraries/radwordsprocessing/concepts/fields/sequence-field.md
@@ -46,7 +46,7 @@ The possible switches for a Sequence field are:
Inserting a SEQ fields can be easily achieved when inserting number to tables, figures, and other items in a document.
-#### __[C#] Example 1: Insert Sequence field__ using InsertField() method__
+#### __Example 1: Insert Sequence field__ using InsertField() method__
The suggested approach for inserting code fields is by using [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%}). The InsertField() method accepts code as a first argument and the result as a second argument.
diff --git a/libraries/radwordsprocessing/concepts/fields/ta-field.md b/libraries/radwordsprocessing/concepts/fields/ta-field.md
index 19210487..ad40df61 100644
--- a/libraries/radwordsprocessing/concepts/fields/ta-field.md
+++ b/libraries/radwordsprocessing/concepts/fields/ta-field.md
@@ -38,7 +38,7 @@ Inserting this field is easily achieved through the [RadFlowDocumentEditor]({%sl
__Example 1__ demonstrates how you can insert a TA field.
-#### __[C#] Example 1: Insert TA field__
+#### __Example 1: Insert TA field__
var document = new RadFlowDocument();
diff --git a/libraries/radwordsprocessing/concepts/fields/tc-field.md b/libraries/radwordsprocessing/concepts/fields/tc-field.md
index 696b86d4..45057167 100644
--- a/libraries/radwordsprocessing/concepts/fields/tc-field.md
+++ b/libraries/radwordsprocessing/concepts/fields/tc-field.md
@@ -38,7 +38,7 @@ Inserting this field is easily achieved through the [RadFlowDocumentEditor]({%sl
__Example 1__ demonstrates how you can insert a TC field.
-#### __[C#] Example 1: Insert TC field__
+#### __Example 1: Insert TC field__
diff --git a/libraries/radwordsprocessing/concepts/fields/time-field.md b/libraries/radwordsprocessing/concepts/fields/time-field.md
index e9e7a379..4b1b6572 100644
--- a/libraries/radwordsprocessing/concepts/fields/time-field.md
+++ b/libraries/radwordsprocessing/concepts/fields/time-field.md
@@ -38,7 +38,7 @@ Inserting a merge field is easily achieved through the [RadFlowDocumentEditor]({
__Example 1__ demonstrates how you can insert a merge field.
-#### __[C#] Example 1: Insert merge field__
+#### __Example 1: Insert merge field__
editor.InsertField("TIME \\@ \"h:mm:ss am/pm\"", "«to be updated»");
diff --git a/libraries/radwordsprocessing/concepts/fields/toa-field.md b/libraries/radwordsprocessing/concepts/fields/toa-field.md
index c28af8d5..bd88ac25 100644
--- a/libraries/radwordsprocessing/concepts/fields/toa-field.md
+++ b/libraries/radwordsprocessing/concepts/fields/toa-field.md
@@ -40,7 +40,7 @@ Inserting this field is easily achieved through the [RadFlowDocumentEditor]({%sl
__Example 1__ demonstrates how you can insert a TOA field.
-#### __[C#] Example 1: Insert TOA field__
+#### __Example 1: Insert TOA field__
var document = new RadFlowDocument();
diff --git a/libraries/radwordsprocessing/concepts/fields/toc-field.md b/libraries/radwordsprocessing/concepts/fields/toc-field.md
index e9a9c13c..57f2818c 100644
--- a/libraries/radwordsprocessing/concepts/fields/toc-field.md
+++ b/libraries/radwordsprocessing/concepts/fields/toc-field.md
@@ -64,7 +64,7 @@ Inserting this field is easily achieved through the [RadFlowDocumentEditor]({%sl
__Example 1__ demonstrates how you can insert a TOC field.
-#### __[C#] Example 1: Insert TOC field__
+#### __Example 1: Insert TOC field__
var document = new RadFlowDocument();
diff --git a/libraries/radwordsprocessing/concepts/lists.md b/libraries/radwordsprocessing/concepts/lists.md
index d5aa5716..61137c32 100644
--- a/libraries/radwordsprocessing/concepts/lists.md
+++ b/libraries/radwordsprocessing/concepts/lists.md
@@ -98,7 +98,7 @@ In order to add one of the list templates to the document, you need to pass a __
__Example 1__ adds a default bulleted list to a predefined RadFlowDocument.
-#### __[C#] Example 1: Add list template__
+#### __Example 1: Add list template__
@@ -112,7 +112,7 @@ The next tutorial will get you through the creation of a list.
1. Define a new __RadFlowDocument__ and add a __Section__ in it.
- #### __[C#] Step 1: Create RadFlowDocument__
+ #### __Step 1: Create RadFlowDocument__
@@ -121,7 +121,7 @@ The next tutorial will get you through the creation of a list.
1. Create a __List__ object and associate it with the document by adding it to the __Lists__ collection.
- #### __[C#] Step 2: Create list__
+ #### __Step 2: Create list__
@@ -131,7 +131,7 @@ The next tutorial will get you through the creation of a list.
1. Iterate over the collection of __Levels__ the list has.
- #### __[C#] Step 3: Iterate levels__
+ #### __Step 3: Iterate levels__
@@ -140,7 +140,7 @@ The next tutorial will get you through the creation of a list.
1. Specify some properties for each level.
- #### __[C#] Step 4: Customize list levels__
+ #### __Step 4: Customize list levels__
@@ -155,7 +155,7 @@ The tutorial in the [previous section](#create-a-list) demonstrates how you can
__Example 6__ demonstrates how you can apply the list created in Steps 1-4 above.
-#### __[C#] Example 6: Apply list__
+#### __Example 6: Apply list__
diff --git a/libraries/radwordsprocessing/concepts/style-properties.md b/libraries/radwordsprocessing/concepts/style-properties.md
index d679938f..b6c66afb 100644
--- a/libraries/radwordsprocessing/concepts/style-properties.md
+++ b/libraries/radwordsprocessing/concepts/style-properties.md
@@ -73,7 +73,7 @@ Document elements expose sets of style properties through the __Properties__ pro
__Example 1__ is an example for equivalent getting of a value with CLR property and style property.
-#### __[C#] Example 1: Get a value__
+#### __Example 1: Get a value__
@@ -81,7 +81,7 @@ __Example 1__ is an example for equivalent getting of a value with CLR property
__Example 2__ is an example for an equivalent setting of a value with CLR property and style property.
-#### __[C#] Example 2: Set a value__
+#### __Example 2: Set a value__
@@ -95,7 +95,7 @@ The style properties in a style are accessible through the following property se
__Example 3__ illustrates how to get the local value of a style property in a style.
-#### __[C#] Example 3: Get the local value__
+#### __Example 3: Get the local value__
@@ -104,7 +104,7 @@ __Example 3__ illustrates how to get the local value of a style property in a st
__Example 4__ shows how to get the actual value of style property in style.
-#### __[C#] Example 4: Get the actual value__
+#### __Example 4: Get the actual value__
@@ -118,7 +118,7 @@ The default values of all style properties are available in their [StyleProperty
The code in __Example 5__ illustrates how to get the default value for a style property.
-#### __[C#] Example 5: Get the default value__
+#### __Example 5: Get the default value__
diff --git a/libraries/radwordsprocessing/concepts/styles.md b/libraries/radwordsprocessing/concepts/styles.md
index d5ef1526..8321ea81 100644
--- a/libraries/radwordsprocessing/concepts/styles.md
+++ b/libraries/radwordsprocessing/concepts/styles.md
@@ -71,7 +71,7 @@ A style can contain one or more of five different sets of style properties, depe
A style should be added to __RadFlowDocument__'s style repository in order to be further applied to elements and participate in style properties evaluation process. For example, the code from __Example 1__ creates a table style and adds it to the style repository.
-#### __[C#] Example 1: Create a table style and add it to the style repository__
+#### __Example 1: Create a table style and add it to the style repository__
@@ -80,7 +80,7 @@ A style should be added to __RadFlowDocument__'s style repository in order to be
To apply a style to a spesific element you neet to set its __StyleId__ proerty.
-#### __[C#] Example 2: Apply a custom style to an element__
+#### __Example 2: Apply a custom style to an element__
@@ -99,7 +99,7 @@ Default style is a style which, according to its style type, is applied to objec
You can change the default styling properties for a document through the DefaultStyle property of RadFlowDocument. **Example 3** shows how you can do that for the font-family, and similar code can be used for the other styling properties for the runs and paragraphs inside a document.
-#### __[C#] Example 3: Set a default font-family__
+#### __Example 3: Set a default font-family__
@@ -112,7 +112,7 @@ Built-in styles are commonly used styles, which are predefined for convenience.
[BuiltInStyleNames](https://docs.telerik.com/devtools/document-processing/api/Telerik.Windows.Documents.Flow.Model.Styles.BuiltInStyleNames.html) static class contains properties and methods for getting the IDs of all built-in styles. __Example 4__ shows how to get the ID of the "Heading 1" built-in style.
-#### __[C#] Example 4: Get the ID of a built-in style__
+#### __Example 4: Get the ID of a built-in style__
diff --git a/libraries/radwordsprocessing/concepts/tabstop.md b/libraries/radwordsprocessing/concepts/tabstop.md
index 678b1d82..61ace331 100644
--- a/libraries/radwordsprocessing/concepts/tabstop.md
+++ b/libraries/radwordsprocessing/concepts/tabstop.md
@@ -57,7 +57,7 @@ The __TabStopCollection__ class exposes the following members:
Excluding the default constructor, the __TabStopCollection__ class exposes an overload allowing you to directly pass a collection of __TabStop__ objects:
-#### __[C#] Example 1: Create a TabStopCollection__
+#### __Example 1: Create a TabStopCollection__
@@ -66,7 +66,7 @@ Excluding the default constructor, the __TabStopCollection__ class exposes an ov
In __Example 2__ is illustrated how to insert items in the __TabStopCollection__ created in [Example 1](#example1). Keep in mind that due to the fact that this collection is immutable, the __Insert()__ method will return a **new instance** of the class.
-#### __[C#] Example 2: Insert item in a TabStopCollection__
+#### __Example 2: Insert item in a TabStopCollection__
@@ -74,7 +74,7 @@ In __Example 2__ is illustrated how to insert items in the __TabStopCollection__
The snippet below shows how to remove an item from the __TabStopCollection__ created in [Example 1](#example1). Keep in mind that due to the fact that this collection is immutable, the Remove() method will return new instance of the class.
-#### __[C#] Example 3: Remove item from a TabStopCollection__
+#### __Example 3: Remove item from a TabStopCollection__
@@ -88,7 +88,7 @@ In __RadWordsProcessing__ the tab stops are stored as a collection in the [Parag
The code from __Example 4__ demonstrates how to create a tab stop.
-#### __[C#] Example 4: Create a TabStop__
+#### __Example 4: Create a TabStop__
@@ -96,7 +96,7 @@ The code from __Example 4__ demonstrates how to create a tab stop.
__Example 5__ shows how to add the tab stop created in [Example 1](#example1) to an existing __Paragraph__ through the _TabStops_ property of type __TabStopCollection__.
-#### __[C#] Example 5: Insert a TabStop__
+#### __Example 5: Insert a TabStop__
@@ -104,7 +104,7 @@ __Example 5__ shows how to add the tab stop created in [Example 1](#example1) to
The following code-snippet illustrates how to remove the created in [Example 4](#example4) TabStop:
-#### __[C#] Example 6: Remove a TabStop__
+#### __Example 6: Remove a TabStop__
@@ -112,7 +112,7 @@ The following code-snippet illustrates how to remove the created in [Example 4](
Once you have applied the desired tab stops to a paragraph, you need to insert tabs (\t) so that the content can be aligned to the specified tab stops. The code in **Example 7** inserts tab stops at three positions with different properties and aligns three words on the tab stop positions using tabs.
-#### __[C#] Example 7: Add tabs to align to the tab stops__
+#### __Example 7: Add tabs to align to the tab stops__
diff --git a/libraries/radwordsprocessing/concepts/watermark.md b/libraries/radwordsprocessing/concepts/watermark.md
index c93fd1b8..a1cd0c17 100644
--- a/libraries/radwordsprocessing/concepts/watermark.md
+++ b/libraries/radwordsprocessing/concepts/watermark.md
@@ -41,7 +41,7 @@ Creating a watermark through the constructor of the class requires to pass as a
__Example 1__ demonstrates the creation of a text watermark.
-#### __[C#] Example 1: Create text watermark__
+#### __Example 1: Create text watermark__
@@ -49,7 +49,7 @@ __Example 1__ demonstrates the creation of a text watermark.
Creating image watermark is very similar to creating a text one. __Example 2__ shows how to create an image watermark.
-#### __[C#] Example 2: Create image watermark__
+#### __Example 2: Create image watermark__
@@ -62,7 +62,7 @@ Watermarks are preserved in the header of the section to which the watermark is
__Example 3__ demonstrates how you can add the watermark created in __Example 1__ to a __RadFlowDocument__ by creating a __Header__ for its first __Section__.
-#### __[C#] Example 3: Add watermark to header__
+#### __Example 3: Add watermark to header__
@@ -74,7 +74,7 @@ There is another way to set a watermark in a document - through the [RadFlowDocu
__Example 4__ demonstrates how to set the watermark created in __Example 2__ through __RadFlowDocumentEditor__ to the first page of a section. The method will create the __Header__ element for you, and you only need to specify its type.
-#### __[C#] Example 4: Set watermark with RadFlowDocumentEditor__
+#### __Example 4: Set watermark with RadFlowDocumentEditor__
diff --git a/libraries/radwordsprocessing/editing/clone-and-merge.md b/libraries/radwordsprocessing/editing/clone-and-merge.md
index e7eed7e3..75fd71e8 100644
--- a/libraries/radwordsprocessing/editing/clone-and-merge.md
+++ b/libraries/radwordsprocessing/editing/clone-and-merge.md
@@ -24,7 +24,7 @@ position: 0
__RadWordsProcessing__ allows you to merge two __RadFlowDocument__ instance using the __Merge()__ method overloads. The document to which you wish to add content is called *target* and the document from which you wish to take the content is called *source*.
-#### __[C#] Example 1: Merge two instances of RadFlowDocument__
+#### __Example 1: Merge two instances of RadFlowDocument__
@@ -50,7 +50,7 @@ The __MergeOptions__ parameter can be passed as an argument to the __Merge()__ m
__Example 2__ shows how to merge documents by specifying the __MergeOptions__ parameter.
-#### __[C#] Example 2: Merge documents with MergeOptions__
+#### __Example 2: Merge documents with MergeOptions__
@@ -62,7 +62,7 @@ __Example 2__ shows how to merge documents by specifying the __MergeOptions__ pa
__RadFlowDocument__ provides a __Clone()__ method, which creates a deep copy of the whole document structure, including all document elements and styles:
-#### __[C#] Example 3: Clone a RadFlowDocument__
+#### __Example 3: Clone a RadFlowDocument__
@@ -90,7 +90,7 @@ The __Clone()__ method has two overloads:
* __Clone(RadFlowDocument)__: Creates a deep copy of the element and associates it with the provided __RadFlowDocument__. This allows cloned elements to be added to the element tree of the provided RadFlowDocument at a later time and is convenient if you want to "move" an element from one document to another.
-#### __[C#] Example 4: Clone a section__
+#### __Example 4: Clone a section__
diff --git a/libraries/radwordsprocessing/editing/find-and-replace/find-and-replace-text.md b/libraries/radwordsprocessing/editing/find-and-replace/find-and-replace-text.md
index 55ed9b9b..a28437c1 100644
--- a/libraries/radwordsprocessing/editing/find-and-replace/find-and-replace-text.md
+++ b/libraries/radwordsprocessing/editing/find-and-replace/find-and-replace-text.md
@@ -35,7 +35,7 @@ Both methods return a collection of **FindResult** instances, which in turn expo
**Example 1** shows how to create a **RadFlowDocumentEditor** instance and use it to find all matches of the word "code".
-#### **[C#] Example 1: Find text**
+#### **Example 1: Find text**
@@ -52,7 +52,7 @@ To find all instances of a string and replace it with another one, you can use t
**Example 2** shows how to create a **RadFlowDocumentEditor** instance and use it to replace all matches of the word "code" with the phrase "source code".
-#### **[C#] Example 2: Replace text**
+#### **Example 2: Replace text**
@@ -72,7 +72,7 @@ __RadFlowDocumentEditor__ gives you the ability to format all occurrences of a s
**Example 3** shows how to apply a red highlight color to all occurrences of the word "alert".
-#### **[C#] Example 3: Replace character properties**
+#### **Example 3: Replace character properties**
diff --git a/libraries/radwordsprocessing/editing/find-and-replace/replace-document-elements.md b/libraries/radwordsprocessing/editing/find-and-replace/replace-document-elements.md
index 0c297c6a..2db0f2d3 100644
--- a/libraries/radwordsprocessing/editing/find-and-replace/replace-document-elements.md
+++ b/libraries/radwordsprocessing/editing/find-and-replace/replace-document-elements.md
@@ -26,11 +26,11 @@ You can search and replace text using [RadFlowDocumentEditor]({%slug radwordspr
* __ReplaceText(Regex regex, InlineBase inline):__ Replaces all matches of the passed **Regex** with a single inline.
* __ReplaceText(Regex regex, IEnumerable\ inlines):__ Replaces all matches of the passed **Regex** with multiple inlines.
-#### __[C#] Example 1: Replace text with a single inline__
+#### __Example 1: Replace text with a single inline__
-#### __[C#] Example 2: Replace text with multiple inlines__
+#### __Example 2: Replace text with multiple inlines__
@@ -41,11 +41,11 @@ You can search and replace text using [RadFlowDocumentEditor]({%slug radwordspr
* __ReplaceText(Regex regex, BlockBase block):__ Replaces all matches of the passed **Regex** with a single block.
* __ReplaceText(Regex regex, IEnumerable\ blocks):__ Replaces all matches of the passed **Regex** with multiple blocks.
-#### __[C#] Example 3: Replace text with a single block__
+#### __Example 3: Replace text with a single block__
-#### **[C#] Example 4: Replace text with multiple blocks**
+#### **Example 4: Replace text with multiple blocks**
diff --git a/libraries/radwordsprocessing/editing/gen-ai-powered-document-insights/complete-context-question-processor.md b/libraries/radwordsprocessing/editing/gen-ai-powered-document-insights/complete-context-question-processor.md
index 73ed872f..6374bfa8 100644
--- a/libraries/radwordsprocessing/editing/gen-ai-powered-document-insights/complete-context-question-processor.md
+++ b/libraries/radwordsprocessing/editing/gen-ai-powered-document-insights/complete-context-question-processor.md
@@ -56,7 +56,7 @@ The **CompleteContextProcessorSettings** class defines configuration options for
The following example demonstrates how to use the **CompleteContextQuestionProcessor** to ask questions about a Word document, including working with specific document pages. For setting up the AI client as shown in this example, see the [AI Provider Setup]({%slug radwordsprocessing-features-gen-ai-powered-document-insights-prerequisites%}#ai-provider-setup) section:
-#### __[C#] Example 1: Using CompleteContextQuestionProcessor__
+#### __Example 1: Using CompleteContextQuestionProcessor__
diff --git a/libraries/radwordsprocessing/editing/gen-ai-powered-document-insights/getting-started.md b/libraries/radwordsprocessing/editing/gen-ai-powered-document-insights/getting-started.md
index 86bb9076..8bb5b7e3 100644
--- a/libraries/radwordsprocessing/editing/gen-ai-powered-document-insights/getting-started.md
+++ b/libraries/radwordsprocessing/editing/gen-ai-powered-document-insights/getting-started.md
@@ -16,7 +16,7 @@ The following example demonstrates how to use the GenAI-powered Document Insight
>important For .NET {{site.mindotnetversion}}+ (Target OS Windows) with [Packages for .NET {{site.mindotnetversion}} and .NET {{site.maxdotnetversion}} for Windows]({%slug available-nuget-packages%}#packages-for-net-framework-and-net-{{site.mindotnetversion}}-and-net-{{site.maxdotnetversion}}-for-windows), an [IEmbedder]({%slug radwordsprocessing-features-gen-ai-powered-document-insights-partial-context-question-processor%}#implementing-custom-iembedder) implementation is required for the [PartialContextQuestionProcessor]({%slug radwordsprocessing-features-gen-ai-powered-document-insights-partial-context-question-processor%}).
-#### __[C#] Example 1: Using GenAI-powered Document Insights__
+#### __Example 1: Using GenAI-powered Document Insights__
diff --git a/libraries/radwordsprocessing/editing/gen-ai-powered-document-insights/prerequisites.md b/libraries/radwordsprocessing/editing/gen-ai-powered-document-insights/prerequisites.md
index 0d3fad1f..9e641a38 100644
--- a/libraries/radwordsprocessing/editing/gen-ai-powered-document-insights/prerequisites.md
+++ b/libraries/radwordsprocessing/editing/gen-ai-powered-document-insights/prerequisites.md
@@ -69,7 +69,7 @@ Before using the GenAI-powered Document Insights functionality, you need to set
>caution The following code snippet is valid for Microsoft.Extensions.AI.OpenAI 9.3. The specific **IChatClient** initialization may be different according to the specific version.
-#### __[C#] Example 1: Setting up Azure OpenAI__
+#### __Example 1: Setting up Azure OpenAI__
@@ -78,7 +78,7 @@ Before using the GenAI-powered Document Insights functionality, you need to set
1. Create an OpenAI account.
2. Get your API key from the OpenAI dashboard.
-#### __[C#] Example 2: Setting up OpenAI__
+#### __Example 2: Setting up OpenAI__
@@ -90,7 +90,7 @@ Ollama allows you to run AI models locally on your machine. This is useful for d
2. Pull the model you want to use.
3. Start the Ollama server.
-#### __[C#] Example 3: Setting up Ollama__
+#### __Example 3: Setting up Ollama__
diff --git a/libraries/radwordsprocessing/editing/gen-ai-powered-document-insights/summarization-processor.md b/libraries/radwordsprocessing/editing/gen-ai-powered-document-insights/summarization-processor.md
index ec70c351..ac179306 100644
--- a/libraries/radwordsprocessing/editing/gen-ai-powered-document-insights/summarization-processor.md
+++ b/libraries/radwordsprocessing/editing/gen-ai-powered-document-insights/summarization-processor.md
@@ -46,7 +46,7 @@ The **SummarizationProcessorSettings** class defines configuration options for t
* **ModelMaxInputTokenLimit**: The maximum input token limit for the model.
* **PromptAddition**: An addition for the prompt used for summarization. It can be used for clarification purposes.
-#### __[C#] Example 1: Configuring SummarizationProcessorSettings__
+#### __Example 1: Configuring SummarizationProcessorSettings__
@@ -64,7 +64,7 @@ For large documents that exceed the token limit of the model, **SummarizationPro
This approach allows the processor to efficiently handle documents of any size, but it increases the number of API calls required. The **SummaryResourcesCalculated** event provides information about the expected resource usage, allowing you to decide whether to proceed with the operation.
-#### __[C#] Example 2: Using SummarizationProcessor__
+#### __Example 2: Using SummarizationProcessor__
diff --git a/libraries/radwordsprocessing/editing/import-document-element.md b/libraries/radwordsprocessing/editing/import-document-element.md
index 9be855e4..0503990c 100644
--- a/libraries/radwordsprocessing/editing/import-document-element.md
+++ b/libraries/radwordsprocessing/editing/import-document-element.md
@@ -26,7 +26,7 @@ The constructor of the **DocumentElementImporter** class accepts three parameter
* **conflictingStylesResolutionMode**: Represents the resolution mode, which will be used if a style conflict appears during the style repositories merging. Could be set to one of the values of the [ConflictingStylesResolutionMode enumeration]( https://docs.telerik.com/devtools/document-processing/api/Telerik.Windows.Documents.Flow.Model.ConflictingStylesResolutionMode.html).
-#### __[C#] Example 1: Create DocumentElementImporter__
+#### __Example 1: Create DocumentElementImporter__
@@ -36,7 +36,7 @@ The constructor of the **DocumentElementImporter** class accepts three parameter
The **DocumentElementImporter** class exposes the Import<T>() method, which is used to prepare a document element from the source document for import into the target document. **Example 2** demonstrates how you could work with this method, using the **DocumentElementImporter** instance, created in [Example 1](#example1).
-#### __[C#] Example 2: Import a document element__
+#### __Example 2: Import a document element__
diff --git a/libraries/radwordsprocessing/editing/insert-documents.md b/libraries/radwordsprocessing/editing/insert-documents.md
index 19ee95f7..68b5670b 100644
--- a/libraries/radwordsprocessing/editing/insert-documents.md
+++ b/libraries/radwordsprocessing/editing/insert-documents.md
@@ -29,7 +29,7 @@ You could merge documents at a specific position using the InsertDocument() meth
**Example 1** demonstrates how to use the InsertDocument() method.
-#### __[C#] Example 1: Insert source document into target document__
+#### __Example 1: Insert source document into target document__
diff --git a/libraries/radwordsprocessing/editing/mail-merge.md b/libraries/radwordsprocessing/editing/mail-merge.md
index 70316022..34a6b2e4 100644
--- a/libraries/radwordsprocessing/editing/mail-merge.md
+++ b/libraries/radwordsprocessing/editing/mail-merge.md
@@ -20,7 +20,7 @@ Merge fields are a type of [Fields]({%slug radwordsprocessing-concepts-fields%})
The code snippet in __Example 1__ shows how to initialize a RadFlodDocumentEditor instance and insert a merge field.
-#### __[C#] Example 1: Insert a merge field__
+#### __Example 1: Insert a merge field__
@@ -29,7 +29,7 @@ The code snippet in __Example 1__ shows how to initialize a RadFlodDocumentEdito
Additionally, a field can be added to a Paragraph manually by creating a __FieldInfo__ instance and placing its start, code, separator, result and end in the block. __Example 2__ shows the manual approach for adding a merge field.
-#### __[C#] Example 2: Add a merge field manually__
+#### __Example 2: Add a merge field manually__
@@ -46,7 +46,7 @@ During the operation, each MergeField is replaced with the corresponding informa
Example 3 shows a simple example data source.
-#### __[C#] Example 3: Sample data source__
+#### __Example 3: Sample data source__
@@ -55,7 +55,7 @@ Example 3 shows a simple example data source.
__Example 4__ performs the mail merge operation over a previously defined template document using the data source from __Example 3__.
-#### __[C#] Example 4: Perform mail merge__
+#### __Example 4: Perform mail merge__
@@ -84,13 +84,13 @@ The following example demonstrates how you can use the nested mail merge:
First you need to define a data source that contains an `IEnumerable` of objects.
-#### __[C#] Example 5: Nested mail merge data source__
+#### __Example 5: Nested mail merge data source__
Now you need to add the fields using the specific supported names. In this example, we are adding the fields to the table and we will use the TableStart/TableEnd tags, but this is not mandatory and you can use a tag of your choosing.
-#### __[C#] Example 6: Perform nested mail merge__
+#### __Example 6: Perform nested mail merge__
diff --git a/libraries/radwordsprocessing/editing/radflowdocumenteditor.md b/libraries/radwordsprocessing/editing/radflowdocumenteditor.md
index 8a31df2d..851934eb 100644
--- a/libraries/radwordsprocessing/editing/radflowdocumenteditor.md
+++ b/libraries/radwordsprocessing/editing/radflowdocumenteditor.md
@@ -26,7 +26,7 @@ Although __RadFlowDocument__ can be created and modified by using the style prop
__RadFlowDocumentEditor__ is always associated with a single document, which it takes as a constructor parameter when it is created.
-#### __[C#] Example 1: Create a RadFlowDocumentEditor__
+#### __Example 1: Create a RadFlowDocumentEditor__
@@ -46,14 +46,14 @@ The editor maintains an internal position inside the document. This position poi
The code from __Example 2__ demonstrates how to position the editor after the second inline in the first paragraph of the document.
-#### __[C#] Example 2: Changing the position of RadFlowDocumentEditor__
+#### __Example 2: Changing the position of RadFlowDocumentEditor__
Note that it is possible to create a __RadFlowDocumentEditor__ for an empty document (one with no sections). In this case, a section and a paragraph are automatically created when you call an insert method. __Example 3__ creates a document with one section, containing one paragraph with the text "Hello word!".
-#### __[C#] Example 3: Insert text in a document__
+#### __Example 3: Insert text in a document__
@@ -74,7 +74,7 @@ Both methods return the newly inserted __Run__ element. If, however, there are n
The code in __Example 4__ inserts a run containing a new line.
-#### __[C#] Example 4: Insert a run with a new line__
+#### __Example 4: Insert a run with a new line__
@@ -91,7 +91,7 @@ The result looks like __Figure 1__ shows.
You can start a new [Paragraph]({%slug radwordsprocessing-model-paragraph%}) with the __InsertParagraph()__ method. The current __ParagraphFormatting__ is applied to the new paragraph and the paragraph is returned.
-#### __[C#] Example 5: Insert a paragraph__
+#### __Example 5: Insert a paragraph__
@@ -106,7 +106,7 @@ If you call __InsertParagraph()__ method while the editor is positioned in the m
Inserting [Section]({%slug radwordsprocessing-model-section%}) elements can be achieved with the __InsertSection()__ method. A paragraph with the new section’s properties will be added and the new __Section__ element will be returned.
-#### __[C#] Example 6: Insert a section__
+#### __Example 6: Insert a section__
>If you call the __InsertSection()__ method while the editor is positioned in a TableCell, the Table will be split at the current row. This means that if the table contains 3 rows, and the editor is positioned in a cell which is on the second row, the table will be split into two tables – one with one row, which will be added to the previous section and one with 2 rows (containing the TableCell where the editor position was). The later will be added to the newly inserted Section.
@@ -120,7 +120,7 @@ public Hyperlink InsertHyperlink(string text, string uri, bool isAnchor, string
It automatically applies "Hyperlink" built-in style to the inserted hyperlink if there is no explicitly set style in the __CharacterFormatting__ options of the editor.
-#### __[C#] Example 7: Insert a hyperlink__
+#### __Example 7: Insert a hyperlink__
@@ -136,7 +136,7 @@ public Field InsertField(string code, string result)
__Example 8__ shows how to add page numbering in the header of a document:
-#### __[C#] Example 8: Add page numbering in a header__
+#### __Example 8: Add page numbering in a header__
@@ -166,7 +166,7 @@ __RadFlowDocumentEditor__ provides several methods for inserting [ImageInline]({
__Example 9__ shows how an image can be inserted using a stream:
-#### __[C#] Example 9: Insert an image from a Stream__
+#### __Example 9: Insert an image from a Stream__
@@ -190,7 +190,7 @@ The following methods can be used to insert [Table]({%slug radwordsprocessing-mo
Here is how to insert a table with the "TableGrid" built-in style:
-#### __[C#] Example 10: Insert a table with a style__
+#### __Example 10: Insert a table with a style__
@@ -218,7 +218,7 @@ When you use the insert methods of the __RadFlowDocumentEditor__ the editor crea
Formatting options are most useful when inserting multiple elements that should have consistent styling. For example, the code from __Example 11__ inserts multiple paragraphs with no spacing between them and with text (Runs) in "Consolas" font:
-#### __[C#] Example 11: Insert content with specified styles__
+#### __Example 11: Insert content with specified styles__
@@ -228,7 +228,7 @@ Formatting options are most useful when inserting multiple elements that should
## Deleting Content
-#### __[C#] Example 12: Delete content between existing elements__
+#### __Example 12: Delete content between existing elements__
diff --git a/libraries/radwordsprocessing/formats-and-conversion/html/htmlformatprovider.md b/libraries/radwordsprocessing/formats-and-conversion/html/htmlformatprovider.md
index 76286f25..7a7ab0cf 100644
--- a/libraries/radwordsprocessing/formats-and-conversion/html/htmlformatprovider.md
+++ b/libraries/radwordsprocessing/formats-and-conversion/html/htmlformatprovider.md
@@ -26,7 +26,7 @@ In order to import an HTML document you can use the overloads of the __HtmlForma
__Example 1__ shows how to use HtmlFormatProvider to import an HTML document from a file.
-#### __[C#] Example 1: Import HTML file__
+#### __Example 1: Import HTML file__
@@ -35,7 +35,7 @@ __Example 1__ shows how to use HtmlFormatProvider to import an HTML document fro
__Example 2__ shows how you can import an HTML string.
-#### __[C#] Example 2: Import HTML string__
+#### __Example 2: Import HTML string__
@@ -52,7 +52,7 @@ In order to export a document to HTML you can use the overloads of the __HtmlFor
__Example 3__ shows how to use the HtmlFormatProvider to export an instance of RadFlowDocument to a file:
-#### __[C#] Example 3: Export HTML to file__
+#### __Example 3: Export HTML to file__
@@ -61,7 +61,7 @@ __Example 3__ shows how to use the HtmlFormatProvider to export an instance of R
You can also export the document to a string variable like shown in __Example 4__.
-#### __[C#] Example 4: Export HTML to string__
+#### __Example 4: Export HTML to string__
diff --git a/libraries/radwordsprocessing/formats-and-conversion/html/settings.md b/libraries/radwordsprocessing/formats-and-conversion/html/settings.md
index c055e49c..965da1c9 100644
--- a/libraries/radwordsprocessing/formats-and-conversion/html/settings.md
+++ b/libraries/radwordsprocessing/formats-and-conversion/html/settings.md
@@ -34,7 +34,7 @@ The default value, for example, specifies that "b" elements should be imported w
You can set the value of the property to any valid CSS document. **Example 1** shows how you can add styling in addition to the default ones.
-#### [C#] Example 1: Add CSS to the DefaultStyleSheet
+#### Example 1: Add CSS to the DefaultStyleSheet
@@ -55,7 +55,7 @@ The __LoadImageFromUri__ event uses the __LoadImageFromUriEventArgs__ object whi
__Example 2__ Shows how you can use the __LoadImageFromUri__ event to download an image.
-#### __[C#] Example 2: Use the LoadImageFromUri__
+#### __Example 2: Use the LoadImageFromUri__
The __LoadStyleSheetFromUri__ event uses the __LoadStyleSheetFromUriEventArgs__ object which exposes the following properties:
@@ -65,7 +65,7 @@ The __LoadStyleSheetFromUri__ event uses the __LoadStyleSheetFromUriEventArgs__
__Example 3__ Shows how you can use the __LoadStyleSheetFromUri__ event.
-#### __[C#] Example 3: Use the LoadStyleSheetFromUri event__
+#### __Example 3: Use the LoadStyleSheetFromUri event__
## UriImageSource Class
@@ -85,7 +85,7 @@ When importing HTML, which contains images with URI source, the **HtmlFormatProv
The **UriImageSource** objects are always exported as images with URI as their source independently of the export settings. If you need to export this object as an embedded or external image, you could convert the **UriImageSource** to **ImageSource** object.
-#### __[C#] Example 4: Convert UriImageSource to ImageSource__
+#### __Example 4: Convert UriImageSource to ImageSource__
@@ -203,7 +203,7 @@ The event is only raised when the __StylesExportMode__ property is set to __Exte
__Example 5__ demonstrates how you can create export settings.
-#### __[C#] Example 5: Create HtmlExportSettings__
+#### __Example 5: Create HtmlExportSettings__
diff --git a/libraries/radwordsprocessing/formats-and-conversion/pdf/pdfformatprovider.md b/libraries/radwordsprocessing/formats-and-conversion/pdf/pdfformatprovider.md
index 73e8d3ab..6a53fc5e 100644
--- a/libraries/radwordsprocessing/formats-and-conversion/pdf/pdfformatprovider.md
+++ b/libraries/radwordsprocessing/formats-and-conversion/pdf/pdfformatprovider.md
@@ -32,7 +32,7 @@ The code snippet in __Example 1__ shows how to create a __PdfFormatProvider__ in
>The PdfFormatProvider class of RadWordsProcessing is located in the **Telerik.Windows.Documents.Flow.FormatProviders.Pdf namespace**.
-#### __[C#] Example 1: Export to PDF file__
+#### __Example 1: Export to PDF file__
@@ -42,7 +42,7 @@ The result from the method is a document that can be opened in any application t
__Example 2__ demonstrates how to export the contents of a __RadFlowDocument__ to a __RadFIxedDocument__.
-#### __[C#] Example 2: Export to RadFixedDocument__
+#### __Example 2: Export to RadFixedDocument__
diff --git a/libraries/radwordsprocessing/formats-and-conversion/pdf/settings.md b/libraries/radwordsprocessing/formats-and-conversion/pdf/settings.md
index b2eb812e..3f732503 100644
--- a/libraries/radwordsprocessing/formats-and-conversion/pdf/settings.md
+++ b/libraries/radwordsprocessing/formats-and-conversion/pdf/settings.md
@@ -19,7 +19,7 @@ __Example 1__ demonstrates how to export a __RadFlowDocument__ instance to PDF a
>tipIn order to specify export settings to the PdfFormatProvider you need to add both the Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export and Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export namespaces. In __Example 1__ the *Fixed* alias corresponds to the *Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export* namespace.
-#### __[C#] Example 1: Export PDF/A compliant document__
+#### __Example 1: Export PDF/A compliant document__
@@ -34,7 +34,7 @@ ExtensibilityManager provides an option to control how lists with different __Nu
__Example 2__ shows how to register a custom *ChineseCountingConverter* class instance that converts a number with NumberingStyle.ChineseCounting.
-#### __[C#] Example 2: Register numbering style converter__
+#### __Example 2: Register numbering style converter__
diff --git a/libraries/radwordsprocessing/formats-and-conversion/plain-text/txt-txtformatprovider.md b/libraries/radwordsprocessing/formats-and-conversion/plain-text/txt-txtformatprovider.md
index 75ba03ef..0f110228 100644
--- a/libraries/radwordsprocessing/formats-and-conversion/plain-text/txt-txtformatprovider.md
+++ b/libraries/radwordsprocessing/formats-and-conversion/plain-text/txt-txtformatprovider.md
@@ -29,7 +29,7 @@ In order to import a plain text document, you need to use the __Import()__ metho
__Example 1__ shows how to use __TxtFormatProvider__ to import a document from a file.
-#### __[C#] Example 1: Import document from a file__
+#### __Example 1: Import document from a file__
@@ -38,7 +38,7 @@ __Example 1__ shows how to use __TxtFormatProvider__ to import a document from a
And here is how you can import a document from string:
-#### __[C#] Example 2: Import document from a string__
+#### __Example 2: Import document from a string__
@@ -55,7 +55,7 @@ In order to export a document to plain text, you need to use the __Export()__ me
__Example 3__ shows how to use __TxtFormatProvider__ to export __RadFlowDocument__ to a file.
-#### __[C#] Example 3: Export a document to a file__
+#### __Example 3: Export a document to a file__
@@ -64,7 +64,7 @@ __Example 3__ shows how to use __TxtFormatProvider__ to export __RadFlowDocument
You can also export the document to a string and preserve it in a database.
-#### __[C#] Example 4: Export a document to a string__
+#### __Example 4: Export a document to a string__
diff --git a/libraries/radwordsprocessing/formats-and-conversion/rtf/rtfformatprovider.md b/libraries/radwordsprocessing/formats-and-conversion/rtf/rtfformatprovider.md
index 6b03ac7c..115b8789 100644
--- a/libraries/radwordsprocessing/formats-and-conversion/rtf/rtfformatprovider.md
+++ b/libraries/radwordsprocessing/formats-and-conversion/rtf/rtfformatprovider.md
@@ -29,7 +29,7 @@ In order to import an RTF document, you need to use the __Import()__ method of _
The code from __Example 1__ shows how to use __RtfFormatProvider__ to import an RTF document from a file.
-#### __[C#] Example 1: Import document from a file__
+#### __Example 1: Import document from a file__
@@ -38,7 +38,7 @@ The code from __Example 1__ shows how to use __RtfFormatProvider__ to import an
And here is how you can import a document from string containing the RTF document:
-#### __[C#] Example 2: Import document from a string__
+#### __Example 2: Import document from a string__
@@ -55,7 +55,7 @@ In order to export a document to RTF, you need to use the __Export()__ method of
__Example 3__ shows how to use __RtfFormatProvider__ to export __RadFlowDocument__ to a file.
-#### __[C#] Example 3: Export a document to a file__
+#### __Example 3: Export a document to a file__
@@ -64,7 +64,7 @@ __Example 3__ shows how to use __RtfFormatProvider__ to export __RadFlowDocument
You can also export the document to a string and preserve it in a database.
-#### __[C#] Example 4: Export a document to a string__
+#### __Example 4: Export a document to a string__
diff --git a/libraries/radwordsprocessing/formats-and-conversion/rtf/settings.md b/libraries/radwordsprocessing/formats-and-conversion/rtf/settings.md
index fcddb25f..88c4ea9a 100644
--- a/libraries/radwordsprocessing/formats-and-conversion/rtf/settings.md
+++ b/libraries/radwordsprocessing/formats-and-conversion/rtf/settings.md
@@ -29,7 +29,7 @@ The default value for this setting is __false__.
The code from __Example 1__ demonstrates how you can create and specify particular export settings to RtfFormatProvider.
-#### __[C#] Example 1: Create a RtfExportSettings__
+#### __Example 1: Create a RtfExportSettings__
diff --git a/libraries/radwordsprocessing/formats-and-conversion/word-file-formats/doc/docformatprovider.md b/libraries/radwordsprocessing/formats-and-conversion/word-file-formats/doc/docformatprovider.md
index ce5a2868..23b23774 100644
--- a/libraries/radwordsprocessing/formats-and-conversion/word-file-formats/doc/docformatprovider.md
+++ b/libraries/radwordsprocessing/formats-and-conversion/word-file-formats/doc/docformatprovider.md
@@ -33,14 +33,14 @@ To use **DocFormatProvider**, you should add references to the packages listed b
To import a DOC or DOT file, you should use the **Import()** method of **DocFormatProvider**.
-#### **[C#] Example 1: Import document from a file**
+#### **Example 1: Import document from a file**
And here is how you can import a document from a byte array containing the document:
-#### **[C#] Example 2: Import document from a byte array**
+#### **Example 2: Import document from a byte array**
diff --git a/libraries/radwordsprocessing/formats-and-conversion/word-file-formats/docx/docxformatprovider.md b/libraries/radwordsprocessing/formats-and-conversion/word-file-formats/docx/docxformatprovider.md
index 894d5c2d..7c1d3166 100644
--- a/libraries/radwordsprocessing/formats-and-conversion/word-file-formats/docx/docxformatprovider.md
+++ b/libraries/radwordsprocessing/formats-and-conversion/word-file-formats/docx/docxformatprovider.md
@@ -34,7 +34,7 @@ In order to import a DOCX document, you need to use the __Import()__ method of _
The code in __Example 1__ shows how to use __DocxFormatProvider__ to import a DOCX document from a file.
-#### __[C#] Example 1: Import document from a file__
+#### __Example 1: Import document from a file__
@@ -43,7 +43,7 @@ The code in __Example 1__ shows how to use __DocxFormatProvider__ to import a DO
And here is how you can import a document from byte array containing the DOCX document:
-#### __[C#] Example 2: Import document from a byte array__
+#### __Example 2: Import document from a byte array__
@@ -58,14 +58,14 @@ In order to export a document to DOCX, you need to use the __Export()__ method o
__Example 3__ shows how to use __DocxFormatProvider__ to export __RadFlowDocument__ to a file.
-#### __[C#] Example 3: Export a document to a file__
+#### __Example 3: Export a document to a file__
You can also export the document to a byte array and preserve it in a database.
-#### __[C#] Example 4: Export a document to a byte array__
+#### __Example 4: Export a document to a byte array__
The resulting documents can be opened in any application that supports DOCX documents.
diff --git a/libraries/radwordsprocessing/formats-and-conversion/word-file-formats/docx/settings.md b/libraries/radwordsprocessing/formats-and-conversion/word-file-formats/docx/settings.md
index d8869422..677e4189 100644
--- a/libraries/radwordsprocessing/formats-and-conversion/word-file-formats/docx/settings.md
+++ b/libraries/radwordsprocessing/formats-and-conversion/word-file-formats/docx/settings.md
@@ -40,7 +40,7 @@ The __AutoUpdateFields__ setting indicates if fields should be auto-updated when
__Example 1__ shows how you can create and specify particular export settings to DocxFormatProvider.
-#### __[C#] Example 1: Create DocxExportSettings__
+#### __Example 1: Create DocxExportSettings__
diff --git a/libraries/radwordsprocessing/getting-started.md b/libraries/radwordsprocessing/getting-started.md
index 8285ec56..48a6bf1a 100644
--- a/libraries/radwordsprocessing/getting-started.md
+++ b/libraries/radwordsprocessing/getting-started.md
@@ -107,7 +107,7 @@ Here is a list of packages that contain the __RadWordsProcessing__ functionality
Here is how to create a [RadFlowDocument]({%slug radwordsprocessing-model-radflowdocument%}) and insert some text content with the help of [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%}).
-#### __[C#] Example 1: Create RadFlowDocument programmatically__
+#### __Example 1: Create RadFlowDocument programmatically__
@@ -125,7 +125,7 @@ You need to add using directive to the following namespaces:
Exporting the document to Docx file can be achieved with the [DocxFormatProvider]({%slug radwordsprocessing-formats-and-conversion-docx-docxformatprovider%}). Here is how to create a provider instance and save a document with it:
-#### __[C#] Example 2: Export RadFlowDocument to Docx__
+#### __Example 2: Export RadFlowDocument to Docx__
diff --git a/libraries/radwordsprocessing/model/bookmark.md b/libraries/radwordsprocessing/model/bookmark.md
index e6be9b58..d8fb99e3 100644
--- a/libraries/radwordsprocessing/model/bookmark.md
+++ b/libraries/radwordsprocessing/model/bookmark.md
@@ -23,7 +23,7 @@ A __Bookmark__ refers to a location in the document and has a unique name, which
__Example 1__ shows how to create a __Bookmark__ and add its BookmarkRangeStart and BookmarkRangeEnd elements in a [Paragraph]({%slug radwordsprocessing-model-paragraph%}):
-#### __[C#] Example 1: Add a bookmark to a paragraph__
+#### __Example 1: Add a bookmark to a paragraph__
@@ -35,7 +35,7 @@ Note, that the paragraph should belong to the same document that is passed to th
Inserting a __Bookmark__ in the document can also be done with the [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%}) class like shown in __Example 2__:
-#### __[C#] Example 2: Insert a bookmark using RadFlowDocumentEditor__
+#### __Example 2: Insert a bookmark using RadFlowDocumentEditor__
@@ -52,7 +52,7 @@ You can remove an inserted __Bookmark__ by using __RadFlowDocumentEditor__'s __D
__Example 3__ demonstrates how you can delete the bookmark created in __Example 2__.
-#### __[C#] Example 3: Delete bookmark using RadFlowDocumentEditor__
+#### __Example 3: Delete bookmark using RadFlowDocumentEditor__
diff --git a/libraries/radwordsprocessing/model/break.md b/libraries/radwordsprocessing/model/break.md
index 7eafc14b..3ec552e0 100644
--- a/libraries/radwordsprocessing/model/break.md
+++ b/libraries/radwordsprocessing/model/break.md
@@ -31,7 +31,7 @@ All inline-level elements in a __RadFlowDocument__ need to be placed within anot
__Example 1__ shows how to create a __Break__ element and add it to a [Paragraph]({%slug radwordsprocessing-model-paragraph%}).
-#### __[C#] Example 1: Create break__
+#### __Example 1: Create break__
@@ -43,7 +43,7 @@ Note, that the paragraph should belong to the same document that is passed to th
__Example 2__ shows how you can change the type of the break created in __Example 1__.
-#### __[C#] Example 2: Change BreakType__
+#### __Example 2: Change BreakType__
@@ -55,7 +55,7 @@ Inserting a break in the document can also be done with the __InsertBreak()__ me
__Example 3__ shows how you can insert a break through __RadFlowDocumentEditor__.
-#### __[C#] Example 3: Insert break using RadFlowDocumentEditor__
+#### __Example 3: Insert break using RadFlowDocumentEditor__
@@ -81,7 +81,7 @@ The __Break__ element exposes several properties that allow you to customize it.
__Example 4__ shows how you can insert a Break through __RadFlowDocumentEditor__ and modify it later.
-#### __[C#] Example 4: Customize a break__
+#### __Example 4: Customize a break__
diff --git a/libraries/radwordsprocessing/model/comment.md b/libraries/radwordsprocessing/model/comment.md
index e4427980..1b7e49b4 100644
--- a/libraries/radwordsprocessing/model/comment.md
+++ b/libraries/radwordsprocessing/model/comment.md
@@ -23,7 +23,7 @@ A __Comment__ holds annotation markers, which specify for which range of documen
__Example 1__ shows how to create a __Comment__ and add its CommentRangeStart and CommentRangeEnd elements in a paragraph.
-#### __[C#] Example 1: Add a comment to a paragraph__
+#### __Example 1: Add a comment to a paragraph__
@@ -35,7 +35,7 @@ The __AddComment()__ method of the __Comments__ collection of a document creates
__Example 2__ shows how you can insert a previously created __Comment__ object in a document by using [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%}). The InsertComment() method will insert the comment's start and end elements.
-#### __[C#] Example 2: Insert previously created comment__
+#### __Example 2: Insert previously created comment__
@@ -44,7 +44,7 @@ __Example 2__ shows how you can insert a previously created __Comment__ object i
__Example 3__ demonstrates how you can use another overload of __RadFlowDocumentEditor__'s __InsertComment()__ method. In this case, a string representing the text of the Comment and two inline elements are passed. The two inline elements specify the element prior, which the CommentRangeStart should be added and the element after which the CommentRangeEnd should be added.
-#### __[C#] Example 3: Insert comment around run__
+#### __Example 3: Insert comment around run__
@@ -68,7 +68,7 @@ Comment derives BlockContainerBase [BlockContainerBase](https://docs.telerik.com
__Example 4__ shows how you can add a Table to a Comment.
-#### __[C#] Example 4: Add blocks to a comment__
+#### __Example 4: Add blocks to a comment__
diff --git a/libraries/radwordsprocessing/model/content-controls/content-controls.md b/libraries/radwordsprocessing/model/content-controls/content-controls.md
index 6c7b3b55..9b1e620b 100644
--- a/libraries/radwordsprocessing/model/content-controls/content-controls.md
+++ b/libraries/radwordsprocessing/model/content-controls/content-controls.md
@@ -70,7 +70,7 @@ The above content controls share the following properties:
The __CheckBox__ content control exposes two properties __CheckedState__ and __UnCheckedState__. Both properties are of type __SdtCheckBoxState__ which allows you to set the respective character and its font. The __Checked__ property specifies whether the checkbox is checked.
-#### __C# Example 1: Setting CheckBox properties__
+#### __Example 1: Setting CheckBox properties__
@@ -89,7 +89,7 @@ The __ComboBox__ and __DropDownList__ provide the user with options to choose fr
- __DisplayText:__ This property holds the displayed in the ComboBox/DropdownList text.
- __Value:__ This property holds the value, which can be propagated through a data-binding relation.
-#### __C# Example 2: Setting ComboBox properties__
+#### __Example 2: Setting ComboBox properties__
@@ -102,7 +102,7 @@ The __Date__ content control allows you to enter a date by using a calendar. The
* __Calendar:__ Allows you to select the calendar type.
* __DateMappingType:__ Gets or sets the data type (e.g. Date, DateTime, and Text) that is used for storing mapped date time value.
-#### __C# Example 3: Setting Date properties__
+#### __Example 3: Setting Date properties__
@@ -111,7 +111,7 @@ The __Date__ content control allows you to enter a date by using a calendar. The
The __Text__ content control allows you to enter plain text. The text content control has the following property:
* __IsMultiline:__ Gets or sets a value that indicates whether the SDT supports new lines in its content.
-#### __C# Example 4: Setting Text properties__
+#### __Example 4: Setting Text properties__
@@ -120,7 +120,7 @@ The __Text__ content control allows you to enter plain text. The text content co
* __SectionTitle:__ Gets or sets the title of the section.
* __AllowInsertAndDeleteSections:__ Gets or sets a value that indicates whether the underlying sections can be modified.
-#### __C# Example 5: Setting RepeatingSection properties__
+#### __Example 5: Setting RepeatingSection properties__
diff --git a/libraries/radwordsprocessing/model/content-controls/working-with-content-controls.md b/libraries/radwordsprocessing/model/content-controls/working-with-content-controls.md
index 9a7f39c2..5b331108 100644
--- a/libraries/radwordsprocessing/model/content-controls/working-with-content-controls.md
+++ b/libraries/radwordsprocessing/model/content-controls/working-with-content-controls.md
@@ -17,7 +17,7 @@ This article shows some examples of how you can insert content controls, access
The content controls can be retrieved by using the __EnumerateChildrenOfType()__ method of any document element.
-#### __C# Example 1: Get all content controls__
+#### __Example 1: Get all content controls__
@@ -25,7 +25,7 @@ The content controls can be retrieved by using the __EnumerateChildrenOfType()__
This example shows how one can iterate the items and add an item to an existing ComboBox content control.
-#### __C# Example 2: Adding items to a ComboBox or a DropDownList__
+#### __Example 2: Adding items to a ComboBox or a DropDownList__
@@ -35,23 +35,23 @@ New content controls can be inserted through the **InsertStructuredDocumentTag**
>note If adding content controls with the InsertStructuredDocumentTag(SdtType) method without specifying the content, the resulting document will only have the annotation range start and end of the control. The desired content should be manually added afterwards.
-#### __C# Example 3: Inserting a content control using content control type__
+#### __Example 3: Inserting a content control using content control type__
-#### __C# Example 4: Inserting a Rich Text content control using content control properties__
+#### __Example 4: Inserting a Rich Text content control using content control properties__
-#### __C# Example 5: Inserting a CheckBox content control using content control properties__
+#### __Example 5: Inserting a CheckBox content control using content control properties__
-#### __C# Example 6: Remove a content control__
+#### __Example 6: Remove a content control__
-#### __C# Example 7: Insert a content control to a specific position__
+#### __Example 7: Insert a content control to a specific position__
>note When using the InsertStructuredDocumentTag() method and passing start and end elements, make sure that the elements are not already part of a content control. An exception to the rule are the rich text and repeating section content controls, which can fully contain other controls, with the restriction that they cannot intersect their ranges.
diff --git a/libraries/radwordsprocessing/model/floatingimage.md b/libraries/radwordsprocessing/model/floatingimage.md
index 4c91abab..863e7ef1 100644
--- a/libraries/radwordsprocessing/model/floatingimage.md
+++ b/libraries/radwordsprocessing/model/floatingimage.md
@@ -19,7 +19,7 @@ __FloatingImage__ is an inline-level anchor flow document element linked with a
__Example 1__ shows how to create a FloatingImage and add it to a [Paragraph]({%slug radwordsprocessing-model-paragraph%}).
-#### __[C#] Example 1: Create a floating image and insert it in a paragraph__
+#### __Example 1: Create a floating image and insert it in a paragraph__
@@ -31,7 +31,7 @@ __Example 1__ shows how to create a FloatingImage and add it to a [Paragraph]({%
You can add an image at a specific index in the __Inlines__ collection of a paragraph using the __Insert()__ method. Here is how to add a FloatingImage at the beginning of a paragraph:
-#### __[C#] Example 2: Add a floating image to a specific position__
+#### __Example 2: Add a floating image to a specific position__
@@ -40,7 +40,7 @@ You can add an image at a specific index in the __Inlines__ collection of a para
You can also use the __AddFloatingImage()__ method of the __Inlines__ collection of a paragraph. The method creates a new __FloatingImage__, adds it to the paragraph and returns it.
-#### __[C#] Example 3: Using AddFloatingImage() method__
+#### __Example 3: Using AddFloatingImage() method__
@@ -49,7 +49,7 @@ You can also use the __AddFloatingImage()__ method of the __Inlines__ collection
Inserting __FloatingImage__ element in RadFlowDocument can also be achieved with [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%}).
-#### __[C#] Example 4: Insert a floating image using RadFlowDocumentEditor__
+#### __Example 4: Insert a floating image using RadFlowDocumentEditor__
diff --git a/libraries/radwordsprocessing/model/headers-footers.md b/libraries/radwordsprocessing/model/headers-footers.md
index 259420b4..624eba3e 100644
--- a/libraries/radwordsprocessing/model/headers-footers.md
+++ b/libraries/radwordsprocessing/model/headers-footers.md
@@ -39,7 +39,7 @@ Headers and Footers are properties of the __Section__ element and each Section c
Headers of all __HeaderFooterType__ types can be created using the code snippet in __Example 1__:
-#### __[C#] Example 1: Create a header__
+#### __Example 1: Create a header__
@@ -48,7 +48,7 @@ Headers of all __HeaderFooterType__ types can be created using the code snippet
Footers can be created using the code snippet from __Example 2__:
-#### __[C#] Example 2: Create a footer__
+#### __Example 2: Create a footer__
@@ -62,7 +62,7 @@ Footers can be created using the code snippet from __Example 2__:
You can obtain the Headers and Footers in a Section through the __Default__, __Even__ and __First__ properties of its __Headers__ or __Footers__ property. For example, if you want to get the default Header element of a Section element, you can use the following line of code:
-#### __[C#] Example 3: Get the default header of a section__
+#### __Example 3: Get the default header of a section__
@@ -71,7 +71,7 @@ You can obtain the Headers and Footers in a Section through the __Default__, __E
Similarly to the Header, the Footer element can be obtained as follows:
-#### __[C#] Example 4: Get the default footer of a section__
+#### __Example 4: Get the default footer of a section__
@@ -83,7 +83,7 @@ Similarly to the Header, the Footer element can be obtained as follows:
__Example 5__ demonstrates how to add different headers for odd and even pages:
-#### __[C#] Example 5: Add headers for even and odd pages__
+#### __Example 5: Add headers for even and odd pages__
diff --git a/libraries/radwordsprocessing/model/imageinline.md b/libraries/radwordsprocessing/model/imageinline.md
index f6509b21..2be7159c 100644
--- a/libraries/radwordsprocessing/model/imageinline.md
+++ b/libraries/radwordsprocessing/model/imageinline.md
@@ -33,7 +33,7 @@ With **WordsProcessing**, you can work with images from the following file forma
__Example 1__ demonstrates how you can create an ImageInline and add it to a [Paragraph]({%slug radwordsprocessing-model-paragraph%}):
-#### __[C#] Example 1: Create an image inline and insert it in a paragraph__
+#### __Example 1: Create an image inline and insert it in a paragraph__
@@ -45,7 +45,7 @@ __Example 1__ demonstrates how you can create an ImageInline and add it to a [Pa
You can add an image at a specific index in the __Inlines__ collection of a paragraph using the __Insert()__ method. Here is how to add an ImageInline at the beginning of a paragraph:
-#### __[C#] Example 2: Add an image inline to a specific position__
+#### __Example 2: Add an image inline to a specific position__
@@ -54,7 +54,7 @@ You can add an image at a specific index in the __Inlines__ collection of a para
You can also use the __AddImageInline()__ method of the __Inlines__ collection of a paragraph. The method creates a new ImageInline, adds it to the paragraph and returns it.
-#### __[C#] Example 3: Using AddImageInline() method__
+#### __Example 3: Using AddImageInline() method__
@@ -63,7 +63,7 @@ You can also use the __AddImageInline()__ method of the __Inlines__ collection o
Inserting __ImageInline__ element in RadFlowDocument can also be achieved with [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%}).
-#### __[C#] Example 4: Insert an image inline using RadFlowDocumentEditor__
+#### __Example 4: Insert an image inline using RadFlowDocumentEditor__
diff --git a/libraries/radwordsprocessing/model/paragraph.md b/libraries/radwordsprocessing/model/paragraph.md
index 83cf9710..f254458d 100644
--- a/libraries/radwordsprocessing/model/paragraph.md
+++ b/libraries/radwordsprocessing/model/paragraph.md
@@ -28,7 +28,7 @@ Paragraphs can be added as a child of a [BlockContainer](https://docs.telerik.co
The code snippet from __Example 1__ creates and inserts a __Paragraph__ in a __Section__.
-#### __C# Example 1: Insert paragraph in section__
+#### __Example 1: Insert paragraph in section__
@@ -38,21 +38,21 @@ The code snippet from __Example 1__ creates and inserts a __Paragraph__ in a __S
You can add a paragraph at a specific index in the __Blocks__ collection of a __BlockContainer__ using the __Insert()__ method. In __Example 2__ is demonstrated how to add a paragraph at the beginning of a section.
-#### __C# Example 2: Insert a paragraph at a specific position of the Blocks collection__
+#### __Example 2: Insert a paragraph at a specific position of the Blocks collection__
You can also use the __AddParagraph()__ method of the __Blocks__ collection of a __BlockContainer__. The method creates a new __Paragraph__ instance, adds it to the container and returns it.
-#### __C# Example 3: Create a new paragraph and add it to a section__
+#### __Example 3: Create a new paragraph and add it to a section__
Inserting a new __Paragraph__ in the document can also be achieved with the [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%}) class.
-#### __C# Example 4: Insert a paragraph using the RadFlowDocumentEditor__
+#### __Example 4: Insert a paragraph using the RadFlowDocumentEditor__
@@ -135,7 +135,7 @@ You can add inline elements to a __Paragraph__ instance.
In __Example 5__ is illustrated how to add a run to an existing paragraph.
-#### __C# Example 5: Insert run in a paragraph__
+#### __Example 5: Insert run in a paragraph__
@@ -149,7 +149,7 @@ For more information about __Run__ element, you can read [this article]({%slug r
__Example 6__ adds an inline image to an existing paragraph.
-#### __C# Example 6: Insert image inline__
+#### __Example 6: Insert image inline__
@@ -163,7 +163,7 @@ For more information about __ImageInline__ element, you can read [this article](
The code snippet from __Example 7__ adds a floating image to an existing paragraph.
-#### __C# Example 7: Add floating image__
+#### __Example 7: Add floating image__
@@ -175,7 +175,7 @@ For more information about __FloatingImage__ element, you can read [this article
In __Example 8__ it is demonstrated how to add a tab stop to the paragraph's collection.
-#### __C# Example 8: Insert TabStop__
+#### __Example 8: Insert TabStop__
@@ -185,7 +185,7 @@ You can refer to the [TabStop article]({%slug radwordsprocessing-concepts-tabsto
__Example 9__ shows how to create Borders and set them to a Paragraph.
-#### __C# Example 9: Setting Borders__
+#### __Example 9: Setting Borders__
diff --git a/libraries/radwordsprocessing/model/permissionrange.md b/libraries/radwordsprocessing/model/permissionrange.md
index 62f92b99..e73c7618 100644
--- a/libraries/radwordsprocessing/model/permissionrange.md
+++ b/libraries/radwordsprocessing/model/permissionrange.md
@@ -38,7 +38,7 @@ Creating a __PermissionRange__ requires passing an instance of the __PermissionR
__Example 1__ demonstrates how to create permission credentials for a single user specified by email and a permission range in a [Paragraph]({%slug radwordsprocessing-model-paragraph%}).
-#### __[C#] Example 1: Add PermissionRange to paragraph__
+#### __Example 1: Add PermissionRange to paragraph__
@@ -49,7 +49,7 @@ Inserting a __PermissionRange__ in the document can be achieved through [RadFlow
__Example 2__ demonstrates how to specify that a __TableCell__ can be edited by everyone when protection is enforced.
-#### __[C#] Example 2: Insert PermissionRange for TableCell__
+#### __Example 2: Insert PermissionRange for TableCell__
@@ -70,7 +70,7 @@ __ProtectionMode__ exposes the following members:
__Example 3__ shows how to protect and unprotect a document using the various overloads of the methods.
-#### __[C#] Example 3: Protect and unprotect document through RadFlowDocumentEditor__
+#### __Example 3: Protect and unprotect document through RadFlowDocumentEditor__
@@ -81,7 +81,7 @@ __Example 3__ shows how to protect and unprotect a document using the various ov
__RadFlowDocument__ exposes a property of type __ProtectionSettings__ - ProtectionSettings. Enforcing protection directly through the document is possible by setting the __Enforced__ property as demonstrated in __Example 4__.
-#### __[C#] Example 4: Enforce protection through RadFlowDocument__
+#### __Example 4: Enforce protection through RadFlowDocument__
diff --git a/libraries/radwordsprocessing/model/radflowdocument.md b/libraries/radwordsprocessing/model/radflowdocument.md
index 000e1b02..ea1eb307 100644
--- a/libraries/radwordsprocessing/model/radflowdocument.md
+++ b/libraries/radwordsprocessing/model/radflowdocument.md
@@ -19,7 +19,7 @@ __RadFlowDocument__ hosts flow document content and is the root element in the d
The code from __Example 1__ shows how you can create a new __RadFlowDocument__.
-#### __[C#] Example 1: Create RadFlowDocument__
+#### __Example 1: Create RadFlowDocument__
@@ -66,7 +66,7 @@ There are different actions which you can execute with the help of the __RadFlow
You can create a __RadFlowDocument__ from scratch and add Sections to it as follows:
-#### __[C#] Example 2: Add a Section to a RadFlowDocument__
+#### __Example 2: Add a Section to a RadFlowDocument__
@@ -78,7 +78,7 @@ The Sections property of the document is of type __SectionCollection__ and allow
Alternatively, you could create a section by passing to its constructor the document it should be associated with.
-#### __[C#] Example 3: Create a section__
+#### __Example 3: Create a section__
@@ -89,7 +89,7 @@ Alternatively, you could create a section by passing to its constructor the docu
You can merge a __RadFlowDocument__ within another document by using the __Merge()__ method and pass the source document as a parameter to it:
-#### __[C#] Example 4: Merge documents__
+#### __Example 4: Merge documents__
@@ -104,7 +104,7 @@ Additionally, you have the opportunity to specify the __MergeOptions__ which con
* __RenameSourceStyle__: If a conflict between styles with the same IDs appears, the style of the __source__ document is renamed and used.
-#### __[C#] Example 5: Merge documents using MergeOptions__
+#### __Example 5: Merge documents using MergeOptions__
@@ -118,7 +118,7 @@ __RadFlowDocument__ exposes an __UpdateFields()__ method which allows you to upd
The snippet from __Example 6__ shows how all fields in a document can be updated simultaneously.
-#### __[C#] Example 6: Update all fields in a document__
+#### __Example 6: Update all fields in a document__
diff --git a/libraries/radwordsprocessing/model/run.md b/libraries/radwordsprocessing/model/run.md
index e5297efd..b08192f7 100644
--- a/libraries/radwordsprocessing/model/run.md
+++ b/libraries/radwordsprocessing/model/run.md
@@ -19,7 +19,7 @@ __Run__ element is an inline-level flow content element intended to contain a ru
The code in __Example 1__ creates a __Run__ element and adds it to a [Paragraph]({%slug radwordsprocessing-model-paragraph%}).
-#### __[C#] Example 1: Create and add a run to a paragraph__
+#### __Example 1: Create and add a run to a paragraph__
@@ -27,19 +27,19 @@ The code in __Example 1__ creates a __Run__ element and adds it to a [Paragraph]
You can add a run at a specific index in the __Inlines__ collection of a paragraph using the __Insert()__ method. __Example 2__ demonstrates how to add a run at the beginning of a paragraph.
-#### __[C#] Example 2: Create and add a run at a specific index of a paragraph's Inlines collection__
+#### __Example 2: Create and add a run at a specific index of a paragraph's Inlines collection__
You can also use the __AddRun()__ method of the __Inlines__ collection of a paragraph. The method creates a new __Run__ instance, adds it to the container and returns it:
-#### __[C#] Example 3: Create and add a run to a paragraph__
+#### __Example 3: Create and add a run to a paragraph__
Inserting text in the document can also be achieved with the [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%}) class:
-#### __[C#] Example 4: Insert a run using RadFlowDocumentEditor__
+#### __Example 4: Insert a run using RadFlowDocumentEditor__
diff --git a/libraries/radwordsprocessing/model/section.md b/libraries/radwordsprocessing/model/section.md
index 3555c379..1d814e07 100644
--- a/libraries/radwordsprocessing/model/section.md
+++ b/libraries/radwordsprocessing/model/section.md
@@ -22,14 +22,14 @@ __Section__ is a BlockContainer element which can contain other block elements.
You can use the code snippet from __Example 1__ to create a __Section__ element and add it to a [RadFlowDocument]({%slug radwordsprocessing-model-radflowdocument%}).
-#### __[C#] Example 1: Create a section and add it to a RadFlowDocument__
+#### __Example 1: Create a section and add it to a RadFlowDocument__
You can also use the __AddSection()__ method of the __Sections__ collection of a document. The method creates a new __Section__ element, adds it to the document and returns it.
-#### __[C#] Example 2: Create a section and add it to a RadFlowDocument__
+#### __Example 2: Create a section and add it to a RadFlowDocument__
@@ -41,27 +41,27 @@ The __Section__ exposes several properties that allow you to customize the layou
* __PageMargins__: Represents the margin towards the edges of the page.
- #### __[C#] Example 3: Change margins of a section__
+ #### __Example 3: Change margins of a section__
* __PageOrientation__: Specifies whether the pages in the section should be in *Portrait* or in *Landscape* orientation. This property is used to determine the actual size of the paper to use on the printer and does not reflect document's visualization. In order to affect __Section__'s appearance you should change PageSize and PageMargin properties, or use the [Rotate method](#rotating-a-section), which will change them according to the desired page orientation.
- #### __[C#] Example 4: Change orienation of a section__
+ #### __Example 4: Change orienation of a section__
* __PageSize__: Specifies the size of the pages in the section. The width and height are in device independent pixels (1/96 inch). The __PaperTypeConverter__ class and the [PaperTypes](https://docs.telerik.com/devtools/document-processing/api/Telerik.Windows.Documents.Model.PaperTypes.html) enumeration provide convenient API and predefined sizes out of the box.
- #### __[C#] Example 5: Change page size of a section__
+ #### __Example 5: Change page size of a section__
* __Headers and Footers__: Each __Section__ has three Headers and three Footers - __Default__ (used all through the section), __First__ (used on the first page of the section) and __Even__ (used on even pages of the document). The three Headers are contained in the Headers class accessible through the __Section.Headers__ property. The three Footers are contained in the Footers class accessible through the __Section.Footers__ property. __Example 6__ shows how you can create default Header.
- #### __[C#] Example 6: Create a header of a section__
+ #### __Example 6: Create a header of a section__
@@ -105,7 +105,7 @@ The __Section__ exposes several properties that allow you to customize the layou
__Section__ derives [BlockContainerBase](https://docs.telerik.com/devtools/document-processing/api/Telerik.Windows.Documents.Flow.Model.BlockContainerBase.html), inheriting Blocks property of BlockCollection type. You can add [Paragraph]({%slug radwordsprocessing-model-paragraph%}) and [Table]({%slug radwordsprocessing-model-table%}) objects to that collection.
-#### __[C#] Example 7: Add elements to a section__
+#### __Example 7: Add elements to a section__
@@ -114,7 +114,7 @@ __Section__ derives [BlockContainerBase](https://docs.telerik.com/devtools/docum
The __Section__ can be rotated in order to visualize its pages in Portrait or Landscape mode.
-#### __[C#] Example 8: Rotate a section__
+#### __Example 8: Rotate a section__
## See Also
diff --git a/libraries/radwordsprocessing/model/table.md b/libraries/radwordsprocessing/model/table.md
index 9b06b74f..fd4d7e8d 100644
--- a/libraries/radwordsprocessing/model/table.md
+++ b/libraries/radwordsprocessing/model/table.md
@@ -29,7 +29,7 @@ When creating an instance of the Table class, you should pass the document that
The code snippet from __Example 1__ creates and inserts a Table to a Section.
-#### __[C#] Example 1: Create and insert a table to a section__
+#### __Example 1: Create and insert a table to a section__
@@ -41,7 +41,7 @@ The code snippet from __Example 1__ creates and inserts a Table to a Section.
You can add a table at a specific index in the __Blocks__ collection of a __BlockContainer__ using the __Insert()__ method. __Example 2__ shows how to add a table at the beginning of a section.
-#### __[C#] Example 2: Insert a table at a specific index__
+#### __Example 2: Insert a table at a specific index__
@@ -50,7 +50,7 @@ You can add a table at a specific index in the __Blocks__ collection of a __Bloc
You can also use the __AddTable()__ method of the __Blocks__ collection of a __BlockContainer__. The method creates a new __Table__ instance, adds it to the container and returns it.
-#### __[C#] Example 3: Insert a new table to a container__
+#### __Example 3: Insert a new table to a container__
@@ -59,7 +59,7 @@ You can also use the __AddTable()__ method of the __Blocks__ collection of a __B
Inserting a new __Table__ in the document can also be achieved with the [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%}) class.
-#### __[C#] Example 4: Insert a table using RadFlowDocumentEditor__
+#### __Example 4: Insert a table using RadFlowDocumentEditor__
@@ -130,7 +130,7 @@ __Properties__ exposes several properties that allow you to customize the layout
__Example 5__ demonstrates how to add a __Table__ with 5 rows and 10 columns to a __RadFlowDocument__.
-#### __[C#] Example 5: Create a table with content and add it to a RadFlowDocument__
+#### __Example 5: Create a table with content and add it to a RadFlowDocument__
diff --git a/libraries/radwordsprocessing/model/tablecell.md b/libraries/radwordsprocessing/model/tablecell.md
index 536f3c88..8cd7d08f 100644
--- a/libraries/radwordsprocessing/model/tablecell.md
+++ b/libraries/radwordsprocessing/model/tablecell.md
@@ -18,28 +18,28 @@ __TableCell__ element is a __BlockContainer__ element and defines a cell of cont
You can use the code snippet from __Example 1__ to create a __TableCell__ and add it in a [TableRow]({%slug radwordsprocessing-model-tablerow%}).
-#### __[C#] Example 1: Create a TableCell object and add it to a TableRow__
+#### __Example 1: Create a TableCell object and add it to a TableRow__
-````
+```csharp
RadFlowDocument radFlowDocument = new RadFlowDocument();
Table table = radFlowDocument.Sections.AddSection().Blocks.AddTable();
TableRow row = table.Rows.AddTableRow();
TableCell cell = new TableCell(radFlowDocument);
row.Cells.Add(cell);
-````
+```
To create a __TableCell__ and add it in the document tree in the same time, you can use the __AddTableCell()__ method.
-#### __[C#] Example 2: Create a TableCell and add it to a TableRow in the same time__
+#### __Example 2: Create a TableCell and add it to a TableRow in the same time__
-````
+```csharp
TableRow row = table.Rows.AddTableRow();
TableCell cell = row.Cells.AddTableCell();
-````
+```
## Modifying a TableCell
@@ -100,14 +100,14 @@ The __TableCell__ element exposes several properties that allow you to customize
* __GridRowIndex__: Represents the row index of the cell in the table grid.
-````
+```csharp
Border border = new Border(1, BorderStyle.Single, new ThemableColor(Colors.Blue));
cell.Borders = new Telerik.Windows.Documents.Flow.Model.Styles.TableCellBorders(border, border, border, border);
cell.Shading.BackgroundColor = new ThemableColor(Colors.Red);
cell.Padding = new Telerik.Windows.Documents.Primitives.Padding(20,20,20,20);
cell.VerticalAlignment = VerticalAlignment.Bottom;
cell.TextDirection = TextDirection.LeftToRightTopToBottom;
-````
+```
## Operating with a TableCell
@@ -116,12 +116,12 @@ cell.TextDirection = TextDirection.LeftToRightTopToBottom;
__Example 3__ demonstrates how to add a __Paragraph__ to a __TableCell__.
-#### __[C#] Example 3: Add a paragraph to a TableCell__
+#### __Example 3: Add a paragraph to a TableCell__
-````
+```csharp
Paragraph paragraph = cell.Blocks.AddParagraph();
-````
+```
Through the __BlockCollection__ property of the __TableCell__ element you can add a __Table__ or any other [BlockBase](https://docs.telerik.com/devtools/document-processing/api/Telerik.Windows.Documents.Flow.Model.BlockBase.html) element.
diff --git a/libraries/radwordsprocessing/model/tablerow.md b/libraries/radwordsprocessing/model/tablerow.md
index b8c593c6..ca309612 100644
--- a/libraries/radwordsprocessing/model/tablerow.md
+++ b/libraries/radwordsprocessing/model/tablerow.md
@@ -26,14 +26,14 @@ __TableRow__ is a flow document element that defines a row within a [Table]({%sl
You can use the code snippet from __Example 1__ to create a __TableRow__ and add it in a __Table__.
-#### __[C#] Example 1: Create a TableRow and add it to a table__
+#### __Example 1: Create a TableRow and add it to a table__
In order to create a __TableRow__ and add it in the document tree in the same time, you can use the __AddTableRow()__ method of the [Rows](https://docs.telerik.com/devtools/document-processing/api/Telerik.Windows.Documents.Flow.Model.Table.html#collapsible-Telerik_Windows_Documents_Flow_Model_Table_Rows) collection property of the table.
-#### __[C#] Example 2: Create a TableRow and add it to a table in the same time__
+#### __Example 2: Create a TableRow and add it to a table in the same time__
@@ -79,7 +79,7 @@ The __TableRow__ element exposes several properties that allow you to customize
__Example 3__ shows how to add a number of __TableCell__ elements in a TableRow.
-#### __[C#] Example 3: Add TableCell objects to a TableRow__
+#### __Example 3: Add TableCell objects to a TableRow__
diff --git a/libraries/radziplibrary/features/compress-stream.md b/libraries/radziplibrary/features/compress-stream.md
index a2c34757..7e8b7ed0 100644
--- a/libraries/radziplibrary/features/compress-stream.md
+++ b/libraries/radziplibrary/features/compress-stream.md
@@ -57,52 +57,52 @@ The parameters accepted by the constructors serve the following functions:
You can create a compressed stream by initializing a new instance of the __CompressedStream__ class and passing as a parameter the stream in which the compressed data will be written. You need to specify the operation mode to __Wrtie__ and the compression settings that should be used.
-#### __[C#] Example 1: Write to compressed stream__
+#### __Example 1: Write to compressed stream__
-{{region cs-radziplibrary-compress-stream_0}}
+```csharp
using (CompressedStream compressedStream = new CompressedStream(outputStream, StreamOperationMode.Write, new DeflateSettings()))
{
// write to compressed stream
}
-{{endregion}}
+```
-#### __[VB.NET] Example 1: Write to compressed stream__
+#### __Example 1: Write to compressed stream__
-{{region vb-radziplibrary-compress-stream_0}}
+```csharp
Using compressedStream As New CompressedStream(outputStream, StreamOperationMode.Write, New DeflateSettings())
' write to compressed stream
End Using
-{{endregion}}
+```
If you want to compress a specific stream (*inputStream*), you need to copy it to the compressed stream that you've created.
-#### __[C#] Example 2: Write stream to compressed stream__
+#### __Example 2: Write stream to compressed stream__
-{{region cs-radziplibrary-compress-stream_1}}
+```csharp
using (CompressedStream compressedStream = new CompressedStream(outputStream, StreamOperationMode.Write, new DeflateSettings()))
{
inputStream.CopyTo(compressedStream);
compressedStream.Flush();
}
-{{endregion}}
+```
-#### __[VB.NET] Example 2: Write stream to compressed stream__
+#### __Example 2: Write stream to compressed stream__
-{{region vb-radziplibrary-compress-stream_1}}
+```csharp
Using compressedStream As New CompressedStream(outputStream, StreamOperationMode.Write, New DeflateSettings())
inputStream.CopyTo(compressedStream)
compressedStream.Flush()
End Using
-{{endregion}}
+```
@@ -111,25 +111,25 @@ If you want to compress a specific stream (*inputStream*), you need to copy it t
Decompressing a stream is just as simple as compressing it. All you need to do is create new instance of the __CompressedStream__ class and pass it the stream from which the compressed data will be extracted, operation mode __Read__, and the compression settings that need to be used.
-#### __[C#] Example 3: Decompressed stream__
+#### __Example 3: Decompressed stream__
-{{region cs-radziplibrary-compress-stream_2}}
+```csharp
using (CompressedStream compressedStream = new CompressedStream(inputStream, StreamOperationMode.Read, new DeflateSettings()))
{
compressedStream.CopyTo(outputStream);
}
-{{endregion}}
+```
-#### __[VB.NET] Example 3: Decompressed stream__
+#### __Example 3: Decompressed stream__
-{{region vb-radziplibrary-compress-stream_2}}
+```csharp
Using compressedStream As New CompressedStream(inputStream, StreamOperationMode.Read, New DeflateSettings())
compressedStream.CopyTo(outputStream)
End Using
-{{endregion}}
+```
diff --git a/libraries/radziplibrary/features/compression-settings.md b/libraries/radziplibrary/features/compression-settings.md
index e96ab3ca..d0555fdb 100644
--- a/libraries/radziplibrary/features/compression-settings.md
+++ b/libraries/radziplibrary/features/compression-settings.md
@@ -25,22 +25,22 @@ The __DeflateSettings__ class exposes some configurable parameters:
__Example 1__ demonstrates how to create DeflateSettings.
-#### __[C#] Example 1: Create DeflateSettings__
+#### __Example 1: Create DeflateSettings__
-{{region cs-radziplibrary-compression-settings_0}}
+```csharp
DeflateSettings compressionSettings = new DeflateSettings();
compressionSettings.CompressionLevel = CompressionLevel.Best;
compressionSettings.HeaderType = CompressedStreamHeader.ZLib;
-{{endregion}}
+```
-#### __[VB.NET] Example 1: Create DeflateSettings__
+#### __Example 1: Create DeflateSettings__
-{{region vb-radziplibrary-compression-settings_0}}
+```csharp
Dim compressionSettings As New DeflateSettings()
compressionSettings.CompressionLevel = CompressionLevel.Best
compressionSettings.HeaderType = CompressedStreamHeader.ZLib
-{{endregion}}
+```
## LZMA Settings
@@ -62,9 +62,9 @@ The configurable parameters of the __LzmaSettings__ class are as follows:
* __MatchFinderType__: The type of the match finder. Allowed values are BT2(match finder that uses two bytes for the hash) and BT4(uses four bytes for the hash).
-#### __[C#] Example 2: Create LzmaSettings__
+#### __Example 2: Create LzmaSettings__
-{{region cs-radziplibrary-compression-settings_1}}
+```csharp
LzmaSettings compressionSettings = new LzmaSettings();
compressionSettings.DictionarySize = 23;
@@ -73,13 +73,13 @@ The configurable parameters of the __LzmaSettings__ class are as follows:
compressionSettings.LiteralPositionBits = 3;
compressionSettings.MatchFinderType = LzmaMatchFinderType.BT4;
compressionSettings.PositionStateBits = 2;
-{{endregion}}
+```
-#### __[VB.NET] Example 2: Create LzmaSettings__
+#### __Example 2: Create LzmaSettings__
-{{region vb-radziplibrary-compression-settings_1}}
+```csharp
Dim compressionSettings As New LzmaSettings()
compressionSettings.DictionarySize = 23
compressionSettings.FastBytes = 32
@@ -87,7 +87,7 @@ The configurable parameters of the __LzmaSettings__ class are as follows:
compressionSettings.LiteralPositionBits = 3
compressionSettings.MatchFinderType = LzmaMatchFinderType.BT4
compressionSettings.PositionStateBits = 2
-{{endregion}}
+```
@@ -96,19 +96,19 @@ The configurable parameters of the __LzmaSettings__ class are as follows:
Store settings are used to just store the data using no compression.
-#### __[C#] Example 3: Create StoreSettings__
+#### __Example 3: Create StoreSettings__
-{{region cs-radziplibrary-compression-settings_2}}
+```csharp
StoreSettings compressionSettings = new StoreSettings();
-{{endregion}}
+```
-#### __[VB.NET] Example 3: Create StoreSettings__
+#### __Example 3: Create StoreSettings__
-{{region vb-radziplibrary-compression-settings_2}}
+```csharp
Dim compressionSettings As New StoreSettings()
-{{endregion}}
+```
## See Also
diff --git a/libraries/radziplibrary/features/protect-ziparchive.md b/libraries/radziplibrary/features/protect-ziparchive.md
index 4a6b78f0..7e8387e6 100644
--- a/libraries/radziplibrary/features/protect-ziparchive.md
+++ b/libraries/radziplibrary/features/protect-ziparchive.md
@@ -29,9 +29,9 @@ In order to create a password-protected ZIP archive, you need to pass a **Passwo
**PasswordEncryptionSettings** has a __Password__ property of type string, which represents the used password.
-#### __[C#] Example 1: Create a password-protected ZIP archive__
+#### __Example 1: Create a password-protected ZIP archive__
-{{region cs-radziplibrary-protect-ziparchive_0}}
+```csharp
using (Stream stream = File.Open("test.zip", FileMode.Create))
{
@@ -56,11 +56,11 @@ In order to create a password-protected ZIP archive, you need to pass a **Passwo
}
}
-{{endregion}}
+```
-#### __[VB.NET] Example 1: Create a password-protected ZIP archive__
+#### __Example 1: Create a password-protected ZIP archive__
-{{region vb-radziplibrary-protect-ziparchive_0}}
+```csharp
Using stream As Stream = File.Open("test.zip", FileMode.Create)
'By default the EncryptionStrenght is 256 bits but it can be explicitly specified (EncryptionStrength.Aes128, EncryptionStrength.Aes192, and EncryptionStrength.Aes256) by passing it to the constructor
@@ -83,7 +83,7 @@ In order to create a password-protected ZIP archive, you need to pass a **Passwo
End Using
End Using
-{{endregion}}
+```
>tip You must always dispose of the ZIP archive object when all operations that use it are completed. Telerik Support recommends that you declare and instantiate the ZIP archive object in a using statement. If it is not possible for some reason, then do not forget to call the __Dispose()__ method when you complete all operations.
@@ -93,9 +93,9 @@ In order to create a password-protected ZIP archive, you need to pass a **Passwo
In order to open a password-protected __ZipArchive__, you need to pass a __DefaultEncryptionSettings__ object with the password that was used to create the archive in the first place.
-#### __[C#] Example 2: Open and read a password-protected ZIP archive__
+#### __Example 2: Open and read a password-protected ZIP archive__
-{{region cs-radziplibrary-protect-ziparchive_1}}
+```csharp
using (FileStream stream = File.Open("test.zip", FileMode.Open))
{
@@ -109,11 +109,11 @@ In order to open a password-protected __ZipArchive__, you need to pass a __Defau
}
}
-{{endregion}}
+```
-#### __[VB.NET] Example 2: Open and read a password-protected ZIP archive__
+#### __Example 2: Open and read a password-protected ZIP archive__
-{{region vb-radziplibrary-protect-ziparchive_1}}
+```csharp
Sub Main()
Using stream As FileStream = File.Open("test.zip", FileMode.Open)
@@ -132,7 +132,7 @@ In order to open a password-protected __ZipArchive__, you need to pass a __Defau
e.Password = "passw0rd"
End Sub
-{{endregion}}
+```
>tip You must always dispose of the ZIP archive object when all operations that use it are completed. We recommend that you declare and instantiate the ZIP archive object in a **using** statement. If it is not possible for some reason, then do not forget to call the __Dispose()__ method when you complete all operations.
diff --git a/libraries/radziplibrary/features/update-ziparchive.md b/libraries/radziplibrary/features/update-ziparchive.md
index 5494787b..a1e309a9 100644
--- a/libraries/radziplibrary/features/update-ziparchive.md
+++ b/libraries/radziplibrary/features/update-ziparchive.md
@@ -15,9 +15,9 @@ The __ZipArchive__ class provides three modes: *Read*, *Create* and *Update*. Mo
The code snippet from __Example 1__ opens a ZIP archive in update mode using __ZipArchive__ class.
-#### __[C#] Example 1: Open for update__
+#### __Example 1: Open for update__
-{{region cs-radziplibrary-update-ziparchive_0}}
+```csharp
using (Stream stream = File.Open("test.zip", FileMode.Open))
{
@@ -26,17 +26,17 @@ The code snippet from __Example 1__ opens a ZIP archive in update mode using __Z
// Display the list of the files in the selected zip file using the ZipArchive.Entries property.
}
}
-{{endregion}}
+```
-#### __[VB.NET] Example 1: Open for update__
+#### __Example 1: Open for update__
-{{region vb-radziplibrary-update-ziparchive_0}}
+```csharp
Using stream As Stream = File.Open("test.zip", FileMode.Open)
Using archive As ZipArchive = ZipArchive.Update(stream, Nothing)
' Display the list of the files in the selected zip file using the ZipArchive.Entries property.
End Using
End Using
-{{endregion}}
+```
@@ -58,9 +58,9 @@ In order to add a new entry into the ZIP archive, you should perform the followi
>note More information about ZipArchiveEntry you can find in [ZipArchiveEntry]({%slug radziplibrary-ziparchive-entry%}) help article.
-#### __[C#] Example 2: Add entry__
+#### __Example 2: Add entry__
-{{region cs-radziplibrary-update-ziparchive_1}}
+```csharp
using (ZipArchiveEntry entry = archive.CreateEntry("text.txt"))
{
@@ -68,19 +68,19 @@ In order to add a new entry into the ZIP archive, you should perform the followi
writer.WriteLine("Hello world!");
writer.Flush();
}
-{{endregion}}
+```
-#### __[VB.NET] Example 2: Add entry__
+#### __Example 2: Add entry__
-{{region vb-radziplibrary-update-ziparchive_1}}
+```csharp
Using entry As ZipArchiveEntry = archive.CreateEntry("text.txt")
Dim writer As New StreamWriter(entry.Open())
writer.WriteLine("Hello world!")
writer.Flush()
End Using
-{{endregion}}
+```
@@ -92,27 +92,27 @@ The __ZipArchive__ class provides a __GetEntry()__ method, which allows you acce
__Example 3__ shows how you could obtain an entry and delete it from the ZIP archive using the __Delete()__ method.
-#### __[C#] Example 3: Delete entry__
+#### __Example 3: Delete entry__
-{{region cs-radziplibrary-update-ziparchive_2}}
+```csharp
ZipArchiveEntry entry = archive.GetEntry("text.txt");
if (entry != null)
{
entry.Delete();
}
-{{endregion}}
+```
-#### __[VB.NET] Example 3: Delete entry__
+#### __Example 3: Delete entry__
-{{region vb-radziplibrary-update-ziparchive_2}}
+```csharp
Dim entry As ZipArchiveEntry = archive.GetEntry("text.txt")
If entry IsNot Nothing Then
entry.Delete()
End If
-{{endregion}}
+```
## Update Entry
@@ -132,9 +132,9 @@ In order to update an existing entry in the ZIP archive, you should perform the
1. Dispose entry when all necessary information is written. In the __Update__ mode this step is optional. You can omit it if you are going to add/delete/update other entries in the archive.
-#### __[C#] Example 4: Update entry__
+#### __Example 4: Update entry__
-{{region cs-radziplibrary-update-ziparchive_3}}
+```csharp
ZipArchiveEntry entry = archive.GetEntry("text.txt");
if (entry != null)
{
@@ -147,13 +147,13 @@ In order to update an existing entry in the ZIP archive, you should perform the
writer.WriteLine("Updated line.");
writer.Flush();
}
-{{endregion}}
+```
-#### __[VB.NET] Example 4: Update entry__
+#### __Example 4: Update entry__
-{{region vb-radziplibrary-update-ziparchive_3}}
+```csharp
Dim entry As ZipArchiveEntry = archive.GetEntry("text.txt")
If entry IsNot Nothing Then
Dim entryStream As Stream = entry.Open()
@@ -165,7 +165,7 @@ In order to update an existing entry in the ZIP archive, you should perform the
writer.WriteLine("Updated line.")
writer.Flush()
End If
-{{endregion}}
+```
## Copy Entry
@@ -173,7 +173,7 @@ Starting with the **Q2 2025** release, the __RadZipLibrary__ introduces a new ex
The following example demonstrates how to use the `CopyTo` method to copy the contents of a large file from a ZIP archive to a memory stream with a specified timeout.
-#### __[C#] Example 5: Copy entry with timeout__
+#### __Example 5: Copy entry with timeout__
diff --git a/libraries/radziplibrary/features/ziparchive-entry.md b/libraries/radziplibrary/features/ziparchive-entry.md
index 36488971..d036b84c 100644
--- a/libraries/radziplibrary/features/ziparchive-entry.md
+++ b/libraries/radziplibrary/features/ziparchive-entry.md
@@ -22,8 +22,8 @@ The root element of the [RadZipLibrary]({%slug radziplibrary-overview%}) is the
> The archive compressed length can be obtained only after the **ZipArchiveEntry** is disposed of, so in the following example, we are ensuring the correct disposing of the object by [using statement](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/using-statement).
- #### **[C#] Example 1: Get entry's compressed length**
- {{region cs-radziplibrary-ziparchive-entry_0}}
+ #### **Example 1: Get entry's compressed length**
+ ```csharp
ZipArchiveEntry entry;
using (entry = archive.CreateEntry("file.txt"))
@@ -34,42 +34,42 @@ The root element of the [RadZipLibrary]({%slug radziplibrary-overview%}) is the
}
long compressedLength = entry.CompressedLength;
- {{endregion}}
+ ```
* **ExternalAttributes**: Gets or sets external [file attributes](https://docs.microsoft.com/en-us/dotnet/api/system.io.fileattributes?view).
- #### **[C#] Example 2: Set entry's external attributes**
+ #### **Example 2: Set entry's external attributes**
- {{region cs-radziplibrary-ziparchive-entry_1}}
+ ```csharp
entry.ExternalAttributes = (int)File.GetAttributes(sourceFileName);
- {{endregion}}
+ ```
* **FullName**: Gets the relative path of the entry in the zip archive.
- #### **[C#] Example 3: Get entry's relative path**
+ #### **Example 3: Get entry's relative path**
- {{region cs-radziplibrary-ziparchive-entry_2}}
+ ```csharp
string fullName = entry.FullName;
- {{endregion}}
+ ```
* **LastWriteTime**: Gets or sets the last time the entry in the zip archive was changed.
- #### **[C#] Example 4: Set last entry's write time**
+ #### **Example 4: Set last entry's write time**
- {{region cs-radziplibrary-ziparchive-entry_3}}
+ ```csharp
DateTime lastWriteTime = File.GetLastWriteTime(sourceFileName);
entry.LastWriteTime = lastWriteTime;
- {{endregion}}
+ ```
* **Length**: Gets the uncompressed size of the entry in the zip archive.
> The archive length can be obtained only after the **ZipArchiveEntry** is disposed of, so in the following example, we are ensuring the correct disposing of the object by [using statement](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/using-statement).
- #### **[C#] Example 5: Get entry's length**
+ #### **Example 5: Get entry's length**
- {{region cs-radziplibrary-ziparchive-entry_4}}
+ ```csharp
ZipArchiveEntry entry;
using (entry = archive.CreateEntry("file.txt"))
@@ -80,16 +80,16 @@ The root element of the [RadZipLibrary]({%slug radziplibrary-overview%}) is the
}
long length = entry.CompressedLength;
- {{endregion}}
+ ```
* **Name**: Gets the file name of the entry in the zip archive.
- #### **[C#] Example 6: Get entry's name**
+ #### **Example 6: Get entry's name**
- {{region cs-radziplibrary-ziparchive-entry_5}}
+ ```csharp
string name = entry.Name;
- {{endregion}}
+ ```
### Methods
@@ -107,35 +107,35 @@ There are several operations, which you can execute over a **ZipArchive** instan
### Get ZipArchiveEntry
Retrieves a wrapper for the specified entry in the zip archive.
-#### **[C#] Example 7: Get ZipArchiveEntry**
+#### **Example 7: Get ZipArchiveEntry**
-{{region cs-radziplibrary-ziparchive-entry_6}}
+```csharp
ZipArchiveEntry entry = archive.GetEntry("file.txt");
-{{endregion}}
+```
### Create ZipArchiveEntry
Creates an empty entry that has the specified path and entry name in the zip archive.
-#### **[C#] Example 8: Create ZipArchiveEntry**
+#### **Example 8: Create ZipArchiveEntry**
-{{region cs-radziplibrary-ziparchive-entry_7}}
+```csharp
ZipArchiveEntry entry = archive.CreateEntry("file.txt");
// OR
ZipArchiveEntry entry = archive.CreateEntry("file.txt", compressionSettings);
-{{endregion}}
+```
### Extract ZipArchiveEntry
Extract an entry to a specific folder/directory.
-#### **[C#] Example 9: Extracting a ZipArchiveEntry to folder/directory**
+#### **Example 9: Extracting a ZipArchiveEntry to folder/directory**
-{{region cs-radziplibrary-ziparchive-entry_8}}
+```csharp
ZipArchiveEntry entry = archive.GetEntry("file.txt");
string path = Path.Combine(RootDirectory, entry.FullName);
@@ -147,7 +147,7 @@ Extract an entry to a specific folder/directory.
entryStream.CopyTo(fileStream);
}
}
-{{endregion}}
+```
>tipThis functionality could be achieved by using the [Zip Extensions']({%slug radziplibrary-zipextensions%}) _ExtractToFile_ method as well.
@@ -157,9 +157,9 @@ Specific examples of using the ZipArchiveEntry.
### Using ZipArchiveEntry Properties
A complete example including all the properties discussed above.
-#### **[C#] Example 10: Complete example**
+#### **Example 10: Complete example**
-{{region cs-radziplibrary-ziparchive-entry_9}}
+```csharp
string[] files = Directory.GetFiles("SampleFiles");
string zipFileName = "ZipArchive.zip";
@@ -206,23 +206,23 @@ A complete example including all the properties discussed above.
}
}
}
-{{endregion}}
+```
### Working with Folders/Directories
-#### **[C#] Example 11: Creating folders/directories**
+#### **Example 11: Creating folders/directories**
-{{region cs-radziplibrary-ziparchive-entry_10}}
+```csharp
ZipArchiveEntry entry = archive.CreateEntry("Documents/Sample/");
-{{endregion}}
+```
-#### **[C#] Example 12: Opening Files in folders/directories**
+#### **Example 12: Opening Files in folders/directories**
-{{region cs-radziplibrary-ziparchive-entry_11}}
+```csharp
ZipArchiveEntry entry = archive.GetEntry("Documents/Sample/file.txt");
-{{endregion}}
+```
## See Also
diff --git a/libraries/radziplibrary/gettingstarted.md b/libraries/radziplibrary/gettingstarted.md
index 23729a24..d39826de 100644
--- a/libraries/radziplibrary/gettingstarted.md
+++ b/libraries/radziplibrary/gettingstarted.md
@@ -48,9 +48,9 @@ The ZIP archive is represented by __ZipArchive__ class. It can be used in 3 mode
The code snippet from __Example 1__ demonstrates how to open existing Zip archive using the __ZipArchive__ class.
-#### __[C#] Example 1: Open archive__
+#### __Example 1: Open archive__
-{{region cs-radziplibrary-gettingstarted_0}}
+```csharp
using (Stream stream = File.Open("test.zip", FileMode.Open))
{
@@ -59,19 +59,19 @@ The code snippet from __Example 1__ demonstrates how to open existing Zip archiv
// Display the list of the files in the selected zip file using the ZipArchive.Entries property.
}
}
-{{endregion}}
+```
-#### __[VB.NET] Example 1: Open archive__
+#### __Example 1: Open archive__
-{{region vb-radziplibrary-gettingstarted_0}}
+```csharp
Using stream As Stream = File.Open("test.zip", FileMode.Open)
Using archive As ZipArchive = ZipArchive.Create(stream)
' Display the list of the files in the selected zip file using the ZipArchive.Entries property.
End Using
End Using
-{{endregion}}
+```
The *archive* variable holds the files that are compressed in the selected zip. You can access the list of these files through the __ZipArchive.Entries__ property. It holds a collection of [ZipArchiveEntry]({%slug radziplibrary-update-ziparchive%}) elements - the elements that describe the files archived in the zip file. You can use these elements to get the name of the compressed file, its uncompressed and compressed size and other file attributes.
@@ -82,9 +82,9 @@ The *archive* variable holds the files that are compressed in the selected zip.
__Example 2__ shows how to create a new Zip archive using the __ZipArchive__ class and place a text file in it.
-#### __[C#] Example 2: Create archive__
+#### __Example 2: Create archive__
-{{region cs-radziplibrary-gettingstarted_1}}
+```csharp
using (Stream stream = File.Open("test.zip", FileMode.Create))
{
@@ -98,13 +98,13 @@ __Example 2__ shows how to create a new Zip archive using the __ZipArchive__ cla
}
}
}
-{{endregion}}
+```
-#### __[VB.NET] Example 2: Create archive__
+#### __Example 2: Create archive__
-{{region vb-radziplibrary-gettingstarted_1}}
+```csharp
Using stream As Stream = File.Open("test.zip", FileMode.Create)
Using archive As ZipArchive = ZipArchive.Create(stream, Nothing)
Using entry As ZipArchiveEntry = archive.CreateEntry("text.txt")
@@ -114,7 +114,7 @@ __Example 2__ shows how to create a new Zip archive using the __ZipArchive__ cla
End Using
End Using
End Using
-{{endregion}}
+```
@@ -125,9 +125,9 @@ __Example 2__ shows how to create a new Zip archive using the __ZipArchive__ cla
The constructor of ZipArchive lets you specify whether you would like to keep the stream associated to the instance open. If you decide to set the `leaveOpen` parameter to `false`, the underlying stream will be closed once the ZipArchive instance is disposed. In case you need to continue working with that stream (to send it as a responce, for example), you should pass `true` for the `leaveOpen` parameter.
-#### __[C#] Example 3: Create archive in a MemoryStream__
+#### __Example 3: Create archive in a MemoryStream__
-{{region cs-radziplibrary-gettingstarted_2}}
+```csharp
Stream memoryStream = new MemoryStream();
@@ -145,7 +145,7 @@ The constructor of ZipArchive lets you specify whether you would like to keep th
// Save memoryStream to a file or send it to client
-{{endregion}}
+```
For more complete examples head to the [Developer Focused Examples]({%slug radziplibrary-sdk-examples%}) section of the library.
diff --git a/troubleshooting/pdfprocessing.md b/troubleshooting/pdfprocessing.md
index 2673b40a..c6884ce3 100644
--- a/troubleshooting/pdfprocessing.md
+++ b/troubleshooting/pdfprocessing.md
@@ -22,22 +22,22 @@ The **.NET Standard** version of the [RadPdfProcessing]({%slug radpdfprocessing-
In order to successfully export images different than **Jpeg** and **Jpeg2000** and **ImageQuality** different than **High** you will need to reference the **Telerik.Documents.ImageUtils** NuGet package in your project. The library also exposes the **FixedExtensibilityManager** class with two specific extensibility points: [ImagePropertiesResolver]({%slug radpdfprocessing-cross-platform-images%}#imagepropertiesresolver) and [JpegImageConverter]({%slug radpdfprocessing-cross-platform-images%}#jpegimageconverter). You would have to set the [ImagePropertiesResolver]({%slug radpdfprocessing-cross-platform-images%}#imagepropertiesresolver)/[JpegImageConverter]({%slug radpdfprocessing-cross-platform-images%}#jpegimageconverter) property or create a custom one inheriting the **ImagePropertiesResolverBase**/**JpegImageConverterBase** class.
-#### **[C#] Example 1: Set the default implementation of the ImagePropertiesResolver class**
- {{region cs-troubleshooting_pdfprocessing_0}}
+#### **Example 1: Set the default implementation of the ImagePropertiesResolver class**
+ ```csharp
Telerik.Documents.ImageUtils.ImagePropertiesResolver defaultImagePropertiesResolver = new Telerik.Documents.ImageUtils.ImagePropertiesResolver();
Telerik.Windows.Documents.Extensibility.FixedExtensibilityManager.ImagePropertiesResolver = defaultImagePropertiesResolver;
- {{endregion}}
+ ```
-#### **[C#] Example 2: Set the default implementation of the JpegImageConverter class**
- {{region cs-troubleshooting_pdfprocessing_1}}
+#### **Example 2: Set the default implementation of the JpegImageConverter class**
+ ```csharp
Telerik.Windows.Documents.Extensibility.JpegImageConverterBase defaultJpegImageConverter = new Telerik.Documents.ImageUtils.JpegImageConverter();
Telerik.Windows.Documents.Extensibility.FixedExtensibilityManager.JpegImageConverter = defaultJpegImageConverter;
- {{endregion}}
+ ```
-#### **[C#] Example 3: Create a custom implementation inheriting the JpegImageConverterBase abstract class**
- {{region cs-troubleshooting_pdfprocessing_2}}
+#### **Example 3: Create a custom implementation inheriting the JpegImageConverterBase abstract class**
+ ```csharp
internal class CustomJpegImageConverter : Telerik.Windows.Documents.Extensibility.JpegImageConverterBase
{
@@ -61,7 +61,7 @@ In order to successfully export images different than **Jpeg** and **Jpeg2000**
return false;
}
}
- {{endregion}}
+ ```
You can read more about the [requirements]({%slug radpdfprocessing-cross-platform-images%}#requirements) and implementation in the [PdfProcessing Cross-Platform Images]({%slug radpdfprocessing-cross-platform-images%}) article.