Edit

Bagikan melalui


MonthCalendar.RemoveAllBoldedDates Method

Definition

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