Snažím sa vložiť text ako štítok do RectangleShape
vo Winforms.
Ako to môžem urobiť?
Poznámka: Toto by sa malo stať dyamicky touto metódou: (to je všetko, čo teraz mám)
private RectangleShape drawRectangle(int x, int y)
{
width = 200;
height = 100;
ShapeContainer shape = new ShapeContainer();
RectangleShape rectangle = new RectangleShape(x, y, width, height);
shape.Parent = panel;
rectangle.Parent = shape;
return rectangle;
}
odpovede:
2 pre odpoveď č. 1Nájdete ho tu:
Text v obdĺžniku