Calendar::NextPrevFormat Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the format of the next and previous month navigation elements in the title section of the Calendar control.

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

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

Property Value

Type: System.Web.UI.WebControls::NextPrevFormat

One of the NextPrevFormat values. The default value is CustomText.

Exception Condition
ArgumentOutOfRangeException

The specified format is not one of the NextPrevFormat values.

Use the NextPrevFormat property to specify the format for the next and previous month navigation elements on the Calendar control. This property is set with one of the NextPrevFormat enumeration values. You can specify whether the text for the navigation controls is displayed as the full month name, the short (abbreviated) month name, or custom text.

To specify custom navigation text, set this property to NextPrevFormat.CustomText and set the NextMonthText and PrevMonthText properties to the custom text.

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

The following code example demonstrates how to use the NextPrevFormat property to specify the short month format for the navigation controls.

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: