XmlMappedRange.ClearNotes 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.
Clears notes and sound notes from the XmlMappedRange control.
public:
System::Object ^ ClearNotes();
public object ClearNotes ();
abstract member ClearNotes : unit -> obj
Public Function ClearNotes () As Object
Returns
Examples
The following code example uses the NoteText method to add a note to an XmlMappedRange, and then prompts the user to remove the note by using the ClearNotes method. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell
.
private void SetNote()
{
this.CustomerLastNameCell.NoteText("This cell contains customer " +
"last names.");
if (MessageBox.Show("Remove the note?", "Test",
MessageBoxButtons.YesNo) == DialogResult.Yes)
{
this.CustomerLastNameCell.ClearNotes();
}
}
Private Sub SetNote()
Me.CustomerLastNameCell.NoteText("This cell contains customer " & _
"last names.")
If MessageBox.Show("Remove the note?", "Test", MessageBoxButtons.YesNo) = _
DialogResult.Yes Then
Me.CustomerLastNameCell.ClearNotes()
End If
End Sub