text.margin Object

The margin of the text

Example - set the margin of the text.

<div id="barcode"></div>
<script>
$("#barcode").kendoBarcode({
  value:"123456",
  width: 300,
  text:{
    margin : {
      top: 3
    }
  }
});
</script>

text.margin.bottom Number (default: 0)

The bottom margin of the text.

Example - apply a bottom margin

<div id="barcode"></div>
<script>
$("#barcode").kendoBarcode({
  value:"123456",
  width: 300,
  text:{
    margin: {
        bottom: 20
    }
  }
});
</script>

text.margin.left Number (default: 0)

The left margin of the text.

Example - apply a left margin

<div id="barcode"></div>
<script>
$("#barcode").kendoBarcode({
  value:"123456",
  width: 300,
  text:{
    margin: {
        left: 20
    }
  }
});
</script>

text.margin.right Number (default: 0)

The right margin of the text.

Example - apply a right margin

<div id="barcode"></div>
<script>
$("#barcode").kendoBarcode({
  value:"123456",
  width: 300,
  text:{
    margin: {
        right: 20
    }
  }
});
</script>

text.margin.top Number (default: 0)

The top margin of the text.

Example - apply a top margin

<div id="barcode"></div>
<script>
$("#barcode").kendoBarcode({
  value:"123456",
  width: 300,
  text:{
    margin: {
        top: 20
    }
  }
});
</script>
In this article