# TableOfContentsCollection.IsSynchronized Property

> Returns true if the collection is designed to be thread safe, otherwise, it returns false.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Explicit:** implements `System.Collections.ICollection` explicitly; cast to the interface to use it
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > TableOfContentsCollection.IsSynchronized Property
- **637 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableofcontentscollection/issynchronized-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableofcontentscollection/issynchronized-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableofcontentscollection/issynchronized-property/llms-full.txt

---

### Description

Returns true if the collection is designed to be thread safe, otherwise, it returns false.

### Syntax

The type implements this member of System.Collections.ICollection explicitly: code reaches it by casting to the interface, as in ((ICollection)value).IsSynchronized.

```csharp
bool ICollection.IsSynchronized { get; }
```

```vbnet
Private ReadOnly Property IsSynchronized As Boolean Implements ICollection.IsSynchronized
```

### Examples

The following example works with tables of contents in the current document by using `TableOfContentsCollection.issynchronized`.

```csharp
textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
TableOfContentsCollection tableOfContentsCollection = textControl.TablesOfContents;
tableOfContentsCollection.Add(new TableOfContents(1, 3) { Name = "Contents", ID = 100 });

ICollection collection = tableOfContentsCollection;
var value = collection.IsSynchronized;
```

```vbnet
textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim tableOfContentsCollection As TableOfContentsCollection = textControl.TablesOfContents
tableOfContentsCollection.Add(New TableOfContents(1, 3) With { .Name = "Contents", .ID = 100 })

Dim collection As ICollection = tableOfContentsCollection
Dim value = collection.IsSynchronized
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TableOfContentsCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableofcontentscollection/getitem-method/llms-full.txt)
- **Next:** [TableOfContentsCollection.Item Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableofcontentscollection/item-property/llms-full.txt)
