Aracılığıyla paylaş


XmlMappedRange.Comment Özellik

Alır bir Comment sol üst köşesindeki hücre ile ilgili yorum temsil eden XmlMappedRange denetim.

Ad alanı:  Microsoft.Office.Tools.Excel
Derleme:  Microsoft.Office.Tools.Excel (Microsoft.Office.Tools.Excel.dll içinde)

Sözdizimi

'Bildirim
ReadOnly Property Comment As Comment
Comment Comment { get; }

Özellik Değeri

Tür: Microsoft.Office.Interop.Excel.Comment
A Comment sol üst köşesindeki hücre ile ilgili yorum temsil eden XmlMappedRange denetim.

Örnekler

Aşağıdaki kod örneğinde AddComment yöntemi için bir açıklama eklemek için bir XmlMappedRangeve 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

Ayrıca bkz.

Başvuru

XmlMappedRange Arabirim

Microsoft.Office.Tools.Excel Ad Alanı