Back to Devexpress

SettingsBase.Width Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-settingsbase-f08791b5.md

latest3.6 KB
Original Source

SettingsBase.Width Property

Gets or sets the width of the extension.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public virtual Unit Width { get; set; }
vb
Public Overridable Property Width As Unit

Property Value

TypeDescription
Unit

The width of the extension.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Width
MVCxFormLayoutItem

.NestedExtensionSettings .Width

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Width property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-mvc-scheduler-fetch-appointment-event/CS/DevExpressMvcSchedulerFetchAppointments/Models/SchedulerSettingsHelper.cs#L29

csharp
settings.Width = 300;
settings.Views.WeekView.Styles.DateCellBody.Height = 50;

asp-net-mvc-spreadsheet-work-with-database/CS/DXWebApplication23/Controllers/HomeController.cs#L28

csharp
settings.CallbackRouteValues = new { Controller = "Home", Action = "SpreadsheetPartial" };
settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
settings.Height = 500;

asp-net-mvc-scheduler-fetch-appointment-event/VB/DevExpressMvcSchedulerFetchAppointments/Models/SchedulerSettingsHelper.vb#L27

vb
settings.Width = 300
settings.Views.WeekView.Styles.DateCellBody.Height = 50

asp-net-mvc-spreadsheet-work-with-database/VB/DXWebApplication23/Controllers/HomeController.vb#L30

vb
settings.CallbackRouteValues = New With {Key .Controller = "Home", Key .Action = "SpreadsheetPartial"}
settings.Width = System.Web.UI.WebControls.Unit.Percentage(100)
settings.Height = 500

See Also

Height

SettingsBase Class

SettingsBase Members

DevExpress.Web.Mvc Namespace