Back to Devexpress

TreeList.LeftCoord Property

windowsforms-devexpress-dot-xtratreelist-dot-treelist-830e8dae.md

latest2.7 KB
Original Source

TreeList.LeftCoord Property

Gets or sets a value specifying the number of pixels by which the control’s content is scrolled horizontally.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
[Browsable(false)]
public int LeftCoord { get; set; }
vb
<Browsable(False)>
Public Property LeftCoord As Integer

Property Value

TypeDescription
Int32

An integer value specifying the horizontal scrolling offset of the control’s content in pixels.

|

Remarks

If the total width of columns exceeds the TreeList control’s client width, a horizontal scrollbar appears. When the scrollbar is in its leftmost position, the LeftCoord property value is 0. Otherwise, this property value indicates the number of pixels by which the control’s content is scrolled horizontally.

You can read the LeftCoord property, to determine whether horizontal scrolling has been performed by an end-user, and to obtain the scrolling offset. Assign a value to the LeftCoord property, to scroll the control’s content horizontally. Vertical scrolling can be performed via the TreeList.TopVisibleNodeIndex property.

Horizontal scrolling is not available if the TreeListOptionsView.AutoWidth view option is enabled. In this instance, the LeftCoord property returns 0 , and assigning to this property is not in effect.

Handle the TreeList.LeftCoordChanged event, to respond to horizontal scrolling of the TreeList control’s content.

See Also

LeftCoordChanged

AutoWidth

TopVisibleNodeIndex

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace