語言

SnapLine 建構函式

定義

初始化 SnapLine 類別的新執行個體。

多載

名稱 Description
SnapLine(SnapLineType, Int32)

使用指定的 snapline 類型與偏移量初始化該類別的新實例 SnapLine 。

SnapLine(SnapLineType, Int32, String)

使用指定的 snapline 類型、偏移量和過濾器名稱初始化該類別的新 SnapLine 實例。

SnapLine(SnapLineType, Int32, SnapLinePriority)

使用指定的 snapline 類型、偏移量和優先順序初始化該類別的新實例 SnapLine 。

SnapLine(SnapLineType, Int32, String, SnapLinePriority)

使用指定的 snapline 類型、偏移量、濾波器名稱及優先權初始化該類別的新實例 SnapLine 。

備註

你應該只明確建立 snapline,以取代或補充視覺設計師預設的 snapline 行為。 要建立 snapline,你應該先實例化一個 snapline,然後把它加入 SnapLines 類別的屬性 ControlDesigner 。

SnapLine(SnapLineType, Int32)

來源:
SnapLine.cs
來源:
SnapLine.cs
來源:
SnapLine.cs
來源:
SnapLine.cs
來源:
SnapLine.cs

使用指定的 snapline 類型與偏移量初始化該類別的新實例 SnapLine 。

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)

參數

type
SnapLineType

創造 SnapLineType 。 描述吸附線的相對位置與方向。

offset
Int32

相對於擁有控制項左上角原點的 snapline 位置(以像素為單位)。

備註

此建構子將屬性設為 ,Filter屬性 nullPriority 為 Low。

另請參閱

適用於

SnapLine(SnapLineType, Int32, String)

來源:
SnapLine.cs
來源:
SnapLine.cs
來源:
SnapLine.cs
來源:
SnapLine.cs
來源:
SnapLine.cs

使用指定的 snapline 類型、偏移量和過濾器名稱初始化該類別的新 SnapLine 實例。

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)

參數

type
SnapLineType

創造 SnapLineType 。 描述吸附線的相對位置與方向。

offset
Int32

相對於擁有控制項左上角原點的 snapline 位置(以像素為單位)。

filter
String

A String 用於指定程式設計師定義的 snapline 類別。

備註

此建構子將屬性設定 Priority 為 Low。

另請參閱

適用於

SnapLine(SnapLineType, Int32, SnapLinePriority)

來源:
SnapLine.cs
來源:
SnapLine.cs
來源:
SnapLine.cs
來源:
SnapLine.cs
來源:
SnapLine.cs

使用指定的 snapline 類型、偏移量和優先順序初始化該類別的新實例 SnapLine 。

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)

參數

type
SnapLineType

創造 SnapLineType 。 描述吸附線的相對位置與方向。

offset
Int32

相對於擁有控制項左上角原點的 snapline 位置(以像素為單位)。

priority
SnapLinePriority

那個 snapline 的事 SnapLinePriority 。

備註

此建構子將屬性設定 Filter 為 null。

另請參閱

適用於

SnapLine(SnapLineType, Int32, String, SnapLinePriority)

來源:
SnapLine.cs
來源:
SnapLine.cs
來源:
SnapLine.cs
來源:
SnapLine.cs
來源:
SnapLine.cs

使用指定的 snapline 類型、偏移量、濾波器名稱及優先權初始化該類別的新實例 SnapLine 。

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)

參數

type
SnapLineType

創造 SnapLineType 。 描述吸附線的相對位置與方向。

offset
Int32

相對於擁有控制項左上角原點的 snapline 位置(以像素為單位)。

filter
String

A String 用於指定程式設計師定義的 snapline 類別。

priority
SnapLinePriority

那個 snapline 的事 SnapLinePriority 。

備註

此建構器將 snapline 的所有屬性設為程式設計師提供的值。

另請參閱

適用於