Back to Devexpress

DxColorPalette.ColumnCount Property

blazor-devexpress-dot-blazor-dot-dxcolorpalette-36db53e7.md

latest1.5 KB
Original Source

DxColorPalette.ColumnCount Property

Specifies the number of columns in the Color Palette.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(10)]
[Parameter]
public int ColumnCount { get; set; }

Property Value

TypeDefaultDescription
Int3210

The number of columns.

|

Remarks

Use the ColumnCount property to specify the number of columns in the palette.

razor
<DxColorPalette @bind-Value="@Value"
                ColumnCount="5">
    <Groups>
        <DxColorPaletteGroup Header="Warm"
                             Colors="@DxColorPalettePresets.GetPalette(ColorPalettePresetType.Warm)" />
        <DxColorPaletteGroup Header="Cold"
                             Colors="@DxColorPalettePresets.GetPalette(ColorPalettePresetType.Cold)" />
    </Groups>
</DxColorPalette>

@code {
    string Value { get; set; }
}

Run Demo: Color Palette - Columns

See Also

DxColorPalette Class

DxColorPalette Members

DevExpress.Blazor Namespace