Skip to main content

RichEditCustomDocumentProcessor.Unit(RichEditUnit) Method

Specifies the measurement unit.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public RichEditCustomDocumentProcessor Unit(
    RichEditUnit unit
)

Parameters

Name Type Description
unit RichEditUnit

The unit.

Returns

Type Description
RichEditCustomDocumentProcessor

An object that allows you to further process a document in the Controller in a custom manner.

Remarks

Use the Unit method to specify the measurement unit in the GetCallbackResult method.

public ActionResult RichEditPartial(){
  var callbackResult = RichEditExtension.GetCallbackResult("RichEdit", p => {
    p.Saving(e => {
      e.Handled = true;
    })
    .Unit(DevExpress.Web.ASPxRichEdit.RichEditUnit.Centimeter);
  });
  return callbackResult;
}
See Also