Spread ASP.NET 6.0 Product Documentation
Contains Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > DefaultStyleCollection Class : Contains Method


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

Glossary Item Box

Determines whether the collection contains the specified style.

Syntax

Visual Basic (Declaration) 
Public Function Contains( _
   ByVal style As NamedStyle _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As DefaultStyleCollection
Dim style As NamedStyle
Dim value As Boolean
 
value = instance.Contains(style)
C# 
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

C#Copy Code
FarPoint.Web.Spread.DefaultStyleCollection dsc = new FarPoint.Web.Spread.DefaultStyleCollection();
bool b;
b = dsc.Contains(dsc.DataAreaDefault);
TextBox1.Text = b.ToString();
Visual BasicCopy Code
Dim dsc As New FarPoint.Web.Spread.DefaultStyleCollection
Dim b As Boolean
b = dsc.Contains(dsc.DataAreaDefault)
TextBox1.Text = b.ToString()

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.