Calendar::TitleFormat Property

 

Gets or sets the format for the title section.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
property TitleFormat TitleFormat {
	TitleFormat get();
	void set(TitleFormat value);
}

Property Value

Type: System.Web.UI.WebControls::TitleFormat

One of the TitleFormat values. The default value is MonthYear.

Exception Condition
ArgumentOutOfRangeException

The specified title format is not one of the TitleFormat values.

Use the TitleFormat property to specify the format for the title section. This property is set with one of the TitleFormat enumeration values. You can specify whether the title is displayed as the month or both the month and the year.

This property applies only if the ShowTitle property is set to true.

The following code example demonstrates how to use the TitleFormat property to display the month and year in the title section.

No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: