IDrawingContextImplDrawRegion Method
Draws the specified region with the specified Brush and Pen.
Namespace: Avalonia.PlatformAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
void DrawRegion(
IBrush? brush,
IPen? pen,
IPlatformRenderInterfaceRegion region
)
Sub DrawRegion (
brush As IBrush,
pen As IPen,
region As IPlatformRenderInterfaceRegion
)
abstract DrawRegion :
brush : IBrush *
pen : IPen *
region : IPlatformRenderInterfaceRegion -> unit
Parameters
- brush IBrush
- The brush used to fill the rectangle, or null for no fill.
- pen IPen
- The pen used to stroke the rectangle, or null for no stroke.
- region IPlatformRenderInterfaceRegion
- The region to draw.
The brush and the pen can both be null. If the brush is null, then no fill is performed.
If the pen is null, then no stoke is performed. If both the pen and the brush are null, then the drawing is not visible.