CodeGlyphX logo
CodeGlyphX

API Reference

Class

BarcodeHtmlRenderOptions

Namespace CodeGlyphX.Rendering.Html
Assembly CodeGlyphX
Modifiers sealed

Options for HtmlBarcodeRenderer.

Inheritance

  • Object
  • BarcodeHtmlRenderOptions

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

Methods

public BarcodeHtmlRenderOptions WithBackgroundColor(String color) #
Returns: BarcodeHtmlRenderOptions

Sets the background color (CSS value).

Parameters

color System.String requiredposition: 0
public BarcodeHtmlRenderOptions WithBarColor(String color) #
Returns: BarcodeHtmlRenderOptions

Sets the bar color (CSS value).

Parameters

color System.String requiredposition: 0
public BarcodeHtmlRenderOptions WithEmailSafeTable(Boolean enabled = true) #
Returns: BarcodeHtmlRenderOptions

Enables or disables email-safe HTML output.

Parameters

enabled System.Boolean = true optionalposition: 0
public BarcodeHtmlRenderOptions WithHeightModules(Int32 heightModules) #
Returns: BarcodeHtmlRenderOptions

Sets the barcode height in modules.

Parameters

heightModules System.Int32 requiredposition: 0
public BarcodeHtmlRenderOptions WithLabelColor(String color) #
Returns: BarcodeHtmlRenderOptions

Sets the label color (CSS value).

Parameters

color System.String requiredposition: 0
public BarcodeHtmlRenderOptions WithLabelFontFamily(String family) #
Returns: BarcodeHtmlRenderOptions

Sets the label font family.

Parameters

family System.String requiredposition: 0
public BarcodeHtmlRenderOptions WithLabelFontSize(Int32 size) #
Returns: BarcodeHtmlRenderOptions

Sets the label font size in pixels.

Parameters

size System.Int32 requiredposition: 0
public BarcodeHtmlRenderOptions WithLabelMargin(Int32 margin) #
Returns: BarcodeHtmlRenderOptions

Sets the label margin in pixels.

Parameters

margin System.Int32 requiredposition: 0
public BarcodeHtmlRenderOptions WithLabelText(String text) #
Returns: BarcodeHtmlRenderOptions

Sets the label text.

Parameters

text System.String requiredposition: 0
public BarcodeHtmlRenderOptions WithModuleSize(Int32 size) #
Returns: BarcodeHtmlRenderOptions

Sets the module size in pixels.

Parameters

size System.Int32 requiredposition: 0
public BarcodeHtmlRenderOptions WithQuietZone(Int32 quietZone) #
Returns: BarcodeHtmlRenderOptions

Sets the quiet zone size in modules.

Parameters

quietZone System.Int32 requiredposition: 0

Properties

public Int32 ModuleSize { get; set; } #

Gets or sets the size of a single module in pixels.

public Int32 QuietZone { get; set; } #

Gets or sets the quiet zone size in modules.

public Int32 HeightModules { get; set; } #

Gets or sets the barcode height in modules.

public String BarColor { get; set; } #

Gets or sets the bar color (CSS value).

public String BackgroundColor { get; set; } #

Gets or sets the background color (CSS value).

public Boolean EmailSafeTable { get; set; } #

When true, produces an email-friendly table (uses bgcolor).

public String LabelText { get; set; } #

Optional label text rendered under the bars.

public Int32 LabelFontSize { get; set; } #

Label font size in pixels.

public Int32 LabelMargin { get; set; } #

Vertical margin between bars and label in pixels.

public String LabelColor { get; set; } #

Label color (CSS value).

public String LabelFontFamily { get; set; } #

Label font family.