NamedRange::InnerObject Property

 

Gets a Microsoft.Office.Interop.Excel::Range that represents the underlying native object for the Microsoft.Office.Tools.Excel::NamedRange.

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

property Range^ InnerObject {
	Range^ get();
}

Property Value

Type: Microsoft.Office.Interop.Excel::Range^

A Microsoft.Office.Interop.Excel::Range that represents the underlying native object for the Microsoft.Office.Tools.Excel::NamedRange.

You can use the InnerObject property to access the underlying Microsoft.Office.Interop.Excel::Range for the NamedRange and pass it to a method or property that expects a Microsoft.Office.Interop.Excel::Range passed as a Microsoft.Office.Interop.Excel::Range. For more information, see Programmatic Limitations of Host Items and Host Controls.

The following code example starts a series of day names and then creates a NamedRange to contain the series. It then uses the AutoFill method to complete the series. AutoFill requires a Microsoft.Office.Interop.Excel::Range as a parameter.

This example is for a document-level customization.

No code example is currently available or this language may not be supported.
Return to top
Show: