Barcode.ActiveTextIndex

Barcode

int TECIT.TBarCode.Barcode.ActiveTextIndex { get; set; }

Gets or sets the currently active text index.

A return value of 0 means that the human readable text is active (this is the default). A return value of >0 means that the extra text with given index [1 .. n] is active. The user can only change the settings of the text that is currently active.
That means that if the user sets the property ActiveTextIndex = 1 all future calls will be applied to text object #1 until another text object is activated in the same manner.

EXAMPLE (set text of text object #1):

barcode.ActiveTextIndex = 1;
barcode.HumanReadableText = "Text Line 1";

Following properties and functions are affected by ActiveTextIndex: HumanReadableText, TextRotation, Font(), TextAlignment, TextPosition, IsTextVisible, SetFontColor(), GetFontColor()

The index of the currently active text setting.

Search documentation

Search in
More scopes
Additional scopes

All contents