'Declaration
Public Event DrawPage As DrawPageHandler
public event DrawPageHandler DrawPage
public: event DrawPageHandler^ DrawPage
Event Data
The event handler receives an argument of type DrawPageEventArgs containing data related to this event. The following DrawPageEventArgs properties provide information specific to this event.
Property | Description |
---|---|
CallbackData | Internal callback data. |
Graphics | Graphics object. You can draw in the work space using the usual GDI + methods. |
IsBeforePaint | Is true, if called before drawing the remaining page, else false. |
IsDesignerPreview | Indicates whether the call is executed for the designer preview. |
Example
Requirements
Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
.NET: .NET Framework 4.8, .NET 6, .NET 8, .NET 9
See Also