FarPoint.Web.Spread Assembly > FarPoint.Web.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.Web.Spread.DefaultStyleCollection dsc = new FarPoint.Web.Spread.DefaultStyleCollection(); FarPoint.Web.Spread.NamedStyle ns = new FarPoint.Web.Spread.NamedStyle(); int i; int i; foreach(FarPoint.Web.Spread.NamedStyle ns in dsc) { i = dsc.IndexOf(ns); dsc[i].BackColor = Color.Yellow; }
Dim dsc As New FarPoint.Web.Spread.DefaultStyleCollection Dim ns As New FarPoint.Web.Spread.NamedStyle Dim i As Integer For Each ns In dsc.Styles i = dsc.IndexOf(ns) dsc.Item(i).BackColor = Color.Yellow Next
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6