XmlMappedRange.AddComment Yöntem
Bir açıklama ekler XmlMappedRange denetim.
Ad alanı: Microsoft.Office.Tools.Excel
Derleme: Microsoft.Office.Tools.Excel (Microsoft.Office.Tools.Excel.dll içinde)
Sözdizimi
'Bildirim
Function AddComment ( _
Text As Object _
) As Comment
Comment AddComment(
Object Text
)
Parametreler
- Text
Tür: System.Object
Açıklama metni.
Dönüş Değeri
Tür: Microsoft.Office.Interop.Excel.Comment
İçin eklenmiş yorum XmlMappedRange denetim.
Notlar
İsteğe bağlı parametreler
İsteğe bağlı parametreler hakkında daha fazla bilgi için bkz: Office Çözümlerinde İsteğe Bağlı Parametreler.
Örnekler
Aşağıdaki kod örneğinde AddComment yöntemi için bir açıklama eklemek için bir XmlMappedRange adlı CustomerLastNameCellve Comment açýklama metnini değiştirmek için özellik.Bu kod örneği, geçerli çalışma sayfasının içerdiğini varsayar bir XmlMappedRange adlı CustomerLastNameCell.
Private Sub AddComment()
Me.CustomerLastNameCell.AddComment("Text to be replaced.")
Me.CustomerLastNameCell.Comment.Text( _
"This range contains customer last names.")
End Sub
private void AddComment()
{
this.CustomerLastNameCell.AddComment("Text to be replaced.");
this.CustomerLastNameCell.Comment.Text(
"This range contains customer last names.",
missing, missing);
}
.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üvenilen kod kitaplıklarını kullanma.