XmlMappedRange.Style Özellik
Alır veya ayarlar bir Microsoft.Office.Interop.Excel.Style stilini 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
Property Style As Object
Object Style { get; set; }
Özellik Değeri
Tür: System.Object
A Microsoft.Office.Interop.Excel.Style stilini temsil eden XmlMappedRange denetim.
Örnekler
Aşağıdaki kod örneğinde Style özelliği geçerli stil adını görüntülemek için bir XmlMappedRange.Bu kod örneği, geçerli çalışma sayfasının içerdiğini varsayar bir XmlMappedRange adlı CustomerLastNameCell.
Private Sub DisplayStyle()
Dim style1 As Excel.Style = CType(Me.CustomerLastNameCell.Style, Excel.Style)
MsgBox("The current style of the XmlMappedRange is: " & style1.Name)
End Sub
private void DisplayStyle()
{
Excel.Style style1 = (Excel.Style)this.CustomerLastNameCell.Style;
MessageBox.Show("The current style of the XmlMappedRange is: " +
style1.Name);
}
.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.