Code: Select all
this.cadImage.Rotate(Axes.Z, 90);
Code: Select all
private bool MultipleSelect()
{
if (cadImage.SelectionMode == SelectionEntityMode.Enabled)
{
int l = this.clipRectangle.ClientRectangle.Left;
int t = this.clipRectangle.ClientRectangle.Top;
DPoint pt1 = this.GetRealPoint(l, t);
DPoint pt2 = this.GetRealPoint(this.clipRectangle.ClientRectangle.Right, this.clipRectangle.ClientRectangle.Bottom);
DRect tmpRect = new DRect(pt1.X, pt1.Y, pt2.X, pt2.Y);
Region rg = cadImage.GetSelectEntityRegion(new Rectangle((int)l, (int)t, this.clipRectangle.ClientRectangle.Width, this.clipRectangle.ClientRectangle.Height));
try
{
cadImage.MultipleSelect(tmpRect, true, true);
}
catch { }
cadPictBox.Invalidate(rg);
rg.Dispose();
return true;
}
return false;
}
Do you know how solve this problem?