Outline Class
Contains image outline settings.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v24.2.dll
NuGet Package: DevExpress.Blazor.RichEdit
Declaration
public class Outline :
IOutline
Related API Members
The following members return Outline objects:
Remarks
Use the Outline property to get the settings of the image‘s outline. The ChangePropertiesAsync method allows you to specify these settings.
<DxRichEdit @ref="richEdit" />
@code {
DxRichEdit richEdit;
Document documentAPI;
@* ... *@
/* Surround the code that contains an asynchronous operation with a try-catch block to handle
the OperationCanceledException. This exception is thrown when an asynchronous operation is canceled. */
try {
documentAPI = richEdit.DocumentAPI;
@* ... *@
Image firstImage = await documentAPI.Images.GetAsync(0);
@* ... *@
await firstImage.ChangePropertiesAsync(properties => {
if (firstImage.Outline.Width == 0) {
properties.Outline.Color = System.Drawing.Color.Black;
properties.Outline.Width = UnitConverter.CentimetersToTwips(0.2f);
}
});
@* ... *@
}
catch (OperationCanceledException e) {
Console.WriteLine($"{nameof(OperationCanceledException)} thrown with message: {e.Message}");
}
}
Implements
Inheritance
Object
Outline
See Also