Class Spacer
Spacer visual 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 Spacer : BaseVisualElement, IEventHandler, IVisualElementScheduler, IExperimentalFeatures, ITransitionAnimations, ITransform, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder
Constructors
Spacer()
Main constructor.
Declaration
public Spacer()
Fields
spacingUssClassName
The spacer's spacing USS class name.
Declaration
public const string spacingUssClassName = "appui-spacer--spacing-"
Field Value
Type | Description |
---|---|
string |
ussClassName
The spacer's main USS class name.
Declaration
public const string ussClassName = "appui-spacer"
Field Value
Type | Description |
---|---|
string |
Properties
spacing
The spacer's spacing.
Declaration
public SpacerSpacing spacing { get; set; }
Property Value
Type | Description |
---|---|
SpacerSpacing |
Methods
GetSpacingUssClassName(SpacerSpacing)
Declaration
public static string GetSpacingUssClassName(SpacerSpacing enumValue)
Parameters
Type | Name | Description |
---|---|---|
SpacerSpacing | enumValue |
Returns
Type | Description |
---|---|
string |