Show / Hide Table of Contents

Property toolbar.Offsets


Overload

Specifies distances between edges of the toolbar and edges of its owner, depending on toolbar.Anchor.

public TBOffsets Offsets { get; set; }
Property Value
TBOffsets

Remarks

Owner is specified when calling toolbar.Show. It can be a window, screen, control or other object.

The TBOffsets type has 4 properties - Top, Bottom, Left and Right, but used are only those included in toolbar.Anchor. For example, if Anchor is TopLeft, used are only Top and Left.

The unit of measurement depends on toolbar.DpiScaling and whether anchor is screen.

This property is updated when moving or resizing the toolbar. It is saved.

Examples

t.Offsets = new(150, 5, 0, 0);