XmlMappedRange.Worksheet Property (2007 System)

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

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

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property Worksheet As Worksheet
'Usage
Dim instance As XmlMappedRange 
Dim value As Worksheet 

value = instance.Worksheet
[BrowsableAttribute(false)]
public Worksheet Worksheet { get; }
[BrowsableAttribute(false)]
public:
property Worksheet^ Worksheet {
    Worksheet^ get ();
}
public function get Worksheet () : Worksheet

Property Value

Type: Worksheet
A Worksheet that represents the worksheet containing the XmlMappedRange control.

Remarks

The worksheet is a native 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 Class

XmlMappedRange Members

Microsoft.Office.Tools.Excel Namespace