Show / Hide Table of Contents

Struct CorsairLedId

Implements
IComparable<CorsairLedId>
IEquatable<CorsairLedId>
Inherited Members
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: RGB.NET.Devices.Corsair
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
Type Name Description
CorsairLedGroup group
CorsairLedIdKeyboard id
| Edit this page View Source

CorsairLedId(CorsairLedGroup, int)

Declaration
public CorsairLedId(CorsairLedGroup group, int index)
Parameters
Type Name Description
CorsairLedGroup group
int index
| 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
public readonly uint Id
Field Value
Type Description
uint

Properties

| Edit this page View Source

Group

Declaration
public CorsairLedGroup Group { get; }
Property Value
Type Description
CorsairLedGroup
| Edit this page View Source

Index

Declaration
public uint Index { get; }
Property Value
Type Description
uint

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
ValueType.Equals(object)
| 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
ValueType.GetHashCode()

Operators

| Edit this page View Source

operator ==(CorsairLedId, CorsairLedId)

Declaration
public static bool operator ==(CorsairLedId left, CorsairLedId right)
Parameters
Type Name Description
CorsairLedId left
CorsairLedId right
Returns
Type Description
bool
| Edit this page View Source

operator >(CorsairLedId, CorsairLedId)

Declaration
public static bool operator >(CorsairLedId left, CorsairLedId right)
Parameters
Type Name Description
CorsairLedId left
CorsairLedId right
Returns
Type Description
bool
| Edit this page View Source

operator >=(CorsairLedId, CorsairLedId)

Declaration
public static bool operator >=(CorsairLedId left, CorsairLedId right)
Parameters
Type Name Description
CorsairLedId left
CorsairLedId right
Returns
Type Description
bool
| Edit this page View Source

operator !=(CorsairLedId, CorsairLedId)

Declaration
public static bool operator !=(CorsairLedId left, CorsairLedId right)
Parameters
Type Name Description
CorsairLedId left
CorsairLedId right
Returns
Type Description
bool
| Edit this page View Source

operator <(CorsairLedId, CorsairLedId)

Declaration
public static bool operator <(CorsairLedId left, CorsairLedId right)
Parameters
Type Name Description
CorsairLedId left
CorsairLedId right
Returns
Type Description
bool
| Edit this page View Source

operator <=(CorsairLedId, CorsairLedId)

Declaration
public static bool operator <=(CorsairLedId left, CorsairLedId right)
Parameters
Type Name Description
CorsairLedId left
CorsairLedId right
Returns
Type Description
bool

Implements

IComparable<T>
IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX