Spread for ASP.NET 7.0 Product Documentation
Contains Method
See Also  Example Support Options
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 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.