Labels.NET component > API > Methods

doLabels

Metafile doLabels(Graphics g, ref float x, ref float y)

doLabels may be called repeatedly to obtain label images for display or printing on the specified graphics surface g. The x and y parameters passed by reference receive the top-left coordinates (in the current PageUnits for g) at which the label should be drawn. Developers should test the component’s eop (end-of-page) or eod (end-of-document) properties between calls to check for completion.

 

Dim g As Graphics = Me.CreateGraphics()

g.PageUnit = GraphicsUnit.Pixel

Alabel11.setStart(0, 0, 0, 0, 0)

While (Not Alabel11.eop)

    Im = Alabel11.doLabels(g, x, y)

    g.DrawImage(Im, x, y)

End While

g.Dispose()

 

More:

GetElRect