From 2db5a9559fc30423d1fe24fb59889666f9b62523 Mon Sep 17 00:00:00 2001 From: Yaminisrisf4389 Date: Thu, 24 Oct 2024 18:27:32 +0530 Subject: [PATCH] 910841_hotfix --- wpf-toc.html | 1 + .../How-To/Disable-the-Undo-Redo-operation.md | 40 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 wpf/PdfViewer/How-To/Disable-the-Undo-Redo-operation.md diff --git a/wpf-toc.html b/wpf-toc.html index 33f83f463..c63d6ac2b 100644 --- a/wpf-toc.html +++ b/wpf-toc.html @@ -1226,6 +1226,7 @@
  • Load PDF without ToolStrip in viewer
  • Disable toolbar items
  • Use Pdfium rendering engine
  • +
  • Disable the Undo Redo operation
  • diff --git a/wpf/PdfViewer/How-To/Disable-the-Undo-Redo-operation.md b/wpf/PdfViewer/How-To/Disable-the-Undo-Redo-operation.md new file mode 100644 index 000000000..28d30a6b0 --- /dev/null +++ b/wpf/PdfViewer/How-To/Disable-the-Undo-Redo-operation.md @@ -0,0 +1,40 @@ +--- +layout: post +title: Disable the Undo Redo operation in PdfViewer | Syncfusion +description: Learn about how to Disable the Undo Redo operation in Syncfusion WPF Pdf Viewer control using UndoRedoSettings. +platform: wpf +control: PDF Viewer +documentation: ug +--- + +# Disable the Undo Redo operation + +To disable the Undo Redo operation, set the Limit property of UndoRedoSettings to zero. By default, this value is set to 100. Reducing the value to zero will disable the Undo Redo functionality. The following code example demonstrates how to set the Limit value: + +{% tabs %} +{% highlight C# %} + +//Initialize PDF Viewer. +PdfViewerControl pdfViewer = new PdfViewerControl(); +//Set Limit property as zero +pdfViewer.UndoRedoSettings.Limit = 0; +//Load the PDF. +pdfViewer.Load("Sample.pdf"); + + +{% endhighlight %} + + + +{% highlight vbnet %} + +'Initialize PDF Viewer. +Private pdfViewer As New PdfViewerControl() +'Set Limit property as zero +pdfViewer.UndoRedoSettings.Limit = 0 +'Load the PDF. +pdfViewer.Load("Sample.pdf") + + +{% endhighlight %} +{% endtabs %} \ No newline at end of file