This documentation is archived and is not being maintained.

ListView.LabelWrap Property

Gets or sets a value indicating whether item labels wrap when items are displayed in the control as icons.

[Visual Basic]
Public Property LabelWrap As Boolean
public bool LabelWrap {get; set;}
public: __property bool get_LabelWrap();
public: __property void set_LabelWrap(bool);
public function get LabelWrap() : Boolean;
public function set LabelWrap(Boolean);

Property Value

true if item labels wrap when items are displayed as icons; otherwise, false. The default is true.


When the LabelWrap property is set to true, the item text is wrapped to the next line of text if needed. If the text is longer than two lines of text, the text is shortened. If the user selects the item, all the item text is displayed. If the LabelWrap property is set to false, all item text is displayed on a single line. The entire item text is displayed when the LabelWrap is set to false. This property is only used when the View property is set to View.LargeIcon or View.SmallIcon.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ListView Class | ListView Members | System.Windows.Forms Namespace | View