# 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

### ![](/files/dBIrS7XBDGmrzmTRbSI6)VisColorPaletteBase()

Default constructor.

## Properties

### ![](/files/dBIrS7XBDGmrzmTRbSI6)Buttons

[PaletteButtonCollection](/ppj.runtime.vis.49/controls/ppj.runtime.vis.viscolorpalettebase.md): Returns the collection of colors.

### ![](/files/dBIrS7XBDGmrzmTRbSI6)Colors

[ColorCollection](/ppj.runtime.vis.49/controls/ppj.runtime.vis.viscolorpalettebase.md): Returns the collection of colors.

### ![](/files/dBIrS7XBDGmrzmTRbSI6)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.

### ![](/files/dBIrS7XBDGmrzmTRbSI6)SelectedColor

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

### ![](/files/dBIrS7XBDGmrzmTRbSI6)SelectedIndex

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

## Events

### ![](/files/dBIrS7XBDGmrzmTRbSI6)ButtonClicked

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

### ![](/files/dBIrS7XBDGmrzmTRbSI6)SelectedIndexChanged

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

## Inherited By

| Name                                                                                   | Description               |
| -------------------------------------------------------------------------------------- | ------------------------- |
| [VisColorPalette](/ppj.runtime.vis.49/controls/ppj.runtime.vis.viscolorpalettebase.md) | Stand-alone color palette |

## Implements

| Name                                                                              | Description |
| --------------------------------------------------------------------------------- | ----------- |
| [ISalWindow](/ppj.runtime.vis.49/controls/ppj.runtime.vis.viscolorpalettebase.md) |             |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.viscolorpalettebase.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
