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


name
Style (NamedStyle object) to find

Glossary Item Box

Searches the collection for a NamedStyle with the specified name.

Syntax

Visual Basic (Declaration) 
Public Function Find( _
   ByVal name As String _
) As NamedStyle
Visual Basic (Usage)Copy Code
Dim instance As DefaultStyleCollection
Dim name As String
Dim value As NamedStyle
 
value = instance.Find(name)
C# 
public NamedStyle Find( 
   string name
)

Parameters

name
Style (NamedStyle object) to find

Return Value

NamedStyle object in the collection with the specified name, or null if no NamedStyle is found

Example

C#Copy Code
FarPoint.Web.Spread.DefaultStyleCollection dsc = new FarPoint.Web.Spread.DefaultStyleCollection();
dsc.Find("DataAreaDefault").BackColor = Color.Yellow;
Visual BasicCopy Code
Dim dsc As New FarPoint.Web.Spread.DefaultStyleCollection
dsc.Find("DataAreaDefault").BackColor = Color.Yellow

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.