WorksheetBase.Name Özellik
Alır veya çalışma sayfasının adını ayarlar.
Ad alanı: Microsoft.Office.Tools.Excel
Derleme: Microsoft.Office.Tools.Excel.v4.0.Utilities (Microsoft.Office.Tools.Excel.v4.0.Utilities.dll içinde)
Sözdizimi
'Bildirim
Public Property Name As String
Get
Set
public string Name { get; set; }
Özellik Değeri
Tür: System.String
Çalışma sayfasının adı.
Açıklamalar
Aşağıdaki kod örneği MailEnvelope atamak için özellik Name bir e-posta üstbilgisi için Tanıtımı için çalışmaçalışma.
Bu örnek, bir belge düzeyinde özelleştirme için bulunur.
Private Sub SetMailEnvelopeIntro()
Me.MailEnvelope.Introduction = _
"This is worksheet " & Me.Name
MsgBox("The MailEnvelope introduction is: " & _
Me.MailEnvelope.Introduction)
End Sub
private void SetMailEnvelopeIntro()
{
this.MailEnvelope.Introduction = "This is worksheet " + this.Name;
MessageBox.Show("The MailEnvelope introduction is: " +
this.MailEnvelope.Introduction);
}
.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.