Class Radio
Radio UI element.
Implements
Inherited Members
Namespace: Unity.AppUI .UI
Assembly: solution.dll
Syntax
public class Radio : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IValidatableElement<bool>, INotifyValueChanged<bool>, IPressable
Constructors
Radio()
Default constructor.
Declaration
public Radio()
Fields
boxUssClassName
The Radio button styling class.
Declaration
public static readonly string boxUssClassName
Field Value
Type | Description |
---|---|
string |
checkmarkUssClassName
The Radio checkmark styling class.
Declaration
public static readonly string checkmarkUssClassName
Field Value
Type | Description |
---|---|
string |
emphasizedUssClassName
The Radio emphasized mode styling class.
Declaration
public static readonly string emphasizedUssClassName
Field Value
Type | Description |
---|---|
string |
labelUssClassName
The Radio label styling class.
Declaration
public static readonly string labelUssClassName
Field Value
Type | Description |
---|---|
string |
sizeUssClassName
The Radio size styling class.
Declaration
public static readonly string sizeUssClassName
Field Value
Type | Description |
---|---|
string |
ussClassName
The Radio main styling class.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
string |
Properties
clickable
Clickable Manipulator for this Radio.
Declaration
public Pressable clickable { get; set; }
Property Value
Type | Description |
---|---|
Pressable |
emphasized
The Radio emphasized mode.
Declaration
public bool emphasized { get; set; }
Property Value
Type | Description |
---|---|
bool |
invalid
The Radio invalid state.
Declaration
public bool invalid { get; set; }
Property Value
Type | Description |
---|---|
bool |
label
The Radio label.
Declaration
public string label { get; set; }
Property Value
Type | Description |
---|---|
string |
size
The Radio size.
Declaration
public Size size { get; set; }
Property Value
Type | Description |
---|---|
Size |
validateValue
The Radio validation function.
Declaration
public Func<bool, bool> validateValue { get; set; }
Property Value
value
The Radio value.
Declaration
public bool value { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
SetValueWithoutNotify(bool)
Sets the Radio value without notifying the listeners.
Declaration
public void SetValueWithoutNotify(bool newValue)
Parameters
Type | Name | Description |
---|---|---|
bool | newValue | The new value. |