dbicDate Send comments on this topic.
IndexOf Method
See Also 
dbicDate Assembly > Dbi.WinControl.Date Namespace > dbiDaysWeekendCollection Class : IndexOf Method

item
The day of the week used to retieve the index value.
Gets the index of a specific day of the week in the collection.

Syntax

Visual Basic (Declaration) 
Public Function IndexOf( _
   ByVal item As DayOfWeek _
) As Integer
C# 
public int IndexOf( 
   DayOfWeek item
)

Parameters

item
The day of the week used to retieve the index value.

Return Value

This method returns a value of type Integer, indicating the zero-based index of the day of the week in the collection.  If the specified day of the week has not been added to the collection, a value of -1 is returned.

Requirements

Target Platforms: Current Windows operating system with .NET 8.

See Also