Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Returns a value that indicates whether a Microsoft.Office.Tools.Excel.Worksheet host item exists for the specified Excel worksheet object.
Namespace: Microsoft.Office.Tools.Excel
Assemblies: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
Syntax
'Declaration
Function HasVstoObject ( _
worksheet As _Worksheet _
) As Boolean
bool HasVstoObject(
_Worksheet worksheet
)
Parameters
worksheet
Type: _WorksheetThe native worksheet object to test. Although this parameter is of type _Worksheet, you typically pass a Worksheet object to this method.
Return Value
Type: System.Boolean
true if a Microsoft.Office.Tools.Excel.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.
.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.