Spread for ASP.NET 10 Product Documentation
Find Method (DefaultStyleCollection)
Example 


Style (NamedStyle object) to find
Searches the collection for a NamedStyle with the specified name.
Syntax
'Declaration
 
Public Function Find( _
   ByVal name As String _
) As NamedStyle
'Usage
 
Dim instance As DefaultStyleCollection
Dim name As String
Dim value As NamedStyle
 
value = instance.Find(name)
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
FarPoint.Web.Spread.DefaultStyleCollection dsc = new FarPoint.Web.Spread.DefaultStyleCollection();
dsc.Find("DataAreaDefault").BackColor = Color.Yellow;
Dim dsc As New FarPoint.Web.Spread.DefaultStyleCollection
dsc.Find("DataAreaDefault").BackColor = Color.Yellow
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

DefaultStyleCollection Class
DefaultStyleCollection Members

 

 


Copyright © GrapeCity, inc. All rights reserved.