Aspose::BarCode::Generation::CodetextParameters class

CodetextParameters class

Codetext parameters.

class CodetextParameters : public System::Object

Methods

MethodDescription
get_Alignment() constGets the alignment of the code text. Default value: StringAlignment.Center.
get_Color() constSpecify the displaying CodeText’s Color. Default value: Color.Black.
get_Font() constSpecify the displaying CodeText’s font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.Auto.
get_FontMode() constSpecify 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.
get_Location() constSpecify the displaying CodeText Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.Below for 1D barcodes and CodeLocation.None for 2D barcodes.
get_NoWrap() constSpecify word wraps (line breaks) within text. Default value: false.
get_Space() constSpace between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.
get_TwoDDisplayText() constText that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode.
set_Alignment(TextAlignment)Sets the alignment of the code text. Default value: StringAlignment.Center.
set_Color(System::Drawing::Color)Specify the displaying CodeText’s Color. Default value: Color.Black.
set_FontMode(Aspose::BarCode::Generation::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.
set_Location(CodeLocation)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.
set_NoWrap(bool)Specify word wraps (line breaks) within text. Default value: false.
set_Space(System::SharedPtr<Unit>)Space between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.
set_TwoDDisplayText(System::String)Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode.
ToString() const overrideReturns a human-readable string representation of this CodetextParameters.

See Also