<< Click to Display Table of Contents >> BkgGradientStartColor |
[Not supported by the Community Edition]
Specifies the gradient start color. To make the gradient painted, the Background Mode must be set to a gradient mode.
property Color VPE.BkgGradientStartColor
read / write; runtime only; also supported by TVPEObject
Possible Values:
any of the "COLOR_xyz" constants described in Programmer's Manual
or ActiveX / VCL: any RGB value
or .NET: any member of the .NET Color structure
Default:
COLOR_WHITE (but the Transparent Background Mode is activated!)
Remarks:
Gradients do only work for rectangular objects like Boxes, Text, Ellipses etc. Gradients are not drawn in Pies and Polygons. If a gradient mode is selected, hatching for the same object is not possible.
Example:
ActiveX / VCL:
Doc.BkgMode = VBKG_GRD_LINE
Doc.BkgGradientStartColor = COLOR_BLUE
Doc.BkgGradientEndColor = COLOR_GREEN
Doc.PrintBox(1, 1, "Hello World!")
.NET:
Doc.BkgMode = BkgMode.GradientLine
Doc.BkgGradientStartColor = Color.Blue
Doc.BkgGradientEndColor = Color.Green
Doc.PrintBox(1, 1, "Hello World!")
Will draw the text "Hello World!" with a gradient running from blue to green in the background.