Hi,
You can do that using a group of boxes:
Node CreateShape(RectangleF bounds)
{
Box shape = fc.CreateBox(bounds.X, bounds.Y, bounds.Width, bounds.Height);
shape.EnabledHandles = Handles.All & ~Handles.Rotate;
shape.HandlesStyle = HandlesStyle.DashFrame;
Box section1 = fc.CreateBox(bounds.X, bounds.Y, bounds.Width, bounds.Height / 3);
section1.AttachTo(shape, 0, 0, 100, 100f / 3);
section1.FillColor = Color.Red;
section1.Text = "section 1";
section1.IgnoreLayout = true;
section1.Locked = true;
Box section2 = fc.CreateBox(bounds.X, section1.BoundingRect.Bottom, bounds.Width, bounds.Height / 3);
section2.AttachTo(shape, 0, 100f / 3, 100, 200f / 3);
section2.FillColor = Color.Green;
section2.Text = "section 2";
section2.IgnoreLayout = true;
section2.Locked = true;
Box section3 = fc.CreateBox(bounds.X, section2.BoundingRect.Bottom, bounds.Width, bounds.Height / 3);
section3.AttachTo(shape, 0, 2 * 100f / 3, 100, 100f);
section3.FillColor = Color.Yellow;
section3.Text = "section 3";
section3.IgnoreLayout = true;
section3.Locked = true;
return shape;
}
I hope that helps,
Stoyan