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