Class Link
A link visual element.
Inheritance
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class Link : LocalizedTextElement, IEventHandler, IVisualElementScheduler, IExperimentalFeatures, ITransitionAnimations, ITransform, IResolvedStyle, IBindable, INotifyValueChanged<string>, IContextOverrideElement, IAdditionalDataHolder, IPressable
Constructors
Link()
Default constructor.
Declaration
public Link()
Link(string)
Constructor.
Declaration
public Link(string text)
Parameters
Type | Name | Description |
---|---|---|
string | text | The text of the link. |
Link(string, string)
Constructor.
Declaration
public Link(string text, string url)
Parameters
Fields
sizeUssClassName
The Link's size USS class name.
Declaration
public const string sizeUssClassName = "appui-link--size-"
Field Value
Type | Description |
---|---|
string |
ussClassName
The Link's USS class name.
Declaration
public const string ussClassName = "appui-link"
Field Value
Type | Description |
---|---|
string |
Properties
clickable
The clickable manipulator.
Declaration
public Pressable clickable { get; set; }
Property Value
Type | Description |
---|---|
Pressable |
size
The size of the link.
Declaration
public TextSize size { get; set; }
Property Value
Type | Description |
---|---|
Text |
url
The URL of the link.
Declaration
public string url { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
GetSizeUssClassName(TextSize)
Declaration
public static string GetSizeUssClassName(TextSize enumValue)
Parameters
Type | Name | Description |
---|---|---|
Text |
enumValue |
Returns
Type | Description |
---|---|
string |