Partager via


XmlMappedRange.Worksheet Property

Definition

Gets a Worksheet that represents the worksheet containing the XmlMappedRange control.

public:
 property Microsoft::Office::Interop::Excel::Worksheet ^ Worksheet { Microsoft::Office::Interop::Excel::Worksheet ^ get(); };
public Microsoft.Office.Interop.Excel.Worksheet Worksheet { get; }
member this.Worksheet : Microsoft.Office.Interop.Excel.Worksheet
Public ReadOnly Property Worksheet As Worksheet

Property Value

A Worksheet that represents the worksheet containing the XmlMappedRange control.

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 void DisplayWorksheetName()
{
    MessageBox.Show("The XmlMappedRange is on worksheet " +
        this.CustomerLastNameCell.Worksheet.Name);
}
Private Sub DisplayWorksheetName()
    MsgBox("The XmlMappedRange is on worksheet " & _
        Me.CustomerLastNameCell.Worksheet.Name)
End Sub

Remarks

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

Applies to