Skip to main content
A newer version of this page is available. .

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.v19.2.dll

Declaration

[Browsable(false)]
public int LeftCoord { get; set; }

Property Value

Type Description
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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the LeftCoord property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also