System.Web.UI.WebControls Namespace Calendar Class
Sets or retrieves how the month name is formatted in the title bar.
[ VB ]
Public Property TitleFormat As TitleFormat
[ C# ]
public TitleFormat TitleFormat {get; set;}
[ C++ ]
public: __property TitleFormat get_TitleFormat ( );
public: __property void set_TitleFormat ( TitleFormat );
[ JScript ]
public function get TitleFormat ( ) : TitleFormat;
public function set TitleFormat ( TitleFormat );
One of the TitleFormat values. The default is Month.
When programming this property is set using the TitleFormat enumeration.
The following example demonstrates how to set the TitleFormat to display the month and year in the title block.
<asp:Calendar id = "myCalendar" runat = "server"
TitleFormat = "MonthYear" />
Calendar Members