Skip to main content

IdxRichEditSubDocument.PageBackColor Property

Specifies the page background color.

Declaration

property PageBackColor: TdxAlphaColor read; write;

Property Value

Type Description
TdxAlphaColor

The page background color.

Remarks

The base rich text document and its nested documents (floating text boxes, headers, footers, etc.) can have different background colors. Use the PageBackColor property to change the current document’s background color.

Value Type

The PageBackColor property accepts TdxAlphaColor values instead of TColor to support transparency.

You can use the TdxAlphaColors record declared in the dxCoreGraphics unit to obtain compatible predefined colors or create custom TdxAlphaColor values. Alternatively, you can call the dxMakeAlphaColor function or other global methods declared in the same unit.

Document Page Color and Print Operations

A TdxRichEditControlReportLink component associated with the Rich Edit control initially ignores all custom document background colors and uses the default page color (white) for all print and print preview operations.

To take document background colors into account during print and print preview operations, set the parent Rich Edit control’s Options.Printing.EnablePageBackgroundOnPrint property to True.

See Also