HasUnoInterfaces Function

Tests if a Basic Uno object supports certain Uno interfaces.

ይመልሳል እውነት ከሆነ ሁሉም የ ተገለጸው Uno interfaces የ ተደገፈ ከሆነ: ያለ በለዚያ ሀሰት ይመልሳል

አገባብ:

HasUnoInterfaces( oTest, Uno-Interface-Name 1 [, Uno-Interface-Name 2, ...])

Return type:

Bool

ደንቦች:

Name

Type

Description

oTest

Object

the Basic Uno object that you want to test.

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

String

Uno interface name(s)


ለምሳሌ:


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

Please support us!