From The Document Foundation Wiki
Jump to navigation Jump to search

From this we can trace the Label property of the button and find loop through the layer to see if we find an object of the same name. Another option is to use the Tag property to store the name of the layer in question.