ICanvas.DrawRectangle(Single, Single, Single, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Draws a rectangle onto the canvas.
public:
void DrawRectangle(float x, float y, float width, float height);
public void DrawRectangle (float x, float y, float width, float height);
abstract member DrawRectangle : single * single * single * single -> unit
Public Sub DrawRectangle (x As Single, y As Single, width As Single, height As Single)
Parameters
- x
- Single
Starting x
coordinate.
- y
- Single
Starting y
coordinate.
- width
- Single
Width of the rectangle.
- height
- Single
Height of the rectangle.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.