📜  C# 分配图像位置 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:15.629000             🧑  作者: Mango

代码示例2
PictureBox picture = new PictureBox
        {
            Name = "pictureBox",
            Size = new Size(100, 50),
            Location = new Point(14, 17),
            Image = Image.FromFile(@"c:\Images\test.jpg"),
            SizeMode = PictureBoxSizeMode.CenterImage
        };
p.Controls.Add(picture);