嗨,我想将我的图表分成四个部分,所以我定义了 4 个相等的矩形,但在 bounds3 和 bounds4 中仍然有一些缺失的节点。谁能帮忙!
//b = (X, Y, Width, Height).
// Original Diagram
Rect b = activeDiagram.Panel.DiagramBounds; // b = (-370, -190, 3099, 2450).
Rect bounds1 = new Rect(b.X, b.Y, w/2, h/2); //top left corner
Rect bounds2 = new Rect(b.X, b.Y + h/2, w/2, h/2); //bottom left corner
Rect bounds3 = new Rect(b.X + w/2, b.Y, w/2, h/2); //top right corner
Rect bounds4 = new Rect(b.X + w/2, b.Y + h/2, w/2, h/2); //bottom right corner