TX Text Control .NET for Windows Forms

IsSynchronized Property

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

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 comments in the current document by using CommentCollection.issynchronized.

CommentCollection commentCollection = textControl.Comments;
textControl.Text = "Payment is due within 30 days.";
textControl.Select(0, textControl.Text.Length);
commentCollection.Add(new CommentedText("Verify the payment term."));

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

Limitations

Read only.