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

Defines the fluent API for configuring the GanttPdfMarginSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class GanttPdfMarginSettingsBuilder

Inheritance: objectGanttPdfMarginSettingsBuilder

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

Constructors

C#
public GanttPdfMarginSettingsBuilder(GanttPdfMarginSettings settings)
Parameters:settingsGanttPdfMarginSettings

Methods

The bottom margin. Numbers are considered as "pt" units.

C#
public GanttPdfMarginSettingsBuilder Bottom(double value)
Parameters:valuedouble

The value that configures the bottom.

Returns:

GanttPdfMarginSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Pdf(p => p.Margin(m => m.Bottom(12)))
)

The left margin. Numbers are considered as "pt" units.

C#
public GanttPdfMarginSettingsBuilder Left(double value)
Parameters:valuedouble

The value that configures the left.

Returns:

GanttPdfMarginSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Pdf(p => p.Margin(m => m.Left(12)))
)

The right margin. Numbers are considered as "pt" units.

C#
public GanttPdfMarginSettingsBuilder Right(double value)
Parameters:valuedouble

The value that configures the right.

Returns:

GanttPdfMarginSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Pdf(p => p.Margin(m => m.Right(12)))
)

The top margin. Numbers are considered as "pt" units.

C#
public GanttPdfMarginSettingsBuilder Top(double value)
Parameters:valuedouble

The value that configures the top.

Returns:

GanttPdfMarginSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Pdf(p => p.Margin(m => m.Top(12)))
)