API Reference
BarcodeHtmlRenderOptions
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.
Returned or exposed by
- Method BarcodeHtmlRenderOptions.WithBackgroundColor
- Method BarcodeHtmlRenderOptions.WithBarColor
- Method BarcodeHtmlRenderOptions.WithEmailSafeTable
- Method BarcodeHtmlRenderOptions.WithHeightModules
- Method BarcodeHtmlRenderOptions.WithLabelColor
- Method BarcodeHtmlRenderOptions.WithLabelFontFamily
- Method BarcodeHtmlRenderOptions.WithLabelFontSize
- Method BarcodeHtmlRenderOptions.WithLabelMargin
- Method BarcodeHtmlRenderOptions.WithLabelText
- Method BarcodeHtmlRenderOptions.WithModuleSize
- Method BarcodeHtmlRenderOptions.WithQuietZone
Accepted by parameters
- Method HtmlBarcodeRenderer.Render
- Method HtmlBarcodeRenderer.RenderToFile
- Method HtmlBarcodeRenderer.RenderToFile
- Method HtmlBarcodeRenderer.RenderToStream
Constructors
public BarcodeHtmlRenderOptions() #Methods
public BarcodeHtmlRenderOptions WithBackgroundColor(String color) #BarcodeHtmlRenderOptionsSets the background color (CSS value).
Parameters
- color System.String
public BarcodeHtmlRenderOptions WithBarColor(String color) #BarcodeHtmlRenderOptionsSets the bar color (CSS value).
Parameters
- color System.String
public BarcodeHtmlRenderOptions WithEmailSafeTable(Boolean enabled = true) #BarcodeHtmlRenderOptionsEnables or disables email-safe HTML output.
Parameters
- enabled System.Boolean = true
public BarcodeHtmlRenderOptions WithHeightModules(Int32 heightModules) #BarcodeHtmlRenderOptionsSets the barcode height in modules.
Parameters
- heightModules System.Int32
public BarcodeHtmlRenderOptions WithLabelColor(String color) #BarcodeHtmlRenderOptionsSets the label color (CSS value).
Parameters
- color System.String
public BarcodeHtmlRenderOptions WithLabelFontFamily(String family) #BarcodeHtmlRenderOptionsSets the label font family.
Parameters
- family System.String
public BarcodeHtmlRenderOptions WithLabelFontSize(Int32 size) #BarcodeHtmlRenderOptionsSets the label font size in pixels.
Parameters
- size System.Int32
public BarcodeHtmlRenderOptions WithLabelMargin(Int32 margin) #BarcodeHtmlRenderOptionsSets the label margin in pixels.
Parameters
- margin System.Int32
public BarcodeHtmlRenderOptions WithLabelText(String text) #BarcodeHtmlRenderOptionsSets the label text.
Parameters
- text System.String
public BarcodeHtmlRenderOptions WithModuleSize(Int32 size) #BarcodeHtmlRenderOptionsSets the module size in pixels.
Parameters
- size System.Int32
public BarcodeHtmlRenderOptions WithQuietZone(Int32 quietZone) #BarcodeHtmlRenderOptionsSets the quiet zone size in modules.
Parameters
- quietZone System.Int32
Inherited Methods
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.