HasUnoInterfaces Function

ពិសោធន៍​បើ​វត្ថុ Basic Uno គាំទ្រ​ចំណុច​ប្រទាក់ Uno ពិត​ប្រាកដ ។

ត្រឡប់ ពិត ប្រសិន​បើ​ Uno interfaces​ទាំងអស់ បាន​ថ្លែង​ ត្រូវ​បាន​គាំទ្រ បើ​ពុំ​នោះ​​សោត​ត្រឡប់ មិន​ពិត ។

Syntax:

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

Return type:

Bool

Parameters:

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)


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