FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > DefaultStyleCollection クラス : Contains メソッド |
'Declaration Public Function Contains( _ ByVal style As NamedStyle _ ) As Boolean
'使用法 Dim instance As DefaultStyleCollection Dim style As NamedStyle Dim value As Boolean value = instance.Contains(style)
public bool Contains( NamedStyle style )
FarPoint.Win.Spread.DefaultStyleCollection dsc = new FarPoint.Win.Spread.DefaultStyleCollection(); bool b; foreach(FarPoint.Win.Spread.NamedStyle style in FarPoint.Win.Spread.DefaultStyleCollection.Styles) { listBox1.Items.Add(style.Name); listBox1.SetSelected(0, true); b = dsc.Contains(dsc.Find(listBox1.SelectedItem.ToString())); listBox1.Items.Add(b.ToString()); }
Dim dsc As New FarPoint.Win.Spread.DefaultStyleCollection() Dim style As FarPoint.Win.Spread.NamedStyle Dim b As Boolean For Each style In dsc.Styles ListBox1.Items.Add(style.Name) ListBox1.SetSelected(0, True) b = dsc.Contains(dsc.Find(ListBox1.SelectedItem.ToString())) ListBox1.Items.Add(b.ToString()) Next