TreeListColumnEditorPropertiesFactory.Image(Action<MVCxColumnImageEditProperties>) Method

Allows you to configure an image column.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v20.1.dll

Declaration

public void Image(
    Action<MVCxColumnImageEditProperties> method
)
Public Sub Image(
    method As Action(Of MVCxColumnImageEditProperties)
)

Parameters

Name Type Description
method Action<MVCxColumnImageEditProperties>

A delegate method that accepts an MVCxColumnImageEditProperties object as a parameter.

Remarks


settings.Columns.Add(column => {
     column.FieldName = "Photo";
     column.EditorProperties().Image(p => {
          p.ImageHeight = 200;
          p.ImageWidth = 200;
     });
});
See Also