Table of Contents

Class ListViewColumn

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Represents a column in a ListView control to be used in the DetailsView.

public class ListViewColumn : BaseControlItem, IBaseObjectWithId, IBaseObject
Inheritance
ListViewColumn
Implements

Remarks

A column is an item in a ListView control that contains column title text in the DetailsView. ListViewColumn objects can be added to a ListView using the Add(T) method of the collection returned by Columns property.

Constructors

ListViewColumn()

Initializes a new instance of the ListViewColumn class with default values.

ListViewColumn(string)

Initializes a new instance of the ListViewColumn class with the specified column title.

Properties

Index

Gets the location with the ListView control's Columns of this column.

IsAttached

Gets whether column is attached to the container and it's column index is specified.

ListView

Gets the ListView control the ListViewColumn is located in.

MaxAutoWidth

Gets or sets the maximal auto-width of the column, in device-independent units. This property is used when column width is specified in percents of the container's width. If it equals 0, it is not used.

MinAutoWidth

Gets or sets the minimal auto-width of the column, in device-independent units. This property is used when column width is specified in percents of the container's width. If it is negative, minimal width is calculated from title's width plus the absolute of the specified value.

Title

Gets or sets the title text displayed in the column header.

TitleSize

Gets size of the title's text string in device-independent units if column is attached to the container.

Width

Gets or sets the fixed width of the column, in device-independent units.

WidthMode

Gets or set the width sizing behavior for this column.

Methods

Assign(ListViewColumn)

Assigns properties from another ListViewColumn.

Clone()

Creates copy of this ListViewColumn.

InternalSetListViewAndIndex(ListView?, int?)

Sets owner control and column index. Do not call directly.

RaiseChanged(ColumnEventType)

Notifies container about the column changes.

ToString()

Returns a string that represents the current object.

WidthInPercentToDips(int, double?, double?)

Converts column width in percents (0..100) of the owner control's width to real width in device-independent units. If ListView is not assigned returns null.