View::ListViewMode property

The ListViewMode property sets or returns the mode of the list view. This property is read/write.

Syntax


Property ListViewMode As ListViewMode

Property value

The list view's mode, as one of the following ListViewMode enumerated types.

ListMode_Small_Icons

The list view is displayed with small icons.

ListMode_Large_Icons

The list view is displayed with large icons.

ListMode_List

A simple list view is displayed.

ListMode_Detail

A detailed list view is displayed.

ListMode_Filtered

A filtered list view is displayed.

Examples


Dim LVM As MMC20.ListViewMode
 
' Retrieve the View's ListViewMode property.
LVM = objView.ListViewMode
 
' Display a message that states the ListViewMode in effect.
Select Case LVM
  Case ListMode_Detail
      MsgBox ("List view is in Detail mode.")
  Case ListMode_Filtered
      MsgBox ("List view is in Filtered mode.")
  Case ListMode_Large_Icons
      MsgBox ("List view is in Large icon mode.")
  Case ListMode_List
      MsgBox ("List view is in Simple list mode.")
  Case ListMode_Small_Icons
      MsgBox ("List view is in Small icon mode.")
  Case Else
      MsgBox ("Unexpected value for ListViewMode")
End Select
 
' Set the View's ListView Mode property.
objView.ListViewMode = ListMode_Large_Icons

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

MMCObj.h

IDL

MMCObj.idl

DLL

Mmc.exe

IID

IID_View is defined as 6EFC2DA2-B38C-457E-9ABB-ED2D189B8C38

See also

ListViewMode

 

 

Show: