Aracılığıyla paylaş


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
    Get
    Set
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ği Style özelliği geçerli stilin 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

Ayrıca bkz.

Başvuru

XmlMappedRange Arabirim

Microsoft.Office.Tools.Excel Ad Alanı