【问题标题】:Is it possible to align the BackgroundImage of a ListView?是否可以对齐 ListView 的 BackgroundImage?
【发布时间】:2011-03-18 12:38:35
【问题描述】:

我在 C# winforms 应用程序中将图像(星形图标)作为背景图像分配给我的列表视图。

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

是否可以对齐图像以使其显示在左上角以外的位置?

【问题讨论】:

  • 此线程中提供了一个非常简单的答案。什么挂机,还需要什么?

标签: c# winforms .net-3.5 listview alignment


【解决方案1】:

如果你想要对齐,请使用 Image 属性,而不是 BackgroundImage。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-08
    • 2022-01-25
    相关资源
    最近更新 更多