CustomDrawColumnHeaderEventArgs.Pressed Property

Gets a value indicating whether the painted element is pressed.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.2.dll

Declaration

public bool Pressed { get; }
Public ReadOnly Property Pressed As Boolean

Property Value

Type Description
Boolean

true if the painted element is pressed by an end-user; otherwise false.

Remarks

The TreeList.CustomDrawColumnHeader event gives you the ability to perform custom painting of both column headers and the column button. The event parameter properties allow you to determine the current state of the painted element. If the Pressed property returns true, the painted element is currently in a pressed state.

Column headers support a hot tracked state. Use the CustomDrawColumnHeaderEventArgs.HotTrack property to determine whether a column header is hot tracked (the mouse pointer hovers over it).

Use the above mentioned properties to provide varying look & feel for column headers and the column button in different states. They can also be used to perform custom painting for certain states of an element. Modify the CustomDrawEventArgs.Handled property with respect to the Pressed and CustomDrawColumnHeaderEventArgs.HotTrack properties for this purpose.

See Also