Class INotifyValueChangedExtensions
Namespace: Aspid.FastTools.UIElements
Assembly: Aspid.FastTools.dll
Provides extension methods for INotifyValueChanged<T>.
public static class INotifyValueChangedExtensions
Inheritance
object ← INotifyValueChangedExtensions
Methods
AddValueChanged<T>(T, EventCallback<ChangeEvent<int>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<int>> callback) where T : INotifyValueChanged<int>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<int>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<uint>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<uint>> callback) where T : INotifyValueChanged<uint>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<uint>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<nint>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<nint>> callback) where T : INotifyValueChanged<nint>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<nint>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<nuint>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<nuint>> callback) where T : INotifyValueChanged<nuint>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<nuint>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<long>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<long>> callback) where T : INotifyValueChanged<long>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<long>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<ulong>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<ulong>> callback) where T : INotifyValueChanged<ulong>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<ulong>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<byte>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<byte>> callback) where T : INotifyValueChanged<byte>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<byte>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<sbyte>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<sbyte>> callback) where T : INotifyValueChanged<sbyte>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<sbyte>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<bool>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<bool>> callback) where T : INotifyValueChanged<bool>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<bool>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<char>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<char>> callback) where T : INotifyValueChanged<char>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<char>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<Rect>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<Rect>> callback) where T : INotifyValueChanged<Rect>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Rect>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<RectInt>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<RectInt>> callback) where T : INotifyValueChanged<RectInt>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<RectInt>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<Enum>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<Enum>> callback) where T : INotifyValueChanged<Enum>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Enum>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<GUID>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<GUID>> callback) where T : INotifyValueChanged<GUID>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<GUID>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<Color>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<Color>> callback) where T : INotifyValueChanged<Color>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Color>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<short>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<short>> callback) where T : INotifyValueChanged<short>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<short>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<ushort>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<ushort>> callback) where T : INotifyValueChanged<ushort>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<ushort>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<float>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<float>> callback) where T : INotifyValueChanged<float>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<float>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<double>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<double>> callback) where T : INotifyValueChanged<double>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<double>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<string>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<string>> callback) where T : INotifyValueChanged<string>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<string>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<Bounds>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<Bounds>> callback) where T : INotifyValueChanged<Bounds>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Bounds>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<BoundsInt>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<BoundsInt>> callback) where T : INotifyValueChanged<BoundsInt>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<BoundsInt>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<Hash128>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<Hash128>> callback) where T : INotifyValueChanged<Hash128>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Hash128>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<decimal>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<decimal>> callback) where T : INotifyValueChanged<decimal>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<decimal>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<Vector2>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<Vector2>> callback) where T : INotifyValueChanged<Vector2>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Vector2>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<Vector2Int>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<Vector2Int>> callback) where T : INotifyValueChanged<Vector2Int>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Vector2Int>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<Vector3>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<Vector3>> callback) where T : INotifyValueChanged<Vector3>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Vector3>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<Vector3Int>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<Vector3Int>> callback) where T : INotifyValueChanged<Vector3Int>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Vector3Int>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<Vector4>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<Vector4>> callback) where T : INotifyValueChanged<Vector4>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Vector4>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<Delegate>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<Delegate>> callback) where T : INotifyValueChanged<Delegate>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Delegate>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<Gradient>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<Gradient>> callback) where T : INotifyValueChanged<Gradient>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Gradient>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<Matrix4x4>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<Matrix4x4>> callback) where T : INotifyValueChanged<Matrix4x4>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Matrix4x4>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<Quaternion>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<Quaternion>> callback) where T : INotifyValueChanged<Quaternion>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Quaternion>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<object>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<object>> callback) where T : INotifyValueChanged<object>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<object>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<AnimationCurve>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<AnimationCurve>> callback) where T : INotifyValueChanged<AnimationCurve>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<AnimationCurve>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<T>(T, EventCallback<ChangeEvent<Object>>)
Subscribes to the value-changed event of the element.
public static T AddValueChanged<T>(this T element, EventCallback<ChangeEvent<Object>> callback) where T : INotifyValueChanged<Object>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Object>>
The callback to subscribe.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
AddValueChanged<TField, TValue>(TField, EventCallback<ChangeEvent<TValue>>)
Subscribes to the value-changed event of the element.
public static TField AddValueChanged<TField, TValue>(this TField element, EventCallback<ChangeEvent<TValue>> callback) where TField : INotifyValueChanged<TValue>
Parameters
element TField
The element to modify.
callback EventCallback<ChangeEvent<TValue>>
The callback to subscribe.
Returns
TField
The element, for chaining.
Type Parameters
TField
The field type.
TValue
The value type of the element.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<int>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<int>> callback) where T : INotifyValueChanged<int>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<int>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<uint>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<uint>> callback) where T : INotifyValueChanged<uint>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<uint>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<nint>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<nint>> callback) where T : INotifyValueChanged<nint>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<nint>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<nuint>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<nuint>> callback) where T : INotifyValueChanged<nuint>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<nuint>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<long>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<long>> callback) where T : INotifyValueChanged<long>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<long>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<ulong>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<ulong>> callback) where T : INotifyValueChanged<ulong>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<ulong>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<byte>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<byte>> callback) where T : INotifyValueChanged<byte>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<byte>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<sbyte>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<sbyte>> callback) where T : INotifyValueChanged<sbyte>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<sbyte>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<bool>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<bool>> callback) where T : INotifyValueChanged<bool>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<bool>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<char>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<char>> callback) where T : INotifyValueChanged<char>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<char>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<Rect>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<Rect>> callback) where T : INotifyValueChanged<Rect>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Rect>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<RectInt>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<RectInt>> callback) where T : INotifyValueChanged<RectInt>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<RectInt>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<Enum>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<Enum>> callback) where T : INotifyValueChanged<Enum>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Enum>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<GUID>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<GUID>> callback) where T : INotifyValueChanged<GUID>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<GUID>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<Color>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<Color>> callback) where T : INotifyValueChanged<Color>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Color>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<short>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<short>> callback) where T : INotifyValueChanged<short>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<short>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<ushort>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<ushort>> callback) where T : INotifyValueChanged<ushort>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<ushort>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<float>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<float>> callback) where T : INotifyValueChanged<float>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<float>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<double>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<double>> callback) where T : INotifyValueChanged<double>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<double>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<string>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<string>> callback) where T : INotifyValueChanged<string>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<string>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<Bounds>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<Bounds>> callback) where T : INotifyValueChanged<Bounds>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Bounds>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<BoundsInt>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<BoundsInt>> callback) where T : INotifyValueChanged<BoundsInt>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<BoundsInt>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<Hash128>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<Hash128>> callback) where T : INotifyValueChanged<Hash128>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Hash128>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<decimal>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<decimal>> callback) where T : INotifyValueChanged<decimal>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<decimal>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<Vector2>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<Vector2>> callback) where T : INotifyValueChanged<Vector2>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Vector2>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<Vector2Int>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<Vector2Int>> callback) where T : INotifyValueChanged<Vector2Int>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Vector2Int>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<Vector3>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<Vector3>> callback) where T : INotifyValueChanged<Vector3>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Vector3>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<Vector3Int>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<Vector3Int>> callback) where T : INotifyValueChanged<Vector3Int>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Vector3Int>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<Vector4>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<Vector4>> callback) where T : INotifyValueChanged<Vector4>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Vector4>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<Delegate>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<Delegate>> callback) where T : INotifyValueChanged<Delegate>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Delegate>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<Gradient>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<Gradient>> callback) where T : INotifyValueChanged<Gradient>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Gradient>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<Matrix4x4>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<Matrix4x4>> callback) where T : INotifyValueChanged<Matrix4x4>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Matrix4x4>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<Quaternion>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<Quaternion>> callback) where T : INotifyValueChanged<Quaternion>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Quaternion>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<object>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<object>> callback) where T : INotifyValueChanged<object>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<object>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<AnimationCurve>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<AnimationCurve>> callback) where T : INotifyValueChanged<AnimationCurve>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<AnimationCurve>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<T>(T, EventCallback<ChangeEvent<Object>>)
Unsubscribes from the value-changed event of the element.
public static T RemoveValueChanged<T>(this T element, EventCallback<ChangeEvent<Object>> callback) where T : INotifyValueChanged<Object>
Parameters
element T
The element to modify.
callback EventCallback<ChangeEvent<Object>>
The callback to remove.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
RemoveValueChanged<TField, TValue>(TField, EventCallback<ChangeEvent<TValue>>)
Unsubscribes from the value-changed event of the element.
public static TField RemoveValueChanged<TField, TValue>(this TField element, EventCallback<ChangeEvent<TValue>> callback) where TField : INotifyValueChanged<TValue>
Parameters
element TField
The element to modify.
callback EventCallback<ChangeEvent<TValue>>
The callback to remove.
Returns
TField
The element, for chaining.
Type Parameters
TField
The field type.
TValue
The value type of the element.
SetValue<T>(T, int, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, int value, bool notify = true) where T : INotifyValueChanged<int>
Parameters
element T
The element to modify.
value int
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, uint, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, uint value, bool notify = true) where T : INotifyValueChanged<uint>
Parameters
element T
The element to modify.
value uint
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, nint, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, nint value, bool notify = true) where T : INotifyValueChanged<nint>
Parameters
element T
The element to modify.
value nint
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, nuint, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, nuint value, bool notify = true) where T : INotifyValueChanged<nuint>
Parameters
element T
The element to modify.
value nuint
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, long, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, long value, bool notify = true) where T : INotifyValueChanged<long>
Parameters
element T
The element to modify.
value long
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, ulong, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, ulong value, bool notify = true) where T : INotifyValueChanged<ulong>
Parameters
element T
The element to modify.
value ulong
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, byte, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, byte value, bool notify = true) where T : INotifyValueChanged<byte>
Parameters
element T
The element to modify.
value byte
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, sbyte, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, sbyte value, bool notify = true) where T : INotifyValueChanged<sbyte>
Parameters
element T
The element to modify.
value sbyte
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, bool, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, bool value, bool notify = true) where T : INotifyValueChanged<bool>
Parameters
element T
The element to modify.
value bool
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, char, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, char value, bool notify = true) where T : INotifyValueChanged<char>
Parameters
element T
The element to modify.
value char
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, Rect, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, Rect value, bool notify = true) where T : INotifyValueChanged<Rect>
Parameters
element T
The element to modify.
value Rect
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, RectInt, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, RectInt value, bool notify = true) where T : INotifyValueChanged<RectInt>
Parameters
element T
The element to modify.
value RectInt
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, Enum, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, Enum value, bool notify = true) where T : INotifyValueChanged<Enum>
Parameters
element T
The element to modify.
value Enum
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, GUID, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, GUID value, bool notify = true) where T : INotifyValueChanged<GUID>
Parameters
element T
The element to modify.
value GUID
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, Color, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, Color value, bool notify = true) where T : INotifyValueChanged<Color>
Parameters
element T
The element to modify.
value Color
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, short, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, short value, bool notify = true) where T : INotifyValueChanged<short>
Parameters
element T
The element to modify.
value short
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, ushort, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, ushort value, bool notify = true) where T : INotifyValueChanged<ushort>
Parameters
element T
The element to modify.
value ushort
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, float, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, float value, bool notify = true) where T : INotifyValueChanged<float>
Parameters
element T
The element to modify.
value float
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, double, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, double value, bool notify = true) where T : INotifyValueChanged<double>
Parameters
element T
The element to modify.
value double
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, string, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, string value, bool notify = true) where T : INotifyValueChanged<string>
Parameters
element T
The element to modify.
value string
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, Bounds, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, Bounds value, bool notify = true) where T : INotifyValueChanged<Bounds>
Parameters
element T
The element to modify.
value Bounds
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, BoundsInt, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, BoundsInt value, bool notify = true) where T : INotifyValueChanged<BoundsInt>
Parameters
element T
The element to modify.
value BoundsInt
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, Hash128, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, Hash128 value, bool notify = true) where T : INotifyValueChanged<Hash128>
Parameters
element T
The element to modify.
value Hash128
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, decimal, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, decimal value, bool notify = true) where T : INotifyValueChanged<decimal>
Parameters
element T
The element to modify.
value decimal
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, Vector2, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, Vector2 value, bool notify = true) where T : INotifyValueChanged<Vector2>
Parameters
element T
The element to modify.
value Vector2
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, Vector2Int, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, Vector2Int value, bool notify = true) where T : INotifyValueChanged<Vector2Int>
Parameters
element T
The element to modify.
value Vector2Int
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, Vector3, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, Vector3 value, bool notify = true) where T : INotifyValueChanged<Vector3>
Parameters
element T
The element to modify.
value Vector3
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, Vector3Int, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, Vector3Int value, bool notify = true) where T : INotifyValueChanged<Vector3Int>
Parameters
element T
The element to modify.
value Vector3Int
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, Vector4, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, Vector4 value, bool notify = true) where T : INotifyValueChanged<Vector4>
Parameters
element T
The element to modify.
value Vector4
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, Delegate, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, Delegate value, bool notify = true) where T : INotifyValueChanged<Delegate>
Parameters
element T
The element to modify.
value Delegate
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, Gradient, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, Gradient value, bool notify = true) where T : INotifyValueChanged<Gradient>
Parameters
element T
The element to modify.
value Gradient
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, Matrix4x4, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, Matrix4x4 value, bool notify = true) where T : INotifyValueChanged<Matrix4x4>
Parameters
element T
The element to modify.
value Matrix4x4
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, Quaternion, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, Quaternion value, bool notify = true) where T : INotifyValueChanged<Quaternion>
Parameters
element T
The element to modify.
value Quaternion
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, object, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, object value, bool notify = true) where T : INotifyValueChanged<object>
Parameters
element T
The element to modify.
value object
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, AnimationCurve, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, AnimationCurve value, bool notify = true) where T : INotifyValueChanged<AnimationCurve>
Parameters
element T
The element to modify.
value AnimationCurve
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T>(T, Object, bool)
Sets the value of the element.
public static T SetValue<T>(this T element, Object value, bool notify = true) where T : INotifyValueChanged<Object>
Parameters
element T
The element to modify.
value Object
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetValue<T, TValue>(T, TValue, bool)
Sets the value of the element.
public static T SetValue<T, TValue>(this T element, TValue value, bool notify = true) where T : INotifyValueChanged<TValue>
Parameters
element T
The element to modify.
value TValue
The value to set.
notify bool
When true, a change notification is raised.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
TValue
The value type of the element.