@dmaurya24 wrote:
i am new learner. i am trying to make text always in middle.
But it make center either by vertical.
` myDiagram.add(
$(go.Node, "Horizontal", {resizable: true, resizeObjectName: "textBox", rotatable: true, },
{ // the Node.location point will be at the center of each node
alignment: go.Spot.Center
},
$(go.TextBlock, { text: "verticalAlignment: Center", textAlign: "center",
width: 170, height: 60, background: "lightgreen", margin: 10,editable:true }),)); `
please help me to make text always on middle.
Posts: 2
Participants: 2