# SignatureDocument.NumPages Property

> Gets or sets the number of pages in the signed document.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl.Web.MVC.DocumentViewer.Models`
- **Package:** `TXTextControl.Web.DocumentViewer` (assembly `TXTextControl.Web.MVC.DocumentViewer.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.Web.DocumentViewer.Classic` (assembly `TXTextControl.Web.MVC.DocumentViewer.dll`, from nuget.org)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web.MVC.DocumentViewer.Models > SignatureDocument.NumPages Property
- **398 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer-models/signaturedocument/numpages-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer-models/signaturedocument/numpages-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer-models/signaturedocument/numpages-property/llms-full.txt

---

### Description

Gets or sets the number of pages in the signed document.

### Syntax

```csharp
public int NumPages { get; set; }
```

```vbnet
Public Property NumPages As Integer
```

### Examples

The following example configures `SignatureDocument.Document` and checks the resulting web document component setting before it is used.

```csharp
signatureDocument.Document = "Quarterly report";
if (!string.IsNullOrWhiteSpace(signatureDocument.Document))
{
    Console.WriteLine($"Document: {signatureDocument.Document}");
}
```

```vbnet
signatureDocument.Document = "Quarterly report"
If Not String.IsNullOrWhiteSpace(signatureDocument.Document) Then
    Console.WriteLine($"Document: {signatureDocument.Document}")
End If
```

---

## Nearby

- **Previous:** [SignatureDocument.Document Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer-models/signaturedocument/document-property/llms-full.txt)
- **Next:** [SignatureDocument.SignatureBoxMergeResults Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer-models/signaturedocument/signatureboxmergeresults-property/llms-full.txt)
