Condividi tramite


Factory.HasVstoObject Method

Definition

Overloads

HasVstoObject(_Workbook)

Returns a value that indicates whether a Workbook host item exists for the specified Excel workbook object.

HasVstoObject(_Worksheet)

Returns a value that indicates whether a Worksheet host item exists for the specified Excel worksheet object.

HasVstoObject(ListObject)

Returns a value that indicates whether a ListObject exists for the specified native list object.

HasVstoObject(_Workbook)

Returns a value that indicates whether a Workbook host item exists for the specified Excel workbook object.

public:
 bool HasVstoObject(Microsoft::Office::Interop::Excel::_Workbook ^ workbook);
public bool HasVstoObject (Microsoft.Office.Interop.Excel._Workbook workbook);
abstract member HasVstoObject : Microsoft.Office.Interop.Excel._Workbook -> bool
Public Function HasVstoObject (workbook As _Workbook) As Boolean

Parameters

workbook
_Workbook

The native workbook object to test. Although this parameter is of type _Workbook, you typically pass a Workbook object to this method.

Returns

true if a Workbook host item exists for the specified Workbook object; otherwise, false.

Remarks

In a document-level customization, this method returns true only if the native workbook object is the underlying object of a Microsoft.Office.Tools.Excel.Workbook object in the current customization. Otherwise, this method returns false. For more information, see Programming Document-Level Customizations.

Applies to

HasVstoObject(_Worksheet)

Returns a value that indicates whether a Worksheet host item exists for the specified Excel worksheet object.

public:
 bool HasVstoObject(Microsoft::Office::Interop::Excel::_Worksheet ^ worksheet);
public bool HasVstoObject (Microsoft.Office.Interop.Excel._Worksheet worksheet);
abstract member HasVstoObject : Microsoft.Office.Interop.Excel._Worksheet -> bool
Public Function HasVstoObject (worksheet As _Worksheet) As Boolean

Parameters

worksheet
_Worksheet

The native worksheet object to test. Although this parameter is of type _Worksheet, you typically pass a Worksheet object to this method.

Returns

true if a Worksheet host item exists for the specified Worksheet object; otherwise, false.

Remarks

In a document-level customization, this method returns true only if the native worksheet object is the underlying object of a Microsoft.Office.Tools.Excel.Worksheet object in the current customization. Otherwise, this method returns false. For more information, see Programming Document-Level Customizations.

Applies to

HasVstoObject(ListObject)

Returns a value that indicates whether a ListObject exists for the specified native list object.

public:
 bool HasVstoObject(Microsoft::Office::Interop::Excel::ListObject ^ listObject);
public bool HasVstoObject (Microsoft.Office.Interop.Excel.ListObject listObject);
abstract member HasVstoObject : Microsoft.Office.Interop.Excel.ListObject -> bool
Public Function HasVstoObject (listObject As ListObject) As Boolean

Parameters

listObject
ListObject

The native Excel list object to test.

Returns

true if a ListObject exists for the specified 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 Programming Document-Level Customizations.

Applies to