## XpsDocument.SelectActiveDocument method

Selects an active document for editing.

```csharp
public void SelectActiveDocument(int documentNumber)
```

| Parameter | Type | Description |
| --- | --- | --- |
| documentNumber | Int32 | A document number. |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentException | Thrown when *documentNumber* is out of bounds. |

### See Also

* class [XpsDocument](../)
* namespace [Aspose.Page.XPS](../../xpsdocument/)
* assembly [Aspose.Page](../../../)


