Inserts a new barcode in a Text Control document.

Add(DataVisualization.BarcodeFrame, Int)

public bool Add(DataVisualization.BarcodeFrame barcodeFrame, int textPosition);
Public Function Add(ByVal barcodeFrame As DataVisualization.BarcodeFrame, ByVal textPosition As Integer) As Boolean

Add(DataVisualization.BarcodeFrame, HorizontalAlignment, Int, FrameInsertionMode)

public bool Add(DataVisualization.BarcodeFrame barcodeFrame, HorizontalAlignment alignment, int textPosition, FrameInsertionMode insertionMode);
Public Function Add(ByVal barcodeFrame As DataVisualization.BarcodeFrame, ByVal alignment As HorizontalAlignment, ByVal textPosition As Integer, _
  ByVal insertionMode As FrameInsertionMode) As Boolean

Add(DataVisualization.BarcodeFrame, System.Drawing.Point, Int, FrameInsertionMode)

public bool Add(DataVisualization.BarcodeFrame barcodeFrame, System.Drawing.Point location, int textPosition, FrameInsertionMode insertionMode);
Public Function Add(ByVal barcodeFrame As DataVisualization.BarcodeFrame, ByVal location As System.Drawing.Point, ByVal textPosition As Integer, _
  ByVal insertionMode As FrameInsertionMode) As Boolean

Add(DataVisualization.BarcodeFrame, Int, System.Drawing.Point, FrameInsertionMode)

public bool Add(DataVisualization.BarcodeFrame barcodeFrame, int page, System.Drawing.Point location, FrameInsertionMode insertionMode);
Public Function Add(ByVal barcodeFrame As DataVisualization.BarcodeFrame, ByVal page As Integer, ByVal location As System.Drawing.Point, _
  ByVal insertionMode As FrameInsertionMode) As Boolean

Add(DataVisualization.BarcodeFrame, System.Drawing.Point, FrameInsertionMode)

public bool Add(DataVisualization.BarcodeFrame barcodeFrame, System.Drawing.Point location, FrameInsertionMode insertionMode);
Public Function Add(ByVal barcodeFrame As DataVisualization.BarcodeFrame, ByVal location As System.Drawing.Point, _
  ByVal insertionMode As FrameInsertionMode) As Boolean

Add(DataVisualization.BarcodeFrame, FrameInsertionMode)

public bool Add(DataVisualization.BarcodeFrame barcodeFrame, FrameInsertionMode insertionMode);
Public Function Add(ByVal barcodeFrame As DataVisualization.BarcodeFrame, ByVal insertionMode As FrameInsertionMode) As Boolean

Parameters

Parameter Description
barcodeFrame Specifies the barcode and its frame to add.
textPosition Specifies the text position at which the barcode is to be inserted. If -1 is specified, the barcode is inserted at the current input position.
alignment Specifies the barcode's horizontal alignment. It can be one of the HorizontalAlignment values:
Event Description
Left The barcode is left aligned, relative to the paragraph to which it is anchored.
Right The barcode is right aligned, relative to the paragraph to which it is anchored.
Centered The barcode is centered, relative to the paragraph to which it is anchored.
Justify This value is not supported for barcodes.
location Specifies the location, in twips, at which the barcode is to be inserted.
insertionMode Specifies how the text flow is handled. It can be one of the following values of the FrameInsertionMode enumeration:
Event Description
AboveTheText The barcode is inserted at a certain geometrical location above the text. This means that the barcode overwrites the text.
BelowTheText The barcode is inserted at a certain geometrical location below the text. This means that the text overwrites the barcode.
DisplaceCompleteLines The text stops at the top and continues at the bottom of the barcode.
DisplaceText The text flows around the barcode and empty areas at the left and right side are filled.
Other Vaues All other values cannot be used with the BarcodeCollection.Add method.
page Specifies the number of a page beginning with 1 where the barcode is located.

Return Value

The return value is true, if the barcode could be added. Otherwise, it is false.