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: Unity.AppUI.dll
Syntax
public sealed class Heading : LocalizedTextElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, INotifyValueChanged<string>, IContextOverrideElement, IAdditionalDataHolder
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 const string primaryUssClassName = "appui-heading--primary"
Field Value
Type | Description |
---|---|
string |
sizeUssClassName
The Heading size styling class.
Declaration
public const string sizeUssClassName = "appui-heading--size-"
Field Value
Type | Description |
---|---|
string |
ussClassName
The Heading main styling class.
Declaration
public const string ussClassName = "appui-heading"
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 |
Methods
GetSizeUssClassName(HeadingSize)
Declaration
public static string GetSizeUssClassName(HeadingSize enumValue)
Parameters
Type | Name | Description |
---|---|---|
HeadingSize | enumValue |
Returns
Type | Description |
---|---|
string |
Implements
UnityEngine.UIElements.INotifyValueChanged<T>