HasUnoInterfaces Function

གཞི་རིམ་ཡུ་ཨེན་ཨོ་དངོས་པོ་གིས་ངེས་ཅན་ཡུ་ཨེན་ཨོ་ངོས་འདྲ་བ་ཚུ་རྒྱབ་སྐྱོར་འབདཝ་་ཨིན་ན་བརྟག་ཞིབ་འབདཝ་ཨིན།

བདེན་པ་སླར་ལོགཔ་ཨིན་ ཡུ་ཨེན་ཨོ་ངོས་འདྲ་བ་ ཆ་མཉམ་རྒྱབ་སྐྱོར་འབད་ཡོད་པ་ཅིན་དང་ དེ་མེན་པ་ཅིན་རྫུན་མ་སླར་ལོགཔ་ཨིན།

Syntax:

འདུག་ཡུ་ཨེན་ཨོ་་ངོས་འདྲ་བ་ཚུ་( ཨོ་བརྟག་ཞིབ་ ཡུ་ཨེན་ཨོ་ངོས་འདྲ་བ་ མིང་ ༡ [, ཡུ་ཨེན་ཨོ་་ངོས་འདྲ་བ་མིང་ ༢ ...])

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

Please support us!