Hello,
here is some demo code and the resulting problems for me as screeenshots:
ContainerNode node = new ContainerNode(diagram1);
node.Bounds = new RectangleF(100, 100, 100, 30);
node.AnchorPattern = AnchorPattern.TopInBottomOut;
node.Obstacle = true;
diagram1.Nodes.Add(node);
RectangleF r = node.GetBounds();
RectangleF rnew = new RectangleF(r.X, r.Y + r.Height + node.Margin, 0, 0);
TableNode tableNode = diagram1.Factory.CreateTableNode(rnew);
tableNode.Style = TableStyle.Rectangle;
tableNode.CaptionHeight = 5;
tableNode.CaptionFormat.Alignment = StringAlignment.Near;
tableNode.HandlesStyle = MindFusion.Diagramming.HandlesStyle.Custom;
tableNode.Caption = "<b><u>Prozessschritte:</b></u>";
tableNode.Font = new Font("Arial", (float)3, GraphicsUnit.World);
tableNode.Brush = new MindFusion.Drawing.SolidBrush(Color.White);
tableNode.CellFrameStyle = CellFrameStyle.Simple;
tableNode.EnableStyledText = true;
tableNode.TextColor = Color.Black;
tableNode.ShadowOffsetX = 0;
tableNode.ShadowOffsetY = 0;
tableNode.AllowIncomingLinks = false;
tableNode.AllowOutgoingLinks = false;
#region *** Data
tableNode.RedimTable(4, 3);
tableNode.Columns[3].ColumnStyle = MindFusion.Diagramming.ColumnStyle.AutoWidth;
tableNode[0, 0].Text = "Name";
tableNode[1, 0].Text = "Typ";
tableNode[2, 0].Text = "[min]";
tableNode[3, 0].Text = "St";
tableNode[3, 0].TextFormat.Alignment = StringAlignment.Center;
tableNode[0, 1].Text = "Schrankgestell Large 1410265DTMT";
tableNode[1, 1].Text = "1410265";
tableNode[2, 1].Text = "30,00";
tableNode[3, 1].Image = new Bitmap("C:\\tls\\TLS.PPT\\trunk\\src\\TLS.PPT.Gui.AppFramework\\Resources\\Images\\green.png");
tableNode[3, 1].ImageAlign = MindFusion.Drawing.ImageAlign.Center;
tableNode[0, 2].Text = "Netzteil QT-20 3X380-480/24VDC/20A1356387 Puls";
tableNode[1, 2].Text = "1356387";
tableNode[2, 2].Text = "20,00";
tableNode[3, 2].Image = new Bitmap("C:\\tls\\TLS.PPT\\trunk\\src\\TLS.PPT.Gui.AppFramework\\Resources\\Images\\green.png");
tableNode[3, 2].ImageAlign = MindFusion.Drawing.ImageAlign.Center;
#endregion
tableNode.ResizeToFitText(true, false);
RectangleF rect = tableNode.Bounds;
if (rect.Width < 100)
{
rect.Width = 100;
}
tableNode.Bounds = rect;
node.Add(tableNode);