Nevron Open Vision Documentation
Color Box

The color box is a drop down edit, which displays a palette color picker in its popup window that allows the user to quickly select a color.

Properties and Events

The color box provides the following properties:

Code Example

The following piece of code demonstrates how to create a color box, change its palette and handle its SelectedColorChanged event:

Color Box Example
Copy Code
NColorBox colorBox = new NColorBox();
colorBox.Palette = new NColorPalette(ENColorPaletteType.MicrosoftOffice2007);
colorBox.SelectedColorChanged += new Function<NValueChangeEventArgs>(OnColorBoxSelectedColorChanged);

private void OnColorBoxSelectedColorChanged(NValueChangeEventArgs args)
{
    NColorBox colorBox = (NColorBox)args.TargetNodeNode;
}
See Also
Send Feedback