R Property

Class

Color.

Action

Gets the value of the red RGB channel of the color.

Syntax

Public Readonly Property R As Integer

Access

Read only.

Example

To get the value of the red RGB channel of the color cyan, type the following:
'VB code
Public Sub Main()
	 Dim myColor As Color(0,255,255,255)
  Dim redValue As Integer
  redValue = myColor.R()
End Sub