ThisComponent Statement
속성을 읽고 설정할 수 있도록 활성 구성 요소를 지정합니다. ThisComponent는 문서 Basic에서 사용되며 Basic이 속한 문서를 나타냅니다. ThisComponent에서 액세스할 수 있는 개체 유형은 문서 유형에 따라 달라집니다.
구문:
ThisComponent
예:
Sub Main
REM updates the "Table of Contents" in a text doc
Dim allindexes, index As Object
allindexes = ThisComponent.getDocumentIndexes()
index = allindexes.getByName("Table of Contents1")
REM use the default name for Table of Contents and a 1
index.update()
End Sub