FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > DefaultStyleCollection Class : IndexOf Method |
'Declaration Public Function IndexOf( _ ByVal style As NamedStyle _ ) As Integer
'Usage Dim instance As DefaultStyleCollection Dim style As NamedStyle Dim value As Integer value = instance.IndexOf(style)
public int IndexOf( NamedStyle style )
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)); }
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
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10