findLabel
Get project file label
Syntax
Description
gets the specified label label
= findLabel(file
,categoryName
,labelName
)labelName
, in the specified category
categoryName
, from the specified file
file
. The function returns the label definition and the
attached data. Use this syntax when you know the label name and category. If the
label is not found, findLabel
returns an empty array.
gets the label defined by the specified label definition object. Use this syntax if
you previously created a label
= findLabel(file
,labelDefinition
)labelDefinition
using a
Labels
property, for instance by using an expression like
myfile.Labels(1)
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2019a
See Also
currentProject
| openProject
| findFile
| createLabel
| addLabel