combit List & Label 25 - .NET Online Web Help
DrawPage Event


combit.ListLabel25 Namespace > ListLabel Class : DrawPage Event

This event is called in the case of list projects for each displayed page and allows customized drawing with GDI+.

Syntax
'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.

PropertyDescription

Internal callback data.

 

Graphics object. You can draw in the work space using the usual GDI + methods.

 

Is true, if called before drawing the remaining page, else false.

 

Indicates whether the call is executed for the designer preview.

 
Example
private void listLabel1_DrawPage(object sender, DrawPageEventArgs e)
{
    e.Graphics.DrawString("DEMO-VERSION!", new Font("Arial",100),
        new SolidBrush(Color.Red), 0F, 0F);
}
Requirements

Platforms: Windows 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also