MonthCalendar.RemoveAllBoldedDates Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes all the nonrecurring bold dates.
public:
void RemoveAllBoldedDates();
public void RemoveAllBoldedDates ();
member this.RemoveAllBoldedDates : unit -> unit
Public Sub RemoveAllBoldedDates ()
Examples
The following code example demonstrates how to use the RemoveAllBoldedDates method.
private:
void button3_Click( Object^ /*sender*/, System::EventArgs^ /*e*/ )
{
monthCalendar1->RemoveAllBoldedDates();
monthCalendar1->UpdateBoldedDates();
listBox1->Items->Clear();
button3->Enabled = false;
}
private void button3_Click(object sender, System.EventArgs e)
{
monthCalendar1.RemoveAllBoldedDates();
monthCalendar1.UpdateBoldedDates();
listBox1.Items.Clear();
button3.Enabled = false ;
}
Private Sub button3_Click(ByVal sender As Object, ByVal e As System.EventArgs)
monthCalendar1.RemoveAllBoldedDates()
monthCalendar1.UpdateBoldedDates()
listBox1.Items.Clear()
button3.Enabled = False
End Sub
Remarks
This method clears the BoldedDates array. To remove a single date from the bold dates, use the RemoveBoldedDate method.
You must call the UpdateBoldedDates method to ensure that the display is updated to reflect the removal.
Applies to
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.