HeaderPane
Main
Hide
Share Link
Print

GetButtonPositionPix Method, SftTreeHeader Object

Returns the coordinates of the header dropdown/filter button area.

Syntax

VB.NETBoolean = object.GetButtonPositionPix(ByRef LeftPix As Integer, ByRef TopPix As Integer, ByRef WidthPix As Integer, ByRef HeightPix As Integer) As Boolean
VBBoolean = object.GetButtonPositionPix(LeftPix As OLE_XPOS_PIXELS, TopPix As OLE_YPOS_PIXELS, WidthPix As OLE_XSIZE_PIXELS, HeightPix As OLE_YSIZE_PIXELS) As Boolean
C#.NETbool Boolean = object.GetButtonPositionPix(out int LeftPix, out int TopPix, out int WidthPix, out int HeightPix);
VC++VARIANT_BOOL Boolean = object->GetButtonPositionPix(OLE_XPOS_PIXELS* LeftPix, OLE_YPOS_PIXELS* TopPix, OLE_XSIZE_PIXELS* WidthPix, OLE_YSIZE_PIXELS* HeightPix);
CHRESULT object->raw_GetButtonPositionPix(OLE_XPOS_PIXELS* LeftPix, OLE_YPOS_PIXELS* TopPix, OLE_XSIZE_PIXELS* WidthPix, OLE_YSIZE_PIXELS* HeightPix, VARIANT_BOOL* Boolean);

object

A SftTreeHeader object.

LeftPix

Returns the horizontal position of the header dropdown/filter button area relative to the top, left corner of the tree control in pixels.

TopPix

Returns the vertical position of the header dropdown/filter button area relative to the top, left corner of the tree control in pixels.

WidthPix

Returns the width of the header dropdown/filter button area in pixels.

HeightPix

Returns the height of the header dropdown/filter button area in pixels.

Boolean

BooleanDescription
TrueThe column header has a dropdown/filter button area. The returned coordinates are valid.
FalseThe column header is not displayed or has no dropdown/filter button area. The returned coordinates are 0.

Comments

The GetButtonPositionPix method returns the coordinates of the header dropdown/filter button area. If no header dropdown/filter button is shown, this method returns WidthPix/HeightPix 0.

The Header.GetButtonPosition and Header.GetButtonPositionPix methods are synonyms, but may use different coordinate systems.

To retrieve the coordinates of the entire column header, use Header.GetPosition instead.

See Also SftTreeHeader Object | Object Hierarchy


Last Updated 10/11/2026 - (email)
© 2026 Softel vdm, Inc.