# VisColorPaletteBase

Namespace: **PPJ.Runtime.Vis**

Assembly: **PPJ.Runtime.Vis.49** (4.9.0.0)

base class for VisColorPalette

{% tabs %}
{% tab title="C#" %}

```csharp
public class VisColorPaletteBase : SalUserControl
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class VisColorPaletteBase
    Inherits SalUserControl
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)VisColorPaletteBase()

Default constructor.

## Properties

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Buttons

[PaletteButtonCollection](https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.viscolorpalettebase): Returns the collection of colors.

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Colors

[ColorCollection](https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.viscolorpalettebase): Returns the collection of colors.

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)PreferredSize

[Size](https://docs.microsoft.com/en-us/dotnet/api/system.drawing.size): Returns the preferred size for the control. This is the dimensions that are needed to fit all the colors and all the buttons organized in rows of 8 color blocks.

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SelectedColor

[Color](https://docs.microsoft.com/en-us/dotnet/api/system.drawing.color): Returns the selected color.

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SelectedIndex

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns/Sets the currently selected color index. (Default: `0`)

## Events

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)ButtonClicked

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) palette button click event

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SelectedIndexChanged

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) selection change event

## Inherited By

| Name                                                                                                                   | Description               |
| ---------------------------------------------------------------------------------------------------------------------- | ------------------------- |
| [VisColorPalette](https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.viscolorpalettebase) | Stand-alone color palette |

## Implements

| Name                                                                                                              | Description |
| ----------------------------------------------------------------------------------------------------------------- | ----------- |
| [ISalWindow](https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.viscolorpalettebase) |             |
