Offset Property
Collapse the table of content
Expand the table of content

SnapLine.Offset Property


Gets the number of pixels that the snapline is offset from the origin of the associated control.

Namespace:   System.Windows.Forms.Design.Behavior
Assembly:  System.Design (in System.Design.dll)

public int Offset { get; }

Property Value

Type: System.Int32

The offset, in pixels, of the snapline.

The origin of a control is the upper-left point of the control. A single offset can describe the position of a snapline, because vertical snaplines may have only a nonzero x-axis offset, whereas horizontal snaplines may only have a nonzero y-axis offset.

The Offset property is initialized at construction time, but it can be changed thereafter with the AdjustOffset method.

.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft