Class MenuSection
A section inside a menu, with a heading.
Implements
Inherited Members
VisualElement.ExecuteDefaultAction(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 class MenuSection : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement
Constructors
MenuSection()
Default constructor.
Declaration
public MenuSection()
Fields
containerUssClassName
The MenuSection container styling class.
Declaration
public static readonly string containerUssClassName
Field Value
Type | Description |
---|---|
string |
titleUssClassName
The MenuSection title styling class.
Declaration
public static readonly string titleUssClassName
Field Value
Type | Description |
---|---|
string |
ussClassName
The MenuSection main styling class.
Declaration
public const string ussClassName = "appui-menusection"
Field Value
Type | Description |
---|---|
string |
Properties
contentContainer
The MenuSection container.
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
VisualElement |
Overrides
title
The text to display in the section heading.
Declaration
public string title { get; set; }
Property Value
Type | Description |
---|---|
string |