Version: 1.3
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 can't be created directly. Use the VisualElement.styleSheets property accessor to work with the style sheets of an element.

Properties

count Number of style sheets attached to the owner element.
this[int] Reads the value at the specified index in the list of StyleSheet objects attached of the element

Public Methods

Add Adds a style sheet for the owner element.
Clear Removes all style sheets for the owner element.
Contains Looks for the specified StyleSheet
Equals Compares instances of the VisualElementStyleSheetSet struct for equality.
Remove Removes a style sheet for the owner element.

Operators

operator != Compares instances of the VisualElementStyleSheetSet struct for inequality.
operator == Compares instances of the VisualElementStyleSheetSet struct for equality.