asp.net.ph

Calendar.TitleFormat Property

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 );

Property Value

One of the TitleFormat values. The default is Month.

Exceptions


Exception Type Condition
ArgumentException Occurs when the specified value is not one of the TitleFormat values.

Remarks

When programming this property is set using the TitleFormat enumeration.

Example

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" />
See Also

Calendar Members Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note