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

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

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class BarcodeSpacingBuilder

Inheritance: objectBarcodeSpacingBuilder

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

Constructors

C#
public BarcodeSpacingBuilder(ChartSpacing spacing)
Parameters:spacingChartSpacing

Methods

Defines the bottom padding of the Barcode.

C#
public BarcodeSpacingBuilder Bottom(int bottom)
Parameters:bottomint

The value that configures the bottom padding.

Returns:

BarcodeSpacingBuilder

Example:
C#
@(Html.Kendo().Barcode()
.Name("barcode")
.Value("1234567")
.Padding(padding => padding.Bottom(50))
)

Defines the left padding of the Barcode.

C#
public BarcodeSpacingBuilder Left(int left)
Parameters:leftint

The value that configures the left padding.

Returns:

BarcodeSpacingBuilder

Example:
C#
@(Html.Kendo().Barcode()
.Name("barcode")
.Value("1234567")
.Padding(padding => padding.Left(50))
)

Defines the right padding of the Barcode.

C#
public BarcodeSpacingBuilder Right(int right)
Parameters:rightint

The value that configures the right padding.

Returns:

BarcodeSpacingBuilder

Example:
C#
@(Html.Kendo().Barcode()
.Name("barcode")
.Value("1234567")
.Padding(padding => padding.Right(50))
)

Defines the top padding of the Barcode.

C#
public BarcodeSpacingBuilder Top(int top)
Parameters:topint

The value that configures the top padding.

Returns:

BarcodeSpacingBuilder

Example:
C#
@(Html.Kendo().Barcode()
.Name("barcode")
.Value("1234567")
.Padding(padding => padding.Top(50))
)