LibreOffice SymbolLibreOffice Symbol

Please support us!

HasUnoInterfaces Function

Comprueba si un oxetu Basic Unu almite ciertes interfaces Unu.

Devuelve True, si almítense toes les interfaces Unu indicaes, en casu contrariu devuélvese False.

Syntax:

HasUnoInterfaces( oTest, Nome-Interfaz-Unu 1 [, Nome-Interfaz-Unu 2, ...])

Return type:

Bool

Parameters:

Name

Type

Descripción

oTest

Object

the Basic Uno object that you want to test.

Uno-Interface-Name 1,
Uno-Interface-Name 2, ...

String

Uno interface name(s)


Example:


Sub HasInterface
    Dim bHas as Boolean
    Dim oSheet as Object
    oSheet = ThisComponent.Sheets(0) 
    bHas = HasUnoInterfaces( oSheet, "com.sun.star.beans.XIntrospection" )
    Print bHas ' = True
End Sub