C#
VB
C++
Initiates drawing on this surface.
rect
The region of the surface on which drawing will be performed.
Drawing operations can only be issued between BeginDraw and EndDraw calls.
Pass an Empty Rectangle to draw on the entire surface.
For an example, refer to D2DSurface.