You now have a third line setting, Shrinkline.

The BarMultiline property is an enumeration that offers three choices. The default Singleline will position items on a single line but will extend off the display area if there are too many to see at once. Multiline ensures they are all visible by creating as many lines of items as needed. Shrinkline places all items on a single line and will shrink the size of the items to ensure they are all visible.

Here we have several items that easily fit into the available width.

As the space gets smaller the items are shrunk so they are all shown.

Now we have very little space and so the check buttons are very small, but still usable.

Obviously if you keep getting even smaller the check buttons will become zero sized and so not be visible or usable. The ItemMinimumSize is ignored when shrinking the size.

Are there any other algorithms you need whilst I am working in this area?

Leave a Reply