TotalPages Property
- Namespace
TXTextControl.DocumentServer. Web
- Package
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline PackagesWeb. DocumentViewer. dll
Description
Gets the total number of pages the loaded document contains. Returns 0 if no document is loaded.
Syntax
public int TotalPages { get; set; }Public Property TotalPages As IntegerExamples
DocumentServer.Web.DocumentViewer.TotalPages belongs to the legacy Web Forms viewer. In the current ASP.NET Core viewer, configure the server-rendered component through DocumentViewerSettings.ShowThumbnailPane; interactive page state and styling are handled by the viewer client.
documentViewerSettings.ShowThumbnailPane = true;
if (documentViewerSettings.ShowThumbnailPane)
{
Console.WriteLine("Show Thumbnail Pane is enabled for Document Viewer Settings.");
}documentViewerSettings.ShowThumbnailPane = True
If documentViewerSettings.ShowThumbnailPane Then
Console.WriteLine("Show Thumbnail Pane is enabled for Document Viewer Settings.")
End IfLimitations
Read only.