ColorPalette Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ColorPalette(Color[]) |
Creates a custom color palette. |
ColorPalette(PaletteType) |
Creates a standard color palette. |
- Source:
- ColorPalette.cs
- Source:
- ColorPalette.cs
- Source:
- ColorPalette.cs
Creates a custom color palette.
public:
ColorPalette(... cli::array <System::Drawing::Color> ^ customColors);
C#
public ColorPalette(params System.Drawing.Color[] customColors);
new System.Drawing.Imaging.ColorPalette : System.Drawing.Color[] -> System.Drawing.Imaging.ColorPalette
Public Sub New (ParamArray customColors As Color())
Parameters
- customColors
- Color[]
Color entries for the palette.
Applies to
.NET 10 (package-provided) и други версии
Продукт | Версии |
---|---|
.NET | 9 (package-provided), 10 (package-provided) |
Windows Desktop | 9, 10 |
- Source:
- ColorPalette.cs
- Source:
- ColorPalette.cs
- Source:
- ColorPalette.cs
Creates a standard color palette.
public:
ColorPalette(System::Drawing::Imaging::PaletteType fixedPaletteType);
C#
public ColorPalette(System.Drawing.Imaging.PaletteType fixedPaletteType);
new System.Drawing.Imaging.ColorPalette : System.Drawing.Imaging.PaletteType -> System.Drawing.Imaging.ColorPalette
Public Sub New (fixedPaletteType As PaletteType)
Parameters
- fixedPaletteType
- PaletteType
The palette type.
Applies to
.NET 10 (package-provided) и други версии
Продукт | Версии |
---|---|
.NET | 9 (package-provided), 10 (package-provided) |
Windows Desktop | 9, 10 |
Работете съвместно с нас в GitHub
Източникът за това съдържание може да бъде намерен в GitHub, където можете също да създавате и преглеждате проблеми и да изтегляте искания. За повече информация вижте нашето ръководство за сътрудник.
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: