RichEditCustomDocumentProcessor.Unit(RichEditUnit) Method
In This Article
Specifies the measurement unit.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public RichEditCustomDocumentProcessor Unit(
RichEditUnit unit
)
#Parameters
Name | Type | Description |
---|---|---|
unit | Rich |
The unit. |
#Returns
Type | Description |
---|---|
Rich |
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