←Select platform

Color2 Property

Summary

The second (background) color to use when framing the region.

Syntax
C#
VB
C++
public Color Color2 { get; set; } 
Public Property Color2() As System.Drawing.Color 
   Get 
   Set 
public:  
   property System::Drawing::Color^ Color2 
   { 
      System::Drawing::Color^ get() 
      void set(System::Drawing::Color^ value) 
   } 

Property Value

The second (background) color to use when framing the region. Default value is "White".

Remarks

ControlRegionRenderer frames the region as follows:

  • Using a pen of width Size pixels (default value is 1). It uses the background color (Color2) to trace the region using a solid brush

  • Using a pen of width Size pixels (default value is 1). It uses the foreground color (Color1) to trace the region using a hatch brush (with dash distance of 2 and 4)

The user can change any of these values or customize the rendering further by using RegionRenderCallback.

Requirements
Target Platforms
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.