public SetLocation ( int left, int top ) : void | ||
left | int | |
top | int | |
Результат | void |
public void SetLocation(int left, int top)
{
if (parentLink == null)
{
this.b_left = left;
this.b_top = top;
}
else
{
//set location not affect its content size
var prevBounds = this.RectBounds;
//----------------
this.b_left = left;
this.b_top = top;
//----------------
//combine before and after rect
//add to invalidate root invalidate queue
this.InvalidateGraphicBounds(Rectangle.Union(prevBounds, this.RectBounds));
}
}