BrightIdeasSoftware.ObjectListView.SetNativeBackgroundWatermark C# (CSharp) Method

SetNativeBackgroundWatermark() public method

Set the given image to be fixed in the bottom right of the list view. This image will not scroll when the list view scrolls.

This method uses ListView's native ability to display a background image. It has a few limitations:

It doesn't work well with owner drawn mode. In owner drawn mode, each cell draws itself, including its background, which covers the background image. It doesn't look very good when grid lines are enabled, since the grid lines are drawn over the image. It does not work at all on XP. Obviously, it doesn't look good when alternate row background colors are enabled.

If you can live with these limitations, native watermarks are quite neat. They are true backgrounds, not translucent overlays like the OverlayImage uses. They also have the decided advantage over overlays in that they work correctly even in MDI applications.

Setting this clears any background image.

public SetNativeBackgroundWatermark ( Image image ) : void
image Image The image to be drawn. If null, any existing image will be removed.
return void
        public void SetNativeBackgroundWatermark(Image image)
        {
            NativeMethods.SetBackgroundImage(this, image, true, false, 0, 0);
        }
ObjectListView