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

Defines the fluent API for configuring the DiagramPdfMarginSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

C#
public class DiagramPdfMarginSettingsBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class

Inheritance: objectDiagramPdfMarginSettingsBuilder<TShapeModel, TConnectionModel>

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

Constructors

C#
public DiagramPdfMarginSettingsBuilder(DiagramPdfMarginSettings settings)
Parameters:settingsDiagramPdfMarginSettings

Methods

Defines the bottom paper margin. The numbers are considered as "pt" units.

C#
public DiagramPdfMarginSettingsBuilder<TShapeModel, TConnectionModel> Bottom(double value)
Parameters:valuedouble

The value that configures the bottom.

Returns:

DiagramPdfMarginSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Pdf(pdf =&gt; pdf.Margin(m =&gt; m.Bottom(20)))
)

Defines the left paper margin. The numbers are considered as "pt" units.

C#
public DiagramPdfMarginSettingsBuilder<TShapeModel, TConnectionModel> Left(double value)
Parameters:valuedouble

The value that configures the left.

Returns:

DiagramPdfMarginSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Pdf(pdf =&gt; pdf.Margin(m =&gt; m.Left(20)))
)

Defines the right paper margin. The numbers are considered as "pt" units.

C#
public DiagramPdfMarginSettingsBuilder<TShapeModel, TConnectionModel> Right(double value)
Parameters:valuedouble

The value that configures the right.

Returns:

DiagramPdfMarginSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Pdf(pdf =&gt; pdf.Margin(m =&gt; m.Right(20)))
)

Defines the top paper margin. The numbers are considered as "pt" units.

C#
public DiagramPdfMarginSettingsBuilder<TShapeModel, TConnectionModel> Top(double value)
Parameters:valuedouble

The value that configures the top.

Returns:

DiagramPdfMarginSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Pdf(pdf =&gt; pdf.Margin(m =&gt; m.Top(20)))
)