[]
        
(Showing Draft Content)

GrapeCity.Documents.Barcode.GcPdfBarcodeExtension

Class GcPdfBarcodeExtension

Namespace
GrapeCity.Documents.Barcode
Assembly
GcDocs.Barcode.dll

Provides extension methods to draw and measure a GcBarcode.

public static class GcPdfBarcodeExtension
Inheritance
object
GcPdfBarcodeExtension
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Methods

DrawBarcode(GcGraphics, GcBarcode, RectangleF)

Draws a GcBarcode on the current GcGraphics.

public static void DrawBarcode(this GcGraphics g, GcBarcode barcode, RectangleF bounds)

Parameters

g GcGraphics

The current graphics.

barcode GcBarcode

The barcode to draw.

bounds System.Drawing.RectangleF

The bounds specifying where to draw the barcode.

MeasureBarcode(GcGraphics, GcBarcode)

Measures a GcBarcode using the current GcGraphics.

public static SizeF MeasureBarcode(this GcGraphics g, GcBarcode barcode)

Parameters

g GcGraphics

The current graphics.

barcode GcBarcode

The barcode to measure.

Returns

System.Drawing.SizeF

The size of the barcode in current graphics units.