Each NCommandParent implements INPaletteProvider which is the main interface that describes how an object is rendered. Thus, you have full control over how the object is rendered and what color scheme it uses. For more information see Palettes.
The following code demonstrates how to change the default palette of a NToolbar object:
C# |
Copy Code
|
---|---|
NToolbar toolbar = new NToolbar();
toolbar.Palette.Scheme = ColorScheme.Sunset;
toolbar.Palette.Style3D = Style3D.Flat;
|
Visual Basic |
Copy Code
|
---|---|
Dim toolbar As NToolbar = New NToolbar() toolbar.Palette.Scheme = ColorScheme.Sunset toolbar.Palette.Style3D = Style3D.Flat |