設定或傳回能判斷控制項是否在日曆標頭中顯示星期幾的值。功能同 Web Form Calendar.ShowDayHeader 屬性。預設值是 true。
public bool ShowDayHeader {
get,
set
}
範例
下列範例示範如何使用 ShowDayHeader 屬性顯示日期標頭。
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Use the following code to shut off the day header.
calendar1.ShowDayHeader = True
calendar1.VisibleDate = DateTime.Parse("6/5/2001")
End Sub
[C#]
protected void Page_Load(Object sender, EventArgs e)
{
// Use the following code to shut off the day header.
calendar1.ShowDayHeader = true;
calendar1.VisibleDate = DateTime.Parse("6/5/2001");
}
請參閱
套用至:Calendar 類別