Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


VisualElementStyleSheetSet

This structure manipulates the set of StyleSheet objects attached to the owner VisualElement.
Read time 1 minuteLast updated 6 days ago

Definition

public struct VisualElementStyleSheetSet : IEquatable<VisualElementStyleSheetSet>

Remarks

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

Properties

Property

Description

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

Methods

Method

Description

AddAdds a style sheet for the owner element.
ClearRemoves all style sheets for the owner element.
ContainsLooks for the specified StyleSheet
EqualsCompares instances of the VisualElementStyleSheetSet struct for equality.
InsertAdds a style sheet for the owner element at a specified index
RemoveRemoves a style sheet for the owner element.

Operators

Operator

Description

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