SnapLine Constructor (SnapLineType, Int32, String, SnapLinePriority)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the SnapLine class using the specified snapline type, offset, filter name, and priority.

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

public SnapLine(
	SnapLineType type,
	int offset,
	string filter,
	SnapLinePriority priority
)

Parameters

type
Type: System.Windows.Forms.Design.Behavior.SnapLineType

The SnapLineType to create. Describes the relative position and orientation of the snapline.

offset
Type: System.Int32

The position of the snapline, in pixels, relative to the upper-left origin of the owning control.

filter
Type: System.String

A String used to specify a programmer-defined category of snaplines.

priority
Type: System.Windows.Forms.Design.Behavior.SnapLinePriority

The SnapLinePriority of the snapline.

This constructor sets all of the properties of a snapline to programmer-supplied values.

.NET Framework
Available since 2.0
Return to top
Show: