Spread for ASP.NET 11 Product Documentation
SyncRoot Property (DefaultStyleCollection)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > DefaultStyleCollection Class : SyncRoot Property
Gets a NamedStyleCollection object that can be used to synchronize access to the collection.
Syntax
'Declaration
 
Public ReadOnly Property SyncRoot As DefaultStyleCollection
'Usage
 
Dim instance As DefaultStyleCollection
Dim value As DefaultStyleCollection
 
value = instance.SyncRoot
public DefaultStyleCollection SyncRoot {get;}

Property Value

DefaultStyleCollection object containing the style collection
Remarks
This method gets a NamedStyleCollection object from the collection that can be used to synchronize access to the collection.
Example
FarPoint.Web.Spread.DefaultStyleCollection dsc = new FarPoint.Web.Spread.DefaultStyleCollection();
ListBox1.Items.Add(dsc.SyncRoot.ToString());
Dim dsc As New FarPoint.Web.Spread.DefaultStyleCollection()
ListBox1.Items.Add(dsc.SyncRoot.ToString())
See Also

Reference

DefaultStyleCollection Class
DefaultStyleCollection Members