From 198a59d339896a69c446241545c338bee8c6bdc4 Mon Sep 17 00:00:00 2001 From: Yaminisrisf4389 Date: Thu, 24 Oct 2024 18:59:56 +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/Pdf-Viewer/How-To/Disable-the-Undo-Redo-operation.md diff --git a/wpf-toc.html b/wpf-toc.html index 030554241..d46b39964 100644 --- a/wpf-toc.html +++ b/wpf-toc.html @@ -1535,6 +1535,7 @@
  • Toggle visibility of the scroll bar
  • Acquire current page being displayed
  • Enable and Disable Notification bar
  • +
  • Disable the Undo Redo operation
  • diff --git a/wpf/Pdf-Viewer/How-To/Disable-the-Undo-Redo-operation.md b/wpf/Pdf-Viewer/How-To/Disable-the-Undo-Redo-operation.md new file mode 100644 index 000000000..28d30a6b0 --- /dev/null +++ b/wpf/Pdf-Viewer/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