Skip to content

Commit 296f3b8

Browse files
871183
1 parent 3734c70 commit 296f3b8

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

wpf/Pdf-Viewer/How-To/Unload-the-document.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ documentation: ug
99

1010
# Unload the document in Pdf Viewer
1111

12-
PDF Viewer allows you to unload the document with the [Unload](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_Unload) method of the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) and [PdfDocumentView](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfDocumentView.html) classes.The Unload method is used only for unloading the document. The following code sample illustrates the same.
12+
PDF Viewer allows you to unload the PDF document with the [Unload](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_Unload) method of the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) and [PdfDocumentView](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfDocumentView.html) classes.The Unload method is used only for unloading the document. The following code sample illustrates the same.
1313

1414
{% tabs %}
1515
{% highlight c# %}
1616

1717
private void button1_Click(object sender, RoutedEventArgs e)
1818
{
19-
//Unload the document
19+
//Unload the PDF document
2020
pdfviewer.Unload();
2121
}
2222

2323
{% endhighlight %}
2424
{% highlight VB %}
2525

2626
Private Sub button1_Click(sender As Object, e As RoutedEventArgs)
27-
'Unload the document
27+
'Unload the PDF document
2828
pdfviewer.Unload()
2929
End Sub
3030

@@ -38,21 +38,20 @@ The [Unload(Boolean)](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfV
3838

3939
private void button1_Click(object sender, RoutedEventArgs e)
4040
{
41-
//Unload the document
41+
//Unload the PDF document
4242
pdfviewer.Unload(true);
4343
}
4444

4545
{% endhighlight %}
4646
{% highlight VB %}
4747

4848
Private Sub button1_Click(sender As Object, e As RoutedEventArgs)
49-
'Unload the document
49+
'Unload the PDF document
5050
pdfviewer.Unload(true)
5151
End Sub
5252

5353
{% endhighlight %}
5454
{% endtabs %}
5555

56-
N>* In PdfViewerControl, it is recommended not to manually unload the document externally.
57-
N>* The control internally handles the document unloading process.
56+
N>* In PdfViewerControl, it is recommended not to unload the PDF document externally when loading a new PDF document, as the control internally handles the unloading process.
5857

0 commit comments

Comments
 (0)