findLabel
Get project file label
Syntax
Description
gets the specified label, in the specified category, from the specified files. The
function returns the label object and the attached data. Use this syntax when you
know the label name and category. If the label is not found,
label
= findLabel(files
,categoryName
,labelName
)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(files
,labelDefinition
)labelDefinition
using a
Labels
property, for instance by using an expression like
category.LabelDefintions(1)
.
gets the label definition that you can use to find files with the label. Use this
syntax if you created a category object using the
labelDefintion
= findLabel(category
,labels
)createCategory
or the findCategory
functions.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2019aSee Also
currentProject
| openProject
| findFiles
| createLabel
| addLabel