开发者

Is it possible to align the BackgroundImage of a ListView?

开发者 https://www.devze.com 2023-01-08 15:09 出处:网络
I am assig开发者_如何学运维ning an image (star icon) as a background image to my listview in a C# winforms application.

I am assig开发者_如何学运维ning an image (star icon) as a background image to my listview in a C# winforms application.

listview1.BackgroundImage = Image.FromFile("star.png");

Is it possible to align the image so that it appears somewhere other than the top left-hand corner?


I you want alignment, use the Image property, not BackgroundImage.

0

精彩评论

暂无评论...
验证码 换一张
取 消