Share via


XmlMappedRange.Worksheet Property

Gets a Microsoft.Office.Interop.Excel.Worksheet that represents the worksheet containing the XmlMappedRange control.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

Syntax

'Declaration
ReadOnly Property Worksheet As Worksheet
    Get
Worksheet Worksheet { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Worksheet
A Microsoft.Office.Interop.Excel.Worksheet that represents the worksheet containing the XmlMappedRange control.

Remarks

The worksheet is a native Excel Microsoft.Office.Interop.Excel.Worksheet, not a Microsoft.Office.Tools.Excel.Worksheet host item.

Examples

The following code example uses the Worksheet property to display the name of a worksheet that contains an XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

Private Sub DisplayWorksheetName()
    MsgBox("The XmlMappedRange is on worksheet " & _
        Me.CustomerLastNameCell.Worksheet.Name)
End Sub
private void DisplayWorksheetName()
{
    MessageBox.Show("The XmlMappedRange is on worksheet " +
        this.CustomerLastNameCell.Worksheet.Name);
}

.NET Framework Security

See Also

Reference

XmlMappedRange Interface

Microsoft.Office.Tools.Excel Namespace