ListViewItem.EnsureVisible Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Ensures that the item is visible within the control, scrolling the contents of the control, if necessary.
public:
virtual void EnsureVisible();
public virtual void EnsureVisible();
abstract member EnsureVisible : unit -> unit
override this.EnsureVisible : unit -> unit
Public Overridable Sub EnsureVisible ()
You can use this method to ensure that the item is visible within the ListView control. This method can be used when performing validation on the item. You can call the EnsureVisible method to ensure that the item is displayed in the ListView control if it failed validation, to allow the user to perform changes on the item.
This method is similar to the EnsureVisible method of the ListView control.
Product | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: