combit List & Label 29 - .NET Help
combit.Reporting Namespace / ListLabel Class / DrawPage Event


In This Topic
    DrawPage Event
    In This Topic

    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 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also