FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > DefaultStyleCollection クラス : IndexOf メソッド |
'Declaration Public Function IndexOf( _ ByVal style As NamedStyle _ ) As Integer
'使用法 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