Struct CorsairLedId
Assembly: RGB.NET.Devices.Corsair.dll
Syntax
public readonly struct CorsairLedId : IComparable<CorsairLedId>, IEquatable<CorsairLedId>
Constructors
|
Edit this page
View Source
CorsairLedId(CorsairLedGroup, CorsairLedIdKeyboard)
Declaration
public CorsairLedId(CorsairLedGroup group, CorsairLedIdKeyboard id)
Parameters
|
Edit this page
View Source
CorsairLedId(CorsairLedGroup, int)
Declaration
public CorsairLedId(CorsairLedGroup group, int index)
Parameters
|
Edit this page
View Source
CorsairLedId(uint)
Declaration
public CorsairLedId(uint id)
Parameters
Type |
Name |
Description |
uint |
id |
|
Fields
|
Edit this page
View Source
Id
Declaration
Field Value
Properties
|
Edit this page
View Source
Group
Declaration
public CorsairLedGroup Group { get; }
Property Value
|
Edit this page
View Source
Index
Declaration
public uint Index { get; }
Property Value
Methods
|
Edit this page
View Source
CompareTo(CorsairLedId)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Declaration
public int CompareTo(CorsairLedId other)
Parameters
Type |
Name |
Description |
CorsairLedId |
other |
An object to compare with this instance.
|
Returns
Type |
Description |
int |
A value that indicates the relative order of the objects being compared. The return value has these meanings:
Value | Meaning |
---|
Less than zero | This instance precedes other in the sort order. | Zero | This instance occurs in the same position in the sort order as other . | Greater than zero | This instance follows other in the sort order. |
|
|
Edit this page
View Source
Equals(CorsairLedId)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(CorsairLedId other)
Parameters
Type |
Name |
Description |
CorsairLedId |
other |
An object to compare with this object.
|
Returns
Type |
Description |
bool |
true if the current object is equal to the other parameter; otherwise, false.
|
|
Edit this page
View Source
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current instance.
|
Returns
Type |
Description |
bool |
true if obj and this instance are the same type and represent the same value; otherwise, false.
|
Overrides
|
Edit this page
View Source
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A 32-bit signed integer that is the hash code for this instance.
|
Overrides
Operators
|
Edit this page
View Source
operator ==(CorsairLedId, CorsairLedId)
Declaration
public static bool operator ==(CorsairLedId left, CorsairLedId right)
Parameters
Returns
|
Edit this page
View Source
operator >(CorsairLedId, CorsairLedId)
Declaration
public static bool operator >(CorsairLedId left, CorsairLedId right)
Parameters
Returns
|
Edit this page
View Source
operator >=(CorsairLedId, CorsairLedId)
Declaration
public static bool operator >=(CorsairLedId left, CorsairLedId right)
Parameters
Returns
|
Edit this page
View Source
operator !=(CorsairLedId, CorsairLedId)
Declaration
public static bool operator !=(CorsairLedId left, CorsairLedId right)
Parameters
Returns
|
Edit this page
View Source
operator <(CorsairLedId, CorsairLedId)
Declaration
public static bool operator <(CorsairLedId left, CorsairLedId right)
Parameters
Returns
|
Edit this page
View Source
operator <=(CorsairLedId, CorsairLedId)
Declaration
public static bool operator <=(CorsairLedId left, CorsairLedId right)
Parameters
Returns
Implements