HeaderPane
Main
Hide
Share Link
Print

OffsetPix Property, SftTreeSplitter Object

Defines the horizontal offset of the splitter bar in a split tree control.

Syntax

Get

C#int OffsetPix = object.OffsetPix;
VB.NETOffsetPix = object.OffsetPix As Integer
C++long OffsetPix = object->OffsetPix;
long OffsetPix = object->GetOffsetPix();
CHRESULT object->get_OffsetPix(long* OffsetPix);
VBOffsetPix = object.OffsetPix As Long

Put

C#int object.OffsetPix = OffsetPix;
VB.NETobject.OffsetPix = OffsetPix As Integer
C++long object->OffsetPix = OffsetPix;
void object->PutOffsetPix(long OffsetPix);
CHRESULT object->put_OffsetPix(long OffsetPix);
VBobject.OffsetPix = OffsetPix As Long

object

A SftTreeSplitter object.

OffsetPix

Defines the horizontal offset of the splitter bar in a split tree control in pixels. If -1 is specified, the splitter bar is centered in the tree control's client area making each pane the same size and the Splitter.Offset property is updated with the actual offset. If the offset specified falls outside of the client area, the splitter bar is aligned with the left or right edge, whichever is closer to the offset specified.

Comments

The OffsetPix property defines the horizontal offset of the splitter bar in a split tree control.

The Splitter.Offset and OffsetPix properties are synonyms, but may use different coordinate systems.

The Splitter.Visible property is used to define a splitter bar.

Splitter.MakeOptimal can be used to position the splitter bar optimally, so the left pane can display as much data as possible without a horizontal scroll bar (based on the left pane's Items.HorizontalExtent property).

The coordinates of the splitter bar can be retrieved using Splitter.GetPosition.

The Splitter.Width property is used to change the width of the splitter bar.

See Also SftTreeSplitter Object | Object Hierarchy


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