TX Text Control .NET Server

IsSynchronized Property

Property
Explicit
Implements System.Collections.ICollection explicitly: cast to the interface to use it.
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

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.

bool ICollection.IsSynchronized { get; }

Examples

The following example works with document targets in the current document by using DocumentTargetCollection.issynchronized.

textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
DocumentTargetCollection documentTargetCollection = textControl.DocumentTargets;
documentTargetCollection.Add(new DocumentTarget("CustomerDetails") { ID = 100 });

ICollection collection = documentTargetCollection;
var value = collection.IsSynchronized;

Limitations

Read only.