4
TableLayoutPanel内のいくつかのラベルをセルの左上からセルの中央に移動しようとすると、パディングを追加することを試みています。マージン。プログラムで余白やパディングをラベルに割り当てる
しかし、何も私が試したことはありません。ここで私が試したコードとその結果です:
// Setting the padding just cuts off the bottom part of the text
//lbl.Padding = new System.Windows.Forms.Padding(1);
// How to set Margin?
//lbl.Margin = new System.Windows.Forms.Margin(1); <- This mimics "Padding" but is not recognized
//lbl.Margin = new Thickness(6); <- This is the only example I could find, but it's for WPF
質問ですWinformsの程度、これを:またやりたいかもしれません
javascriptのように見える? – RoadieRich