Spread for ASP.NET 11 Product Documentation
Contains Method (DefaultStyleCollection)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > DefaultStyleCollection Class : Contains Method
Style (NamedStyle object) for which to check in the collection
Determines whether the collection contains the specified style.
Syntax
'Declaration
 
Public Function Contains( _
   ByVal style As NamedStyle _
) As Boolean
'Usage
 
Dim instance As DefaultStyleCollection
Dim style As NamedStyle
Dim value As Boolean
 
value = instance.Contains(style)
public bool Contains( 
   NamedStyle style
)

Parameters

style
Style (NamedStyle object) for which to check in the collection

Return Value

true if the object is found in the collection; false otherwise
Remarks
Determines whether the collection contains the specified NamedStyle object.
Example
FarPoint.Web.Spread.DefaultStyleCollection dsc = new FarPoint.Web.Spread.DefaultStyleCollection();
bool b;
b = dsc.Contains(dsc.DataAreaDefault);
TextBox1.Text = b.ToString();
Dim dsc As New FarPoint.Web.Spread.DefaultStyleCollection
Dim b As Boolean
b = dsc.Contains(dsc.DataAreaDefault)
TextBox1.Text = b.ToString()
See Also

Reference

DefaultStyleCollection Class
DefaultStyleCollection Members