PageCanvas.FillRectangle(RichEditBrushBase, Rectangle) Method
Draws a filled custom rectangle.
Namespace: DevExpress.XtraRichEdit.API.Layout
Assembly: DevExpress.RichEdit.v26.1.Core.dll
NuGet Package: DevExpress.RichEdit.Core
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| brush | RichEditBrushBase | The RichEditBrushBasedescendant that sets the shape’s color and thickness. |
| bounds | Rectangle | Sets the shape’s location and size. |
Example
This code snippet illustrates the implementation of the PageCanvas.FillRectangle method. It draws a filled color rectangle in place of the numbering list mark.
Public Overrides Sub DrawNumberingListWithSeparatorBox(ByVal numberingListWithSeparatorBox As NumberingListWithSeparatorBox)
If Form1.customDrawSeparator = True Then
Canvas.FillRectangle(New RichEditBrush(Color.DarkRed), numberingListWithSeparatorBox.Bounds)
Else
MyBase.DrawNumberingListWithSeparatorBox(numberingListWithSeparatorBox)
End If
End Sub
See Also