ThisComponent Statement
Addresses the active component so that its properties can be read and set. ThisComponent is used from document Basic, where it represents the document the Basic belongs to. The type of object accessed by ThisComponent depends on the document type.
ཚིག་སྦྱོར:
ThisComponent
དཔེར་བརྗོད:
Sub Main
ཨར་ཨི་ཨེམ་་ཚིག་ཡིག་ཌི་ཨོ་སི་ནང་"Table of Contents"དུས་མཐུན་བཟོཝ་ཨིན།
Dim allindexes, index As Object
allindexes = ThisComponent.getDocumentIndexes()
ཟུར་ཐོ་=་ཟུར་ཐོ་ཚུ་ཆ་མཉམ་ ལེན་མིང་གི་འབད("Table of Contents1")
ཨར་ཨི་ཨེམ་ ཐིག་ཁྲམ་གྱི་ནང་དོན་ཚུ་དང་ ཨེ་༡་དོན་ལུ་སྔོན་སྒྲིག་མིང་དེ་ལག་ལེན་འཐབ།
index.update()
End Sub