> For the complete documentation index, see [llms.txt](https://saveenr.gitbook.io/visiopowershell/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://saveenr.gitbook.io/visiopowershell/basics/context-sensitivity.md).

# Context-sensitivity

### Introduction

For most VisioPS cmdlets you never need to identify the target of the operation.

For example, the `Set-VisioText` cmdlet works against the selected shapes in the active document. If no shapes are selected, then nothing happens.

```
Set-VisioText -Text "Hello World"
```

The ability for cmdlets to target the appropriate objects based on context dramatically simplifies automating Visio with VisioPS.

### Overriding context sensitivity

Sometimes its more convenient to explicitly identify the targets of a cmdlet. Depending on the cmdlet, the following parameters will be available:

* `-Document`
* `-Page`
* `-Shape`
