Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
UsePaintPalette Property
See Also 
Leadtools Namespace > RasterPaintProperties Structure : UsePaintPalette Property




Enables or disables automatically using the RasterImage object palette when displaying the image.

Syntax

Visual Basic (Declaration) 
Public Property UsePaintPalette As Boolean
Visual Basic (Usage)Copy Code
Dim instance As RasterPaintProperties
Dim value As Boolean
 
instance.UsePaintPalette = value
 
value = instance.UsePaintPalette
C# 
public bool UsePaintPalette {get; set;}
Managed Extensions for C++ 
public: __property bool get_UsePaintPalette();
public: __property void set_UsePaintPalette( 
   bool value
);
C++/CLI 
public:
property bool UsePaintPalette {
   bool get();
   void set (bool value);
}

Return Value

true to automatically use the RasterImage object palette, false to ignore it.

Example

For an example, refer to RasterPaintProperties.

Remarks

Used only when PaintEngine is set to RasterPaintEngine.Gdi.

Set this to true to automatically cause the paint methods to use the RasterImage palette if it has any.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also