Intersoft ClientUI Documentation
WeekNumberRule Property
See Also  Send Feedback
Intersoft.Client.UI.Aqua.UXInput Namespace > UXCalendar Class : WeekNumberRule Property






Gets or sets week rule that determines the week number of calendar.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property WeekNumberRule As CalendarWeekRule
Visual Basic (Usage)Copy Code
Dim instance As UXCalendar
Dim value As CalendarWeekRule
 
instance.WeekNumberRule = value
 
value = instance.WeekNumberRule
C# 
[CategoryAttribute("Common Properties")]
public CalendarWeekRule WeekNumberRule {get; set;}
Delphi 
public read-write property WeekNumberRule: CalendarWeekRule; 
JScript 
CategoryAttribute("Common Properties")
public function get,set WeekNumberRule : CalendarWeekRule
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property CalendarWeekRule get_WeekNumberRule();
public: __property void set_WeekNumberRule( 
   CalendarWeekRule value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property CalendarWeekRule WeekNumberRule {
   CalendarWeekRule get();
   void set (    CalendarWeekRule value);
}

Remarks

The calculation of week number is determined with FirstDayOfWeek and WeekNumberRule property. The combination of these two properties will affect the week number value of each week in UXCalendar.

The following example shows how to customize the week number behavior.

XAML Copy Code
<Intersoft:UXCalendar x:Name="UXCalendar1" DisplayDate="12/1/2010" WeekNumberRule="FirstFullWeek" FirstDayOfWeek="Monday"/>

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.