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




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph