Method SetNeedsDraw
SetNeedsDraw()
public void SetNeedsDraw()
Remarks
SetNeedsDraw(Rectangle)
Expands the area of this view needing to be redrawn to include viewPortRelativeRegion.
public void SetNeedsDraw(Rectangle viewPortRelativeRegion)
Parameters
viewPortRelativeRegionRectangleThe viewport-local region that needs to be redrawn.
Remarks
viewPortRelativeRegion is in viewport-LOCAL coordinates:
(0, 0) is the top-left visible cell of the View's Viewport.
The rect does NOT include Viewport's Location
(scroll offset).
The cascade to intersecting SubViews translates the region into each SubView's own viewport-local coordinates, accounting for the parent's scroll and the SubView's adornments. Viewport-local coordinates are scroll-independent, so the SubView's own Viewport Location does not affect the propagated rect.
If the view has not been initialized (IsInitialized is false), the area to be
redrawn will be the viewPortRelativeRegion.