PageCanvas.FillRectangle(RichEditBrushBase, Rectangle) Method
Draws a filled custom rectangle.
Namespace: DevExpress.XtraRichEdit.API.Layout
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
#Declaration
public void FillRectangle(
RichEditBrushBase brush,
Rectangle bounds
)
#Parameters
Name | Type | Description |
---|---|---|
brush | Rich |
The Rich |
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
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the FillRectangle(RichEditBrushBase, Rectangle) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.