Factory.HasVstoObject Method (ListObject)
Returns a value that indicates whether a Microsoft.Office.Tools.Excel.ListObject exists for the specified native list object.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Syntax
'Declaration
Function HasVstoObject ( _
listObject As ListObject _
) As Boolean
bool HasVstoObject(
ListObject listObject
)
Parameters
- listObject
Type: Microsoft.Office.Interop.Excel.ListObject
The native Excel list object to test.
Return Value
Type: System.Boolean
true if a Microsoft.Office.Tools.Excel.ListObject exists for the specified Microsoft.Office.Interop.Excel.ListObject object; otherwise, false.
Remarks
In a document-level customization, this method returns true only if the native list object is the underlying object of a Microsoft.Office.Tools.Excel.ListObject object in the current customization. Otherwise, this method returns false. For more information, see Getting Extended Objects from Native Office Objects in Document-Level Customizations.
.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.