BarcodeTextBuilder
Methods
Margin(System.Int32)
Defines the margin of the text.
Parameters
margin - System.Int32
The value that configures the margin option.
Example
@(Html.Kendo().Barcode()
.Name("barcode")
.Value("1234567")
.Text(text => text.Margin(10))
)
Margin(System.Action)
Configures the margin options for the text of the Barcode.
Parameters
configurator - System.Action<BarcodeSpacingBuilder>
The action that configures the margin options of the text.
Example
@(Html.Kendo().Barcode()
.Name("barcode")
.Value("1234567")
.Text(text => text.Margin(margin => margin.Left(10).Top(20).Right(10).Bottom(20)))
)
Color(System.String)
Defines the color of the text. The option accepts a valid CSS color string, including HEX and RGB.
Parameters
color - System.String
The value that configures the color option.
Example
@(Html.Kendo().Barcode()
.Name("barcode")
.Value("1234567")
.Text(text => text.Color("#10c4b2"))
)
Font(System.String)
Defines the font of the text.
Parameters
font - System.String
The value that configures the font.
Example
@(Html.Kendo().Barcode()
.Name("barcode")
.Value("1234567")
.Text(text => text.Font("20px sans-serif"))
)
Visible(System.Boolean)
Sets the visibility of the text.
Parameters
isVisible - System.Boolean
The value for the visibility of the text.
Example
@(Html.Kendo().Barcode()
.Name("barcode")
.Value("1234567")
.Text(text => text.Visible(false))
)