BkgGradientRotation

<< Click to Display Table of Contents >>

Navigation:  Drawing Functions >

BkgGradientRotation

Previous pageReturn to chapter overviewNext page

[Not supported by the Community Edition]

Specifies the rotation for the line gradient.

property integer VPE.BkgGradientRotation

read / write; runtime only; also supported by TVPEObject

Possible Values:

rotation angle clockwise in 0.1 degrees

possible values are: 0, 900, 1800, 2700

Default:

0 degrees

Example:

ActiveX / VCL:

Doc.BkgGradientRotation = 900

Doc.BkgMode = VBKG_GRD_LINE

Doc.BkgGradientStartColor = COLOR_BLUE

Doc.BkgGradientEndColor = COLOR_GREEN

Doc.PrintBox(1, 1, "Hello World!")

 

.NET:

Doc.BkgGradientRotation = 900

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 rotated by 90 degrees to the right, running from blue to green in the background.