Show / Hide Table of Contents

Class ToggleSetting

The class for a setting which can only be toggled on or off.

Inheritance
System.Object
XboxConfigSetting
ToggleSetting
Inherited Members
XboxConfigSetting.Name
XboxConfigSetting.Value
XboxConfigSetting.Changed
XboxConfigSetting.HasNonMatchingProperties
XboxConfigSetting.ValidateValue(Object)
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 Source

ToggleSetting(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 Source

InvertedValue

Declaration
public bool? InvertedValue { get; }
Property Value
Type Description
System.Nullable<System.Boolean>
View Source

ShouldInvert

Declaration
public bool ShouldInvert { get; }
Property Value
Type Description
System.Boolean
  • View Source
In This Article
Back to top Generated by DocFX