Dim caption As String = "Example: GetViewerNonFullScreenPageMode"
Dim gdpicturePDF As New GdPicturePDF()
Dim status As GdPictureStatus = gdpicturePDF.LoadFromFile("test.pdf", False)
If status = GdPictureStatus.OK Then
Dim oNonFullScreenPageMode As PdfViewerNonFullScreenPageMode = gdpicturePDF.GetViewerNonFullScreenPageMode()
status = gdpicturePDF.GetStat()
if status= GdPictureStatus.OK Then
Select Case oNonFullScreenPageMode
Case PdfViewerNonFullScreenPageMode.PdfViewerNonFullScreenPageModeUseNone
MessageBox.Show("Neither document outline nor thumbnail images are visible.", caption)
Case PdfViewerNonFullScreenPageMode.PdfViewerNonFullScreenPageModeUseOutlines
MessageBox.Show("Document outline is visible.", caption)
Case PdfViewerNonFullScreenPageMode.PdfViewerNonFullScreenPageModeUseThumbs
MessageBox.Show("Thumbnail images are visible.", caption)
Case PdfViewerNonFullScreenPageMode.PdfViewerNonFullScreenPageModeUseOC
MessageBox.Show("Optional content group panel is visible.", caption)
Case Else
MessageBox.Show("An invalid value has been returned.", caption)
End Select
Else
MessageBox.Show("The GetViewerNonFullScreenPageMode() method has failed with the status: " + status.ToString(), caption)
End If
Else
MessageBox.Show("The file can't be loaded.", caption)
End If
gdpicturePDF.Dispose()
string caption = "Example: GetViewerNonFullScreenPageMode";
GdPicturePDF gdpicturePDF = new GdPicturePDF();
GdPictureStatus status = gdpicturePDF.LoadFromFile("test.pdf", false);
if (status == GdPictureStatus.OK)
{
PdfViewerNonFullScreenPageMode oNonFullScreenPageMode = gdpicturePDF.GetViewerNonFullScreenPageMode();
status = gdpicturePDF.GetStat();
if (status == GdPictureStatus.OK)
{
switch (oNonFullScreenPageMode)
{
case PdfViewerNonFullScreenPageMode.PdfViewerNonFullScreenPageModeUseNone:
MessageBox.Show("Neither document outline nor thumbnail images are visible.", caption);
break;
case PdfViewerNonFullScreenPageMode.PdfViewerNonFullScreenPageModeUseOutlines:
MessageBox.Show("Document outline is visible.", caption);
break;
case PdfViewerNonFullScreenPageMode.PdfViewerNonFullScreenPageModeUseThumbs:
MessageBox.Show("Thumbnail images are visible.", caption);
break;
case PdfViewerNonFullScreenPageMode.PdfViewerNonFullScreenPageModeUseOC:
MessageBox.Show("Optional content group panel is visible.", caption);
break;
default:
MessageBox.Show("An invalid value has been returned.", caption);
break;
}
}
else
{
MessageBox.Show("The GetViewerNonFullScreenPageMode() method has failed with the status: " + status.ToString(), caption);
}
}
else
{
MessageBox.Show("The file can't be loaded.", caption);
}
gdpicturePDF.Dispose();