Version

WeekNumbersVisible Property (UltraMonthViewMultiBase)

Determines whether week numbers are displayed in the pre-week area.
Syntax
'Declaration
 
Public Property WeekNumbersVisible As Boolean
public bool WeekNumbersVisible {get; set;}
Remarks

The pre-week area is the area immediately to the left of the Infragistics.Win.UltraWinSchedule.MonthViewMulti.WeekUIElement where week numbers will be displayed if the WeekNumbersVisible is set to true.

The pre-week area will not be displayed if AllowWeekSelection and WeekNumbersVisible are both false.

Example
This example configures the control to display week numbers if there is more than one month being displayed by the control.

Private Sub SetupWeekNumberDisplay()

    '	Get the number of months currently being displayed by the control
    Dim visibleMonths As Integer = Me.ultraMonthViewMulti1.VisibleMonths.Count

    '	If the number of visible months is > 1, display week numbers
    If (visibleMonths > 1) Then
        Me.ultraMonthViewMulti1.WeekNumbersVisible = True
    Else
        Me.ultraMonthViewMulti1.WeekNumbersVisible = False
    End If

End Sub
private void SetupWeekNumberDisplay()
{

	//	Get the number of months currently being displayed by the control
	int visibleMonths = this.ultraMonthViewMulti1.VisibleMonths.Count;

	//	If the number of visible months is > 1, display week numbers
	if ( visibleMonths > 1 )
		this.ultraMonthViewMulti1.WeekNumbersVisible = true;
	else
		this.ultraMonthViewMulti1.WeekNumbersVisible = false;

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also