다음을 통해 공유


SnapLine 생성자

정의

SnapLine 클래스의 새 인스턴스를 초기화합니다.

오버로드

Name Description
SnapLine(SnapLineType, Int32)

지정된 스냅라인 형식 및 오프셋을 SnapLine 사용하여 클래스의 새 인스턴스를 초기화합니다.

SnapLine(SnapLineType, Int32, String)

지정된 스냅라인 형식, 오프셋 및 필터 이름을 사용하여 클래스의 SnapLine 새 인스턴스를 초기화합니다.

SnapLine(SnapLineType, Int32, SnapLinePriority)

지정된 스냅라인 형식, 오프셋 및 우선 순위를 사용하여 클래스의 SnapLine 새 인스턴스를 초기화합니다.

SnapLine(SnapLineType, Int32, String, SnapLinePriority)

지정된 스냅라인 형식, 오프셋, 필터 이름 및 우선 순위를 사용하여 클래스의 SnapLine 새 인스턴스를 초기화합니다.

설명

시각적 개체 디자이너에서 제공하는 기본 맞춤선 동작을 대체하거나 보완하기 위해 스냅라인만 명시적으로 만들어야 합니다. 스냅라인을 만들려면 스냅라인을 인스턴스화한 다음 클래스의 속성에 SnapLinesControlDesigner 추가해야 합니다.

SnapLine(SnapLineType, Int32)

Source:
SnapLine.cs
Source:
SnapLine.cs
Source:
SnapLine.cs
Source:
SnapLine.cs
Source:
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

소유 컨트롤의 왼쪽 위 원점과 관련된 맞춤선의 위치(픽셀)입니다.

설명

이 생성자는 속성을 설정 FilternullPriority 속성을 Low.

추가 정보

적용 대상

SnapLine(SnapLineType, Int32, String)

Source:
SnapLine.cs
Source:
SnapLine.cs
Source:
SnapLine.cs
Source:
SnapLine.cs
Source:
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

소유 컨트롤의 왼쪽 위 원점과 관련된 맞춤선의 위치(픽셀)입니다.

filter
String

String 프로그래머 정의 스냅라인 범주를 지정하는 데 사용되는 항목입니다.

설명

이 생성자는 속성을 .로 PriorityLow설정합니다.

추가 정보

적용 대상

SnapLine(SnapLineType, Int32, SnapLinePriority)

Source:
SnapLine.cs
Source:
SnapLine.cs
Source:
SnapLine.cs
Source:
SnapLine.cs
Source:
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 맞춤선의 수입니다.

설명

이 생성자는 속성을 .로 Filternull설정합니다.

추가 정보

적용 대상

SnapLine(SnapLineType, Int32, String, SnapLinePriority)

Source:
SnapLine.cs
Source:
SnapLine.cs
Source:
SnapLine.cs
Source:
SnapLine.cs
Source:
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

소유 컨트롤의 왼쪽 위 원점과 관련된 맞춤선의 위치(픽셀)입니다.

filter
String

String 프로그래머 정의 스냅라인 범주를 지정하는 데 사용되는 항목입니다.

priority
SnapLinePriority

SnapLinePriority 맞춤선의 수입니다.

설명

이 생성자는 스냅라인의 모든 속성을 프로그래머가 제공하는 값으로 설정합니다.

추가 정보

적용 대상