Class Heading
Heading UI element.
Inheritance
Heading
Implements
INotifyValueChanged<string>
Inherited Members
TextElement.HandleEvent(EventBase)
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public sealed class Heading : LocalizedTextElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, INotifyValueChanged<string>, IContextOverrideElement
Constructors
Heading()
Default constructor.
Declaration
public Heading()
Heading(string)
Construct a Heading UI element with a provided text to display.
Declaration
public Heading(string text)
Parameters
Type | Name | Description |
---|---|---|
string | text | The text that will be displayed. |
Fields
primaryUssClassName
The Heading primary variant styling class.
Declaration
public static readonly string primaryUssClassName
Field Value
Type | Description |
---|---|
string |
sizeUssClassName
The Heading size styling class.
Declaration
public static readonly string sizeUssClassName
Field Value
Type | Description |
---|---|
string |
ussClassName
The Heading main styling class.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
string |
Properties
primary
The primary variant of the Heading.
Declaration
public bool primary { get; set; }
Property Value
Type | Description |
---|---|
bool |
size
The size of the Heading.
Declaration
public HeadingSize size { get; set; }
Property Value
Type | Description |
---|---|
HeadingSize |
Implements
UnityEngine.UIElements.INotifyValueChanged<T>