Labels.NET component > API > Methods

ShowLabel

Metafile ShowLabel(Graphics g)

also

Metafile ShowLabel(Graphics g, int nStart)

 

This method returns a metafile image of the current label (based on record 0 and the specified Graphics surface g). This image is most suitable for assigning to a PictureBox image for on-screen display, eg.

 

Dim g As Graphics = PictureBox1.CreateGraphics()

g.PageUnit = GraphicsUnit.Pixel

PictureBox1.Image = Alabel11.ShowLabel(g)

g.Dispose()

If the nStart parameter is used the Label() event is generated with a record number of nStart before the label image is created.

 

More:

ShowLabelDesigner