Skip to main content

TcxCustomCanvas.SaveState Method

Saves the current canvas state.

Declaration

procedure SaveState; virtual; abstract;

Remarks

The canvas state includes draw-related settings (such as the current brush, pen, font, etc.) and an associated device context. A canvas can store multiple states in a stack. Call the SaveState procedure to store the current canvas state for future use. A consequent RestoreState procedure call restores all saved canvas settings.

See Also