Version: 2019.4
LanguageEnglish
  • C#

VisualElementStyleSheetSet

struct in UnityEngine.UIElements

/

Implemented in:UnityEngine.UIElementsModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

This structure manipulates the set of StyleSheet objects attached to the owner VisualElement.

VisualElementStyleSheetSet instances cannot be created directly. Use the VisualElement.styleSheets property accessor to work with the style sheets of an element.

Properties

countNumber of style sheets attached to the owner element.
this[int]Accesses a StyleSheet at the specified index.

Public Methods

AddAdds a style sheet for the owner element.
ClearRemoves all style sheets for the owner element.
ContainsLooks for the specified StyleSheet
RemoveRemoves a style sheet for the owner element.