Editar

Compartir a través de


SnapLine Constructors

Definition

Initializes a new instance of the SnapLine class.

Overloads

SnapLine(SnapLineType, Int32)

Initializes a new instance of the SnapLine class using the specified snapline type and offset.

SnapLine(SnapLineType, Int32, String)

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

SnapLine(SnapLineType, Int32, SnapLinePriority)

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

SnapLine(SnapLineType, Int32, String, SnapLinePriority)

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

Remarks

You should only explicitly create snaplines to replace or supplement the default snapline behavior offered by the visual designer. To create a snapline, you should instance a snapline and then add it to the SnapLines property of the ControlDesigner class.

SnapLine(SnapLineType, Int32)

Source:
SnapLine.cs
Source:
SnapLine.cs
Source:
SnapLine.cs

Initializes a new instance of the SnapLine class using the specified snapline type and offset.

public:
 SnapLine(System::Windows::Forms::Design::Behavior::SnapLineType type, int offset);
public SnapLine (System.Windows.Forms.Design.Behavior.SnapLineType type, int offset);
new System.Windows.Forms.Design.Behavior.SnapLine : System.Windows.Forms.Design.Behavior.SnapLineType * int -> System.Windows.Forms.Design.Behavior.SnapLine
Public Sub New (type As SnapLineType, offset As Integer)

Parameters

type
SnapLineType

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

offset
Int32

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

Remarks

This constructor sets the Filter property to null and the Priority property to Low.

See also

Applies to

SnapLine(SnapLineType, Int32, String)

Source:
SnapLine.cs
Source:
SnapLine.cs
Source:
SnapLine.cs

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

public:
 SnapLine(System::Windows::Forms::Design::Behavior::SnapLineType type, int offset, System::String ^ filter);
public SnapLine (System.Windows.Forms.Design.Behavior.SnapLineType type, int offset, string filter);
public SnapLine (System.Windows.Forms.Design.Behavior.SnapLineType type, int offset, string? filter);
new System.Windows.Forms.Design.Behavior.SnapLine : System.Windows.Forms.Design.Behavior.SnapLineType * int * string -> System.Windows.Forms.Design.Behavior.SnapLine
Public Sub New (type As SnapLineType, offset As Integer, filter As String)

Parameters

type
SnapLineType

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

offset
Int32

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

filter
String

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

Remarks

This constructor sets the Priority property to Low.

See also

Applies to

SnapLine(SnapLineType, Int32, SnapLinePriority)

Source:
SnapLine.cs
Source:
SnapLine.cs
Source:
SnapLine.cs

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

public:
 SnapLine(System::Windows::Forms::Design::Behavior::SnapLineType type, int offset, System::Windows::Forms::Design::Behavior::SnapLinePriority priority);
public SnapLine (System.Windows.Forms.Design.Behavior.SnapLineType type, int offset, System.Windows.Forms.Design.Behavior.SnapLinePriority priority);
new System.Windows.Forms.Design.Behavior.SnapLine : System.Windows.Forms.Design.Behavior.SnapLineType * int * System.Windows.Forms.Design.Behavior.SnapLinePriority -> System.Windows.Forms.Design.Behavior.SnapLine
Public Sub New (type As SnapLineType, offset As Integer, priority As SnapLinePriority)

Parameters

type
SnapLineType

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

offset
Int32

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

priority
SnapLinePriority

The SnapLinePriority of the snapline.

Remarks

This constructor sets the Filter property to null.

See also

Applies to

SnapLine(SnapLineType, Int32, String, SnapLinePriority)

Source:
SnapLine.cs
Source:
SnapLine.cs
Source:
SnapLine.cs

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

public:
 SnapLine(System::Windows::Forms::Design::Behavior::SnapLineType type, int offset, System::String ^ filter, System::Windows::Forms::Design::Behavior::SnapLinePriority priority);
public SnapLine (System.Windows.Forms.Design.Behavior.SnapLineType type, int offset, string filter, System.Windows.Forms.Design.Behavior.SnapLinePriority priority);
public SnapLine (System.Windows.Forms.Design.Behavior.SnapLineType type, int offset, string? filter, System.Windows.Forms.Design.Behavior.SnapLinePriority priority);
new System.Windows.Forms.Design.Behavior.SnapLine : System.Windows.Forms.Design.Behavior.SnapLineType * int * string * System.Windows.Forms.Design.Behavior.SnapLinePriority -> System.Windows.Forms.Design.Behavior.SnapLine
Public Sub New (type As SnapLineType, offset As Integer, filter As String, priority As SnapLinePriority)

Parameters

type
SnapLineType

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

offset
Int32

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

filter
String

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

priority
SnapLinePriority

The SnapLinePriority of the snapline.

Remarks

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

See also

Applies to