Returns the index of the specified NamedStyle object.
Syntax
Parameters
- style
- Style (NamedStyle object) for which to search
Return Value
Index of the object in the collection, or -1 if the object was not found
Remarks
Example
C# | Copy Code |
---|
FarPoint.Web.Spread.DefaultStyleCollection dsc = new FarPoint.Web.Spread.DefaultStyleCollection();
FarPoint.Web.Spread.NamedStyle ns = new FarPoint.Web.Spread.NamedStyle();
int i;
int i;
foreach(FarPoint.Web.Spread.NamedStyle ns in dsc)
{
i = dsc.IndexOf(ns);
dsc[i].BackColor = Color.Yellow;
}
|
Visual Basic | Copy Code |
---|
Dim dsc As New FarPoint.Web.Spread.DefaultStyleCollection
Dim ns As New FarPoint.Web.Spread.NamedStyle
Dim i As Integer
For Each ns In dsc.Styles
i = dsc.IndexOf(ns)
dsc.Item(i).BackColor = Color.Yellow
Next |
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