Version

ToReference() Method

Convert this instance's value to a IExcelCalcReference.
Syntax
'Declaration
 
Public Function ToReference() As IExcelCalcReference
public IExcelCalcReference ToReference()

Return Value

If this instance contains a object that implements the IExcelCalcReference interface, this method returns the object instance, else an error reference is returned.
Remarks

The instance value's underlying data type must be reference to return a reference, else an error reference is returned.

If there is no meaningful conversion to a reference, this method will throw an InvalidCastException

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also