Class Divider
Divider UI element.
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: Unity.AppUI.dll
Syntax
public class Divider : BaseVisualElement, IEventHandler, IVisualElementScheduler, IExperimentalFeatures, ITransitionAnimations, ITransform, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder
Constructors
Divider()
Default constructor.
Declaration
public Divider()
Fields
contentUssClassName
The Divider content styling class.
Declaration
public const string contentUssClassName = "appui-divider__content"
Field Value
Type | Description |
---|---|
string |
sizeUssClassName
The Divider size styling class.
Declaration
public const string sizeUssClassName = "appui-divider--size-"
Field Value
Type | Description |
---|---|
string |
spacingUssClassName
The Divider spacing styling class.
Declaration
public const string spacingUssClassName = "appui-divider--spacing-"
Field Value
Type | Description |
---|---|
string |
ussClassName
The Divider main styling class.
Declaration
public const string ussClassName = "appui-divider"
Field Value
Type | Description |
---|---|
string |
verticalUssClassName
The Divider vertical mode styling class.
Declaration
public const string verticalUssClassName = "appui-divider--"
Field Value
Type | Description |
---|---|
string |
Properties
contentContainer
The content container of the Divider. This is always null.
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
VisualElement |
Overrides
direction
The orientation of the Divider.
Declaration
public Direction direction { get; set; }
Property Value
Type | Description |
---|---|
Direction |
size
The size of the Divider.
Declaration
public Size size { get; set; }
Property Value
Type | Description |
---|---|
Size |
spacing
The spacing of the Divider.
Declaration
public Spacing spacing { get; set; }
Property Value
Type | Description |
---|---|
Spacing |
Methods
GetDirectionUssClassName(Direction)
Declaration
public static string GetDirectionUssClassName(Direction enumValue)
Parameters
Type | Name | Description |
---|---|---|
Direction | enumValue |
Returns
Type | Description |
---|---|
string |
GetSizeUssClassName(Size)
Declaration
public static string GetSizeUssClassName(Size enumValue)
Parameters
Type | Name | Description |
---|---|---|
Size | enumValue |
Returns
Type | Description |
---|---|
string |
GetSpacingUssClassName(Spacing)
Declaration
public static string GetSpacingUssClassName(Spacing enumValue)
Parameters
Type | Name | Description |
---|---|---|
Spacing | enumValue |
Returns
Type | Description |
---|---|
string |