Skip to content

Commit 2030140

Browse files
authored
Merge pull request #1534 from syncfusion-content/910841_hotfix
UG documentation on disabling the Undo/redo operation in WPF PDFViewer
2 parents a09ffc3 + 198a59d commit 2030140

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

wpf-toc.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,6 +1535,7 @@
15351535
<li><a href="/wpf/Pdf-Viewer/toggling-visibility-of-the-scroll-bar">Toggle visibility of the scroll bar</a></li>
15361536
<li><a href="/wpf/Pdf-Viewer/acquiring-current-page-being-displayed">Acquire current page being displayed</a></li>
15371537
<li><a href="/wpf/Pdf-Viewer/enabling-and-disabling-notification-bar">Enable and Disable Notification bar</a></li>
1538+
<li><a href="/wpf/Pdf-Viewer/how-to/Disable-the-Undo-Redo-operation">Disable the Undo Redo operation</a></li>
15381539
</ul>
15391540
</li>
15401541
</ul>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
layout: post
3+
title: Disable the Undo Redo operation in PdfViewer | Syncfusion
4+
description: Learn about how to Disable the Undo Redo operation in Syncfusion WPF Pdf Viewer control using UndoRedoSettings.
5+
platform: wpf
6+
control: PDF Viewer
7+
documentation: ug
8+
---
9+
10+
# Disable the Undo Redo operation
11+
12+
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:
13+
14+
{% tabs %}
15+
{% highlight C# %}
16+
17+
//Initialize PDF Viewer.
18+
PdfViewerControl pdfViewer = new PdfViewerControl();
19+
//Set Limit property as zero
20+
pdfViewer.UndoRedoSettings.Limit = 0;
21+
//Load the PDF.
22+
pdfViewer.Load("Sample.pdf");
23+
24+
25+
{% endhighlight %}
26+
27+
28+
29+
{% highlight vbnet %}
30+
31+
'Initialize PDF Viewer.
32+
Private pdfViewer As New PdfViewerControl()
33+
'Set Limit property as zero
34+
pdfViewer.UndoRedoSettings.Limit = 0
35+
'Load the PDF.
36+
pdfViewer.Load("Sample.pdf")
37+
38+
39+
{% endhighlight %}
40+
{% endtabs %}

0 commit comments

Comments
 (0)