TRVShapeItemInfo.Color, Opacity

<< Click to display table of contents >>

TRVShapeItemInfo.Color, Opacity

Fill color and opacity for the shape.

Color: TRVColor;

Opacity: TRVOpacity;

If GradientType = rvgtNone, the shape is filled with this color. Otherwise, this color is used as an ending gradient color (the starting color is StartColor).

Opacity must be in range from 0 (transparent) to 100000 (opaque).

VCL and LCL: Gradient and opacity are used only if shapes are drawn using GDI+ (in Delphi XE2+ and optionally in Lazarus).

Use TRichViewEdit.SetCurrentItemExtraIntPropertyEx to change value of these properties as an editing operation (rveipcShapeColor, rveipcShapeOpacity).

Default values

Color: $C68E63 for VCL and LCL; $FF638EC6 for FMX

Opacity: 100000 (i.e. 100%)