XmlMappedRange.InnerObject Property (2007 System)
Gets a Range that represents the underlying native object for the XmlMappedRange.
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 InnerObject As Range
'Usage
Dim instance As XmlMappedRange
Dim value As Range
value = instance.InnerObject
[BrowsableAttribute(false)]
public Range InnerObject { get; }
[BrowsableAttribute(false)]
public:
property Range^ InnerObject {
Range^ get ();
}
public function get InnerObject () : Range
Property Value
Type: Range
A Range that represents the underlying native object for the XmlMappedRange.
Remarks
You can use the InnerObject property to access the underlying Range for the XmlMappedRange and pass it to a method or property that expects a Range passed as a Range. For more information, see Programmatic Limitations of Host Items and Host Controls.
If the ExcelLocale1033Attribute attribute is set to false, methods and properties in Excel that expect a Range passed as an Object will throw an InvalidCastException if you pass in an XmlMappedRange. In this case, you can use the InnerObject property to pass the underlying native object to these methods and properties.
The InnerObject property returns a Range that passes the locale ID (LCID) 1033 (English, United States) to Microsoft Office Excel for all locale-sensitive calls to the Excel object model if the ExcelLocale1033Attribute attribute is set to true. To get a Range that passes the locale ID (LCID) of the current thread to Microsoft Office Excel, use the static Unwrap method of the ExcelLocale1033Proxy class. For more information about localization issues in Excel, see Formatting Data in Excel with Various Regional Settings.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Office.Tools.Excel Namespace