MindFusion.Wpf Pack Programmer's Guide
InternalUtils.DrawRect Method
See Also
 





Draws the specified rectangle using the specified pen for stroking and the specified brush for filling.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public static void DrawRect (
    DrawingContext graphics,
    Pen p,
    Brush b,
    double x,
    double y,
    double width,
    double height
)

Visual Basic  Copy Code

Public Shared Sub DrawRect( _
    graphics As DrawingContext, _
    p As Pen, _
    b As Brush, _
    x As Double, _
    y As Double, _
    width As Double, _
    height As Double _
)

 Parameters

graphics

The DrawingContext object that represents the target of the drawing operation.

p

The Pen to use when drawing the outline.

b

The Brush to use when filling the contents.

x

The x-coordinate of the top-left corner of the drawn rectangle.

y

The y-coordinate of the top-left corner of the drawn rectangle.

width

The width of the drawn rectangle.

height

The height of the drawn rectangle.

 Remarks

This method supports the Diagramming for WPF infrastructure and is not intended to be used directly from your code.

 See Also

InternalUtils Members
InternalUtils Class
MindFusion.Diagramming.Wpf Namespace