ListView Class

Definition

Line 209 of System.Windows/ListView.cm

Inheritance

Constructors & Destructor

public ListView(ListViewCreateParams& createParams)

Member Functions

public nothrow void AddColumn(const String<char>& name, int width)
public ListViewItem* AddItem()
public nothrow int ColumnCount() const
public nothrow ListViewColumnDivider* ColumnDividerAt(const Point& location) const
public nothrow const Padding& ColumnDividerPadding() const
public nothrow const Pen& ColumnDividerPen() const
public inline nothrow float ColumnDividerWidth() const
public nothrow const Padding& ColumnHeaderPadding() const
public nothrow const Brush& ColumnHeaderTextBrush() const
public nothrow Event<ListViewColumnEventHandler, ListViewColumnEventArgs>& ColumnWidthChangedEvent()
public inline nothrow void* Data() const
public nothrow const Brush* DisabledItemTextBrush() const
private void DrawColumnHeader(Graphics& graphics, PointF& origin)
private void DrawItems(Graphics& graphics, PointF& origin)
public nothrow float EllipsisWidth() const
public void FireColumnWidthChanged(ListViewColumn* column)
public ListViewColumn& GetColumn(int columnIndex)
public const ListViewColumn& GetColumn(int columnIndex) const
public inline nothrow bool GetFlag(Flags flag) const
public inline nothrow ImageList* GetImageList() const
public ListViewItem& GetItem(int itemIndex)
public const ListViewItem& GetItem(int itemIndex) const
public nothrow List<ListViewItem*> GetSelectedItems() const
public const StringFormat& GetStringFormat() const
public nothrow const Padding& ImagePadding() const
public nothrow ListViewItem* ItemAt(const Point& location) const
public nothrow Event<ListViewItemEventHandler, ListViewItemEventArgs>& ItemClickEvent()
public nothrow const Padding& ItemColumnPadding() const
public int ItemCount() const
public nothrow Event<ListViewItemEventHandler, ListViewItemEventArgs>& ItemDoubleClickEvent()
public nothrow Event<ListViewItemEventHandler, ListViewItemEventArgs>& ItemEnterEvent()
public nothrow Event<ListViewItemEventHandler, ListViewItemEventArgs>& ItemLeaveEvent()
public nothrow const Padding& ItemPadding() const
public nothrow Event<ListViewItemEventHandler, ListViewItemEventArgs>& ItemRightClickEvent()
public nothrow const Brush& ItemSelectedBrush() const
public nothrow const Brush* ItemTextBrush() const
private void Measure(Graphics& graphics)
private void MeasureItems(Graphics& graphics, Size& contentSize)
protected virtual void OnColumnWidthChanged(ListViewColumnEventArgs& args)
protected override void OnMouseDoubleClick(MouseEventArgs& args)
protected override void OnMouseDown(MouseEventArgs& args)
protected override void OnMouseEnter()
protected override void OnMouseLeave()
protected override void OnMouseMove(MouseEventArgs& args)
protected override void OnMouseUp(MouseEventArgs& args)
protected override void OnPaint(PaintEventArgs& args)
protected override void OnSizeChanged(uint windowState)
public nothrow void ResetFlag(Flags flag)
public nothrow void ResetSelectedItems()
public inline nothrow ListViewItem* SelectedItem() const
protected override void SetCursor()
public nothrow void SetData(void* data_)
public nothrow void SetFlag(Flags flag)
public nothrow void SetImageList(ImageList* imageList_)
public nothrow void SetSelectedItem(ListViewItem* selectedItem_)
public inline nothrow float TextHeight() const

Enumerated Types

public enum Flags

Member Variables

private Cursor arrowCursor
private float charHeight
private float charWidth
private Padding columnDividerPadding
private Pen columnDividerPen
private float columnDividerWidth
private List<UniquePtr<ListViewColumnDivider>> columnDividers
private Padding columnHeaderPadding
private SolidBrush columnHeaderTextBrush
private Cursor& columnSizeCursor
private Event<ListViewColumnEventHandler, ListViewColumnEventArgs> columnWidthChangedEvent
private List<UniquePtr<ListViewColumn>> columns
private void* data
private SolidBrush disabledItemTextBrush
private float ellipsisWidth
private Flags flags
private ImageList* imageList
private Padding imagePadding
private Event<ListViewItemEventHandler, ListViewItemEventArgs> itemClickEvent
private Padding itemColumnPadding
private Event<ListViewItemEventHandler, ListViewItemEventArgs> itemDoubleClickEvent
private Event<ListViewItemEventHandler, ListViewItemEventArgs> itemEnterEvent
private Event<ListViewItemEventHandler, ListViewItemEventArgs> itemLeaveEvent
private Padding itemPadding
private Event<ListViewItemEventHandler, ListViewItemEventArgs> itemRightClickEvent
private SolidBrush itemSelectedBrush
private SolidBrush itemTextBrush
private List<UniquePtr<ListViewItem>> items
private ListViewColumnDivider* mouseDownColumnDivider
private ListViewItem* mouseDownItem
private ListViewItem* mouseEnterItem
private ListViewItem* selectedItem
private StringFormat stringFormat

Constructor& Destructor Details

ListView Constructor

public ListView(ListViewCreateParams& createParams)

Definition
Line 215 of System.Windows/ListView.cm


Member Function Details

AddColumn Member Function

public nothrow void AddColumn(const String<char>& name, int width)

Definition
Line 315 of System.Windows/ListView.cm


AddItem Member Function

public ListViewItem* AddItem()

Definition
Line 341 of System.Windows/ListView.cm


ColumnCount Member Function

public nothrow int ColumnCount()

Definition
Line 311 of System.Windows/ListView.cm


ColumnDividerAt Member Function

public nothrow ListViewColumnDivider* ColumnDividerAt(const Point& location)

Definition
Line 423 of System.Windows/ListView.cm


ColumnDividerPadding Member Function

public nothrow const Padding& ColumnDividerPadding()

Definition
Line 291 of System.Windows/ListView.cm


ColumnDividerPen Member Function

public nothrow const Pen& ColumnDividerPen()

Definition
Line 275 of System.Windows/ListView.cm


ColumnDividerWidth Member Function

public inline nothrow float ColumnDividerWidth()

Definition
Line 439 of System.Windows/ListView.cm


ColumnHeaderPadding Member Function

public nothrow const Padding& ColumnHeaderPadding()

Definition
Line 279 of System.Windows/ListView.cm


ColumnHeaderTextBrush Member Function

public nothrow const Brush& ColumnHeaderTextBrush()

Definition
Line 259 of System.Windows/ListView.cm


ColumnWidthChangedEvent Member Function

public nothrow Event<ListViewColumnEventHandler, ListViewColumnEventArgs>& ColumnWidthChangedEvent()

Definition
Line 480 of System.Windows/ListView.cm


Data Member Function

public inline nothrow void* Data()

Definition
Line 456 of System.Windows/ListView.cm


DisabledItemTextBrush Member Function

public nothrow const Brush* DisabledItemTextBrush()

Definition
Line 267 of System.Windows/ListView.cm


DrawColumnHeader Member Function

private void DrawColumnHeader(Graphics& graphics, PointF& origin)

Definition
Line 718 of System.Windows/ListView.cm


DrawItems Member Function

private void DrawItems(Graphics& graphics, PointF& origin)

Definition
Line 736 of System.Windows/ListView.cm


EllipsisWidth Member Function

public nothrow float EllipsisWidth()

Definition
Line 443 of System.Windows/ListView.cm


FireColumnWidthChanged Member Function

public void FireColumnWidthChanged(ListViewColumn* column)

Definition
Line 447 of System.Windows/ListView.cm


GetColumn Member Function

public ListViewColumn& GetColumn(int columnIndex)

Definition
Line 329 of System.Windows/ListView.cm


GetColumn Member Function

public const ListViewColumn& GetColumn(int columnIndex)

Definition
Line 321 of System.Windows/ListView.cm


GetFlag Member Function

public inline nothrow bool GetFlag(Flags flag)

Definition
Line 299 of System.Windows/ListView.cm


GetImageList Member Function

public inline nothrow ImageList* GetImageList()

Definition
Line 247 of System.Windows/ListView.cm


GetItem Member Function

public ListViewItem& GetItem(int itemIndex)

Definition
Line 355 of System.Windows/ListView.cm


GetItem Member Function

public const ListViewItem& GetItem(int itemIndex)

Definition
Line 347 of System.Windows/ListView.cm


GetSelectedItems Member Function

public nothrow List<ListViewItem*> GetSelectedItems()

Definition
Line 386 of System.Windows/ListView.cm


GetStringFormat Member Function

public const StringFormat& GetStringFormat()

Definition
Line 255 of System.Windows/ListView.cm


ImagePadding Member Function

public nothrow const Padding& ImagePadding()

Definition
Line 295 of System.Windows/ListView.cm


ItemAt Member Function

public nothrow ListViewItem* ItemAt(const Point& location)

Definition
Line 411 of System.Windows/ListView.cm


ItemClickEvent Member Function

public nothrow Event<ListViewItemEventHandler, ListViewItemEventArgs>& ItemClickEvent()

Definition
Line 460 of System.Windows/ListView.cm


ItemColumnPadding Member Function

public nothrow const Padding& ItemColumnPadding()

Definition
Line 287 of System.Windows/ListView.cm


ItemCount Member Function

public int ItemCount()

Definition
Line 337 of System.Windows/ListView.cm


ItemDoubleClickEvent Member Function

public nothrow Event<ListViewItemEventHandler, ListViewItemEventArgs>& ItemDoubleClickEvent()

Definition
Line 468 of System.Windows/ListView.cm


ItemEnterEvent Member Function

public nothrow Event<ListViewItemEventHandler, ListViewItemEventArgs>& ItemEnterEvent()

Definition
Line 472 of System.Windows/ListView.cm


ItemLeaveEvent Member Function

public nothrow Event<ListViewItemEventHandler, ListViewItemEventArgs>& ItemLeaveEvent()

Definition
Line 476 of System.Windows/ListView.cm


ItemPadding Member Function

public nothrow const Padding& ItemPadding()

Definition
Line 283 of System.Windows/ListView.cm


ItemRightClickEvent Member Function

public nothrow Event<ListViewItemEventHandler, ListViewItemEventArgs>& ItemRightClickEvent()

Definition
Line 464 of System.Windows/ListView.cm


ItemSelectedBrush Member Function

public nothrow const Brush& ItemSelectedBrush()

Definition
Line 271 of System.Windows/ListView.cm


ItemTextBrush Member Function

public nothrow const Brush* ItemTextBrush()

Definition
Line 263 of System.Windows/ListView.cm


Measure Member Function

private void Measure(Graphics& graphics)

Definition
Line 694 of System.Windows/ListView.cm


MeasureItems Member Function

private void MeasureItems(Graphics& graphics, Size& contentSize)

Definition
Line 703 of System.Windows/ListView.cm


OnColumnWidthChanged Member Function

protected virtual void OnColumnWidthChanged(ListViewColumnEventArgs& args)

Definition
Line 669 of System.Windows/ListView.cm


OnMouseDoubleClick Member Function

protected override void OnMouseDoubleClick(MouseEventArgs& args)

Definition
Line 581 of System.Windows/ListView.cm


OnMouseDown Member Function

protected override void OnMouseDown(MouseEventArgs& args)

Definition
Line 512 of System.Windows/ListView.cm


OnMouseEnter Member Function

protected override void OnMouseEnter()

Definition
Line 598 of System.Windows/ListView.cm


OnMouseLeave Member Function

protected override void OnMouseLeave()

Definition
Line 609 of System.Windows/ListView.cm


OnMouseMove Member Function

protected override void OnMouseMove(MouseEventArgs& args)

Definition
Line 625 of System.Windows/ListView.cm


OnMouseUp Member Function

protected override void OnMouseUp(MouseEventArgs& args)

Definition
Line 541 of System.Windows/ListView.cm


OnPaint Member Function

protected override void OnPaint(PaintEventArgs& args)

Definition
Line 489 of System.Windows/ListView.cm


OnSizeChanged Member Function

protected override void OnSizeChanged(uint windowState)

Definition
Line 484 of System.Windows/ListView.cm


ResetFlag Member Function

public nothrow void ResetFlag(Flags flag)

Definition
Line 307 of System.Windows/ListView.cm


ResetSelectedItems Member Function

public nothrow void ResetSelectedItems()

Definition
Line 398 of System.Windows/ListView.cm


SelectedItem Member Function

public inline nothrow ListViewItem* SelectedItem()

Definition
Line 363 of System.Windows/ListView.cm


SetCursor Member Function

protected override void SetCursor()

Definition
Line 673 of System.Windows/ListView.cm


SetData Member Function

public nothrow void SetData(void* data_)

Definition
Line 452 of System.Windows/ListView.cm


SetFlag Member Function

public nothrow void SetFlag(Flags flag)

Definition
Line 303 of System.Windows/ListView.cm


SetImageList Member Function

public nothrow void SetImageList(ImageList* imageList_)

Definition
Line 251 of System.Windows/ListView.cm


SetSelectedItem Member Function

public nothrow void SetSelectedItem(ListViewItem* selectedItem_)

Definition
Line 367 of System.Windows/ListView.cm


TextHeight Member Function

public inline nothrow float TextHeight()

Definition
Line 435 of System.Windows/ListView.cm