SnapLine コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
SnapLine クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| SnapLine(SnapLineType, Int32) |
指定したスナップ線の種類とオフセットを使用して、 SnapLine クラスの新しいインスタンスを初期化します。 |
| SnapLine(SnapLineType, Int32, String) |
指定したスナップ線の種類、オフセット、フィルター名を使用して、 SnapLine クラスの新しいインスタンスを初期化します。 |
| SnapLine(SnapLineType, Int32, SnapLinePriority) |
指定したスナップ線の種類、オフセット、および優先順位を使用して、 SnapLine クラスの新しいインスタンスを初期化します。 |
| SnapLine(SnapLineType, Int32, String, SnapLinePriority) |
指定したスナップ線の種類、オフセット、フィルター名、および優先順位を使用して、 SnapLine クラスの新しいインスタンスを初期化します。 |
注釈
ビジュアル デザイナーによって提供される既定のスナップ線の動作を置き換えたり補完したりするスナップ線のみを明示的に作成する必要があります。 スナップ線を作成するには、スナップ線をインスタンス化し、ControlDesigner クラスのSnapLines プロパティに追加する必要があります。
SnapLine(SnapLineType, Int32)
- ソース:
- SnapLine.cs
- ソース:
- SnapLine.cs
- ソース:
- SnapLine.cs
- ソース:
- SnapLine.cs
- ソース:
- SnapLine.cs
指定したスナップ線の種類とオフセットを使用して、 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.cs
- ソース:
- SnapLine.cs
- ソース:
- SnapLine.cs
- ソース:
- SnapLine.cs
- ソース:
- SnapLine.cs
指定したスナップ線の種類、オフセット、フィルター名を使用して、 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
所有するコントロールの左上の原点を基準にしたスナップ線の位置 (ピクセル単位)。
注釈
このコンストラクターは、 Priority プロパティを Low に設定します。
こちらもご覧ください
適用対象
SnapLine(SnapLineType, Int32, SnapLinePriority)
- ソース:
- SnapLine.cs
- ソース:
- SnapLine.cs
- ソース:
- SnapLine.cs
- ソース:
- SnapLine.cs
- ソース:
- SnapLine.cs
指定したスナップ線の種類、オフセット、および優先順位を使用して、 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 。
注釈
このコンストラクターは、 Filter プロパティを null に設定します。
こちらもご覧ください
適用対象
SnapLine(SnapLineType, Int32, String, SnapLinePriority)
- ソース:
- SnapLine.cs
- ソース:
- SnapLine.cs
- ソース:
- SnapLine.cs
- ソース:
- SnapLine.cs
- ソース:
- SnapLine.cs
指定したスナップ線の種類、オフセット、フィルター名、および優先順位を使用して、 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
所有するコントロールの左上の原点を基準にしたスナップ線の位置 (ピクセル単位)。
- priority
- SnapLinePriority
スナップ線の SnapLinePriority 。
注釈
このコンストラクターは、スナップ線のすべてのプロパティをプログラマが指定した値に設定します。