Sdílet prostřednictvím


SnapLine Konstruktory

Definice

Inicializuje novou instanci SnapLine třídy.

Přetížení

Name Description
SnapLine(SnapLineType, Int32)

Inicializuje novou instanci třídy pomocí zadaného SnapLine typu a posunu.

SnapLine(SnapLineType, Int32, String)

Inicializuje novou instanci třídy pomocí zadaného SnapLine typu snapline, posunu a názvu filtru.

SnapLine(SnapLineType, Int32, SnapLinePriority)

Inicializuje novou instanci třídy pomocí zadaného SnapLine typu přichycení, posunu a priority.

SnapLine(SnapLineType, Int32, String, SnapLinePriority)

Inicializuje novou instanci třídy pomocí zadaného SnapLine typu přichycení, posunu, názvu filtru a priority.

Poznámky

K nahrazení nebo doplnění výchozího chování přichycení, které nabízí vizuální návrhář, byste měli explicitně vytvořit pouze přichycení. Pokud chcete vytvořit snapline, měli byste vytvořit instanci modulu snapline a pak ji přidat do SnapLines vlastnosti ControlDesigner třídy.

SnapLine(SnapLineType, Int32)

Zdroj:
SnapLine.cs
Zdroj:
SnapLine.cs
Zdroj:
SnapLine.cs
Zdroj:
SnapLine.cs
Zdroj:
SnapLine.cs

Inicializuje novou instanci třídy pomocí zadaného SnapLine typu a posunu.

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)

Parametry

type
SnapLineType

The SnapLineType to create. Popisuje relativní pozici a orientaci přichycení.

offset
Int32

Pozice přichycení v pixelech vzhledem k levému hornímu počátku vlastního ovládacího prvku.

Poznámky

Tento konstruktor nastaví Filter vlastnost a nullPriority vlastnost na Low.

Viz také

Platí pro

SnapLine(SnapLineType, Int32, String)

Zdroj:
SnapLine.cs
Zdroj:
SnapLine.cs
Zdroj:
SnapLine.cs
Zdroj:
SnapLine.cs
Zdroj:
SnapLine.cs

Inicializuje novou instanci třídy pomocí zadaného SnapLine typu snapline, posunu a názvu filtru.

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)

Parametry

type
SnapLineType

The SnapLineType to create. Popisuje relativní pozici a orientaci přichycení.

offset
Int32

Pozice přichycení v pixelech vzhledem k levému hornímu počátku vlastního ovládacího prvku.

filter
String

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

Poznámky

Tento konstruktor nastaví Priority vlastnost na Low.

Viz také

Platí pro

SnapLine(SnapLineType, Int32, SnapLinePriority)

Zdroj:
SnapLine.cs
Zdroj:
SnapLine.cs
Zdroj:
SnapLine.cs
Zdroj:
SnapLine.cs
Zdroj:
SnapLine.cs

Inicializuje novou instanci třídy pomocí zadaného SnapLine typu přichycení, posunu a 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)

Parametry

type
SnapLineType

The SnapLineType to create. Popisuje relativní pozici a orientaci přichycení.

offset
Int32

Pozice přichycení v pixelech vzhledem k levému hornímu počátku vlastního ovládacího prvku.

priority
SnapLinePriority

Čáry SnapLinePriority přichycení.

Poznámky

Tento konstruktor nastaví Filter vlastnost na null.

Viz také

Platí pro

SnapLine(SnapLineType, Int32, String, SnapLinePriority)

Zdroj:
SnapLine.cs
Zdroj:
SnapLine.cs
Zdroj:
SnapLine.cs
Zdroj:
SnapLine.cs
Zdroj:
SnapLine.cs

Inicializuje novou instanci třídy pomocí zadaného SnapLine typu přichycení, posunu, názvu filtru a 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)

Parametry

type
SnapLineType

The SnapLineType to create. Popisuje relativní pozici a orientaci přichycení.

offset
Int32

Pozice přichycení v pixelech vzhledem k levému hornímu počátku vlastního ovládacího prvku.

filter
String

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

priority
SnapLinePriority

Čáry SnapLinePriority přichycení.

Poznámky

Tento konstruktor nastaví všechny vlastnosti modulu snapline na hodnoty zadané programátorem.

Viz také

Platí pro