This version of Unity is unsupported.

VisualElement.ClassListContains

Declaration

public bool ClassListContains(string cls);

Parameters

cls The name of the class for the search query.

Returns

bool Returns true if the class is part of the list. Otherwise, returns false.

Description

Searches for a class in the class list of this element.