R property

Color.R property

Gets or sets the sRGB red channel value of the color.

Syntax


public byte R { get; set; }

Property value

Type: System.Byte

The sRGB red channel value, as a value between 0 and 255.

Remarks

You can set this value in XAML, but only as part of the attribute syntax for properties that take a Color, or as initialization text of a Color object element. See XAML sections and Remarks sections of Color.

Requirements (Windows 10 device family)

Device family

API contract

Namespace

Windows.UI

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI

Assembly

System.Runtime.WindowsRuntime.dll

See also

Color

 

 

Show:
© 2016 Microsoft