Click or drag to resize
Ab4d.SharpEngine logo

Color4Item Property

Gets or sets the component at the specified index.

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public float this[
	int index
] { get; set; }

Parameters

index  Int32
The index of the component to access. Use 0 for the alpha component, 1 for the red component, 2 for the green component, and 3 for the blue component.

Property Value

Single
The value of the red, green, blue, and alpha components, depending on the index.

Return Value

Single
The value of the component at the specified index.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown when the index is out of the range [0, 3].
See Also