Returns the index of the specified NamedStyle object.
Syntax
Parameters
- style
- NamedStyle object for which to search
Return Value
Zero-based
Integer index of the object in the collection, or -1 if the object was not found
Example
This example illustrates the use of this member by returning the index of the specified NamedStyle.
C# | Copy Code |
---|
FarPoint.Win.Spread.DefaultStyleCollection dsc = new FarPoint.Win.Spread.DefaultStyleCollection();
foreach(FarPoint.Win.Spread.NamedStyle ns in FarPoint.Win.Spread.DefaultStyleCollection.Styles)
{
listBox1.Items.Add(dsc.IndexOf(ns));
} |
Visual Basic | Copy Code |
---|
Dim dsc As New FarPoint.Win.Spread.DefaultStyleCollection()
Dim ns As FarPoint.Win.Spread.NamedStyle
For Each ns In dsc.Styles
ListBox1.Items.Add(dsc.IndexOf(ns))
Next |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also