G Property

Class

Color.

Action

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

Syntax

C#
public readonly int G
VB
Public Readonly Property G As Integer

Access

Read only.

Example

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