Caption Class

The text caption shown in the barcode image. There are two captions: CaptionBelow and CaptionAbove
Inheritance Hierarchy

Namespace:  Aspose.BarCode
Assembly:  Aspose.BarCode (in Aspose.BarCode.dll) Version: 20.11.0
Syntax
public class Caption : MarshalByRefObject

The Caption type exposes the following members.

Constructors
  NameDescription
Public methodCaption
Initializes a new instance of the Caption class with default vaule.
Public methodCaption(String)
Initializes a new instance of the Caption class with specified text.
Public methodCaption(String, Boolean, StringAlignment, Single, Color, Font)
Initializes a new instance of the Caption class.
Properties
  NameDescription
Public propertyFont
Gets or sets the font of the caption.
Public propertyForeColor
Gets or sets the forecolor of the caption.
Public propertySpace
Gets or sets the space between the caption and the barcode, and the space between border and the caption
Public propertyText
Gets or sets the content of the caption.
Public propertyTextAlign
Gets or sets the text alignment of the caption. e.g. when the text is writing from left to right, StringAlignment.Near means the Caption will be aligned to the left
Public propertyVisible
Gets or sets a value indicates whether the caption is visible.
Methods
  NameDescription
Public methodCopy
Get a new copy of the caption instance.
Public methodCreateObjRef (Inherited from MarshalByRefObject.)
Public methodDispose
Dispose the Caption instance
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetLifetimeService (Inherited from MarshalByRefObject.)
Public methodGetType (Inherited from Object.)
Public methodInitializeLifetimeService (Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodMemberwiseClone(Boolean) (Inherited from MarshalByRefObject.)
Public methodToString (Inherited from Object.)
See Also