# DocumentViewerSettings.IsSelectionActivated Property

> Specifies whether the selection feature is active or not.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl.Web.MVC.DocumentViewer`
- **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 > DocumentViewerSettings.IsSelectionActivated Property
- **376 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/documentviewersettings/isselectionactivated-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/documentviewersettings/isselectionactivated-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/documentviewersettings/isselectionactivated-property/llms-full.txt

---

### Description

Specifies whether the selection feature is active or not.

### Syntax

```csharp
public bool IsSelectionActivated { get; set; }
```

```vbnet
Public Property IsSelectionActivated As Boolean
```

### Examples

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

```csharp
documentViewerSettings.IsSelectionActivated = true;
if (documentViewerSettings.IsSelectionActivated)
{
    Console.WriteLine("Is Selection Activated is enabled for Document Viewer Settings.");
}
```

```vbnet
documentViewerSettings.IsSelectionActivated = True
If documentViewerSettings.IsSelectionActivated Then
    Console.WriteLine("Is Selection Activated is enabled for Document Viewer Settings.")
End If
```

---

## Nearby

- **Previous:** [DocumentViewerSettings.FormattingPrinter Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/documentviewersettings/formattingprinter-property/llms-full.txt)
- **Next:** [DocumentViewerSettings.RenderMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/documentviewersettings/rendermode-property/llms-full.txt)
