# Document Protection and User Permissions

> Know what protected documents in the WPF TextControl prevent and allow, assign UserNames from your sign-in and unlock files in code with MasterPassword.

- **Product:** TX Text Control .NET for WPF
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for WPF > Security > Document Protection and User Permissions
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/security/document-protection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/security/document-protection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/security/document-protection/llms-full.txt

---

## On This Page

- [How a Document Is Protected](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/security/document-protection/#how-a-document-is-protected)
- [What It Keeps From Happening](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/security/document-protection/#what-it-keeps-from-happening)
- [What It Leaves Open](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/security/document-protection/#what-it-leaves-open)
- [Set User Names From Your Sign-In](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/security/document-protection/#set-user-names-from-your-sign-in)
- [Unlock Protected Documents in Code](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/security/document-protection/#unlock-protected-documents-in-code)
- [Which Protection Fits](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/security/document-protection/#which-protection-fits)
- [Next Steps](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/security/document-protection/#next-steps)

---

## Nearby

- **Previous:** [Security Overview](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/security/overview/llms.txt)
- **Next:** [Handling Untrusted Documents](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/security/untrusted-documents/llms.txt)
