XmlMappedRange.ClearNotes Yöntem
Notlar ve ses notlarını temizler XmlMappedRange Denetim.
Ad alanı: Microsoft.Office.Tools.Excel
Derleme: Microsoft.Office.Tools.Excel (Microsoft.Office.Tools.Excel.dll içinde)
Sözdizimi
'Bildirim
Function ClearNotes As Object
Object ClearNotes()
Dönüş Değeri
Tür: System.Object
Örnekler
Aşağıdaki kod örneği NoteText nota ekleme yöntemi bir XmlMappedRange, ve Not kullanarak kaldırmak için kullanıcı ister ClearNotes yöntemi. Bu kod örneği, geçerli çalışma sayfasının içerdiğini varsayar bir XmlMappedRange adlı CustomerLastNameCell.
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
private void SetNote()
{
this.CustomerLastNameCell.NoteText("This cell contains customer " +
"last names.", missing, missing);
if (MessageBox.Show("Remove the note?", "Test",
MessageBoxButtons.YesNo) == DialogResult.Yes)
{
this.CustomerLastNameCell.ClearNotes();
}
}
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. kısmen güvenilir kod tarafından Kitaplıklar kullanma.