New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring the border of the Telerik UI Barcode for ASP.NET MVC.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class BarcodeBorderBuilder

Inheritance: objectBarcodeBorderBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public BarcodeBorderBuilder(BarcodeElementBorder element)
Parameters:elementBarcodeElementBorder

Methods

The color of the Barcode border. The option accepts a valid CSS color string, including HEX and RGB.

C#
public BarcodeBorderBuilder Color(string color)
Parameters:colorstring

The value that configures the color option.

Returns:

BarcodeBorderBuilder

Example:
C#
@(Html.Kendo().Barcode()
.Name("barcode")
.Value("1234567")
.Border(border => border.Color("#10c4b2").Width(1))
)

Specifies the dash type of the Barcode border.

C#
public BarcodeBorderBuilder DashType(ChartDashType dashType)
Parameters:dashTypeChartDashType

The value that configures the dash type.

Returns:

BarcodeBorderBuilder

Example:
C#
@(Html.Kendo().Barcode()
.Name("barcode")
.Value("1234567")
.Border(border => border.Width(1).DashType(ChartDashType.Dot))
)

The width of the Barcode border.

C#
public BarcodeBorderBuilder Width(int width)
Parameters:widthint

The value that configures the width.

Returns:

BarcodeBorderBuilder

Example:
C#
@(Html.Kendo().Barcode()
.Name("barcode")
.Value("1234567")
.Border(border => border.Width(1))
)