VisualElementStyleSheetSet

struct in UnityEngine.UIElements

/

Implemented in:UnityEngine.UIElementsModule

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.

Did you find this page useful? Please give it a rating: