Version

CustomColors Property

Array of custom colors
Syntax
'Declaration
 
Public Property CustomColors As Infragistics.Win.CustomColor()
public Infragistics.Win.CustomColor[] CustomColors {get; set;}
Example
This sample sets up the border color as well as the custom colors collection for the control.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    Me.UltraColorPicker1.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid
    Me.UltraColorPicker1.ButtonAppearance.BackColor = Color.Blue

    ' Display varying shades of yellow in custom area.
    Dim i As Integer = 0

    For i = 0 To 15
        Me.UltraColorPicker1.CustomColors(i).Color = Color.FromArgb(255, 255, 15 * i)
    Next i

End Sub
private void Form1_Load(object sender, System.EventArgs e)
{

	this.ultraColorPicker1.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid ;
	this.ultraColorPicker1.ButtonAppearance.BackColor = Color.Blue;
	
	// Display varying shades of yellow in custom area.
	for(int i = 0; i < 16; i++)
		this.ultraColorPicker1.CustomColors[i].Color = Color.FromArgb(255,255,15*i);

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also