Class ToggleSetting
The class for a setting which can only be toggled on or off.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix.Devices
Assembly: Phoenix.Devices.Xbox.dll
Syntax
public class ToggleSetting : XboxConfigSetting
Constructors
View SourceToggleSetting(String, Nullable<Boolean>, Boolean, Boolean)
Initializes a new instance of the ToggleSetting class.
Declaration
public ToggleSetting(string friendlyName, bool? initialValue, bool hasNonMatchingProperties, bool shouldInvert = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | friendlyName | User-friendly name of the setting |
System.Nullable<System.Boolean> | initialValue | Initial value of the setting |
System.Boolean | hasNonMatchingProperties | Whether or not the setting has non matching properties among the selected devices |
System.Boolean | shouldInvert | flag to enable inverting of value. |
Properties
View SourceInvertedValue
Declaration
public bool? InvertedValue { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
ShouldInvert
Declaration
public bool ShouldInvert { get; }
Property Value
Type | Description |
---|---|
System.Boolean |