IsSynchronized Property
- Explicit
- Implements
System.explicitly: cast to the interface to use it.Collections. ICollection
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Private ReadOnly Property IsSynchronized As Boolean Implements ICollection.IsSynchronizedExamples
The following example works with tables of contents in the current document by using TableOfContentsCollection.issynchronized.
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;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.IsSynchronizedLimitations
Read only.