Class CodetextParameters

Class CodetextParameters

Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.2.0)

Codetext parameters.

public class CodetextParameters

Inheritance

objectCodetextParameters

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

Alignment

Gets or sets the alignment of the code text. Default value: StringAlignment.Center.

[XmlSerialization(Type = XmlSerializationType.Element)]
public TextAlignment Alignment { get; set; }

Property Value

TextAlignment

Color

Specify the displaying CodeText’s Color. Default value: Color.Black.

[XmlSerialization(Type = XmlSerializationType.Element)]
public Color Color { get; set; }

Property Value

Color

Font

Specify the displaying CodeText’s font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.Auto.

[XmlSerialization(Type = XmlSerializationType.Element, Name = "Font")]
public FontUnit Font { get; }

Property Value

FontUnit

FontMode

Specify FontMode. If FontMode is set to Auto, font size will be calculated automatically based on xDimension value. It is recommended to use FontMode.Auto especially in AutoSizeMode.Nearest or AutoSizeMode.Interpolation. Default value: FontMode.Auto.

[XmlSerialization(Type = XmlSerializationType.Element)]
public FontMode FontMode { get; set; }

Property Value

FontMode

Location

Specify the displaying CodeText Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.Below for 1D barcodes and CodeLocation.None for 2D barcodes.

[XmlSerialization(Type = XmlSerializationType.Element)]
public CodeLocation Location { get; set; }

Property Value

CodeLocation

NoWrap

Specify word wraps (line breaks) within text. Default value: false.

[XmlSerialization(Type = XmlSerializationType.Element)]
public bool NoWrap { get; set; }

Property Value

bool

Space

Space between the CodeText and the BarCode in Aspose.BarCode.Generation.Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.

[XmlSerialization(Type = XmlSerializationType.Element, Name = "Space")]
public Unit Space { get; set; }

Property Value

Unit

TwoDDisplayText

Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode

[XmlSerialization(Type = XmlSerializationType.Element)]
public string TwoDDisplayText { get; set; }

Property Value

string

Methods

ToString()

Returns a human-readable string representation of this Aspose.BarCode.Generation.CodetextParameters.

public override string ToString()

Returns

string

A string that represents this Aspose.BarCode.Generation.CodetextParameters.

 English