Share via


SnapLine コンストラクター

定義

SnapLine クラスの新しいインスタンスを初期化します。

オーバーロード

SnapLine(SnapLineType, Int32)

スナップ線の種類とオフセットを指定して、SnapLine クラスの新しいインスタンスを初期化します。

SnapLine(SnapLineType, Int32, String)

スナップ線の種類、オフセット、およびフィルター名を指定して、SnapLine クラスの新しいインスタンスを初期化します。

SnapLine(SnapLineType, Int32, SnapLinePriority)

スナップ線の種類、オフセット、および優先順位を指定して、SnapLine クラスの新しいインスタンスを初期化します。

SnapLine(SnapLineType, Int32, String, SnapLinePriority)

スナップ線の種類、オフセット、フィルター名、および優先順位を指定して、SnapLine クラスの新しいインスタンスを初期化します。

注釈

ビジュアル デザイナーによって提供される既定のスナップ線の動作を置き換えるか補完するスナップ線のみを明示的に作成する必要があります。 スナップ線を作成するには、スナップ線をインスタンス化し、それをクラスのプロパティに追加するSnapLinesControlDesigner必要があります。

SnapLine(SnapLineType, Int32)

スナップ線の種類とオフセットを指定して、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

所有しているコントロールの左上隅の原点に対する、スナップ線のピクセル単位の位置。

注釈

このコンストラクターは、プロパティを Filter .null Priority Low

こちらもご覧ください

適用対象

SnapLine(SnapLineType, Int32, String)

スナップ線の種類、オフセット、およびフィルター名を指定して、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);
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

所有しているコントロールの左上隅の原点に対する、スナップ線のピクセル単位の位置。

filter
String

プログラマが定義したスナップ線のカテゴリを指定するために使用する String

注釈

このコンストラクターは、プロパティLowPriority .

こちらもご覧ください

適用対象

SnapLine(SnapLineType, Int32, SnapLinePriority)

スナップ線の種類、オフセット、および優先順位を指定して、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

所有しているコントロールの左上隅の原点に対する、スナップ線のピクセル単位の位置。

priority
SnapLinePriority

スナップ線の SnapLinePriority

注釈

このコンストラクターは、プロパティnullFilter .

こちらもご覧ください

適用対象

SnapLine(SnapLineType, Int32, String, SnapLinePriority)

スナップ線の種類、オフセット、フィルター名、および優先順位を指定して、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);
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

所有しているコントロールの左上隅の原点に対する、スナップ線のピクセル単位の位置。

filter
String

プログラマが定義したスナップ線のカテゴリを指定するために使用する String

priority
SnapLinePriority

スナップ線の SnapLinePriority

注釈

このコンストラクターは、スナップ線のすべてのプロパティをプログラマが指定した値に設定します。

こちらもご覧ください

適用対象