SnapLine Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe SnapLine.
Surcharges
| Nom | Description |
|---|---|
| SnapLine(SnapLineType, Int32) |
Initialise une nouvelle instance de la SnapLine classe à l’aide du type d’alignement et du décalage spécifiés. |
| SnapLine(SnapLineType, Int32, String) |
Initialise une nouvelle instance de la SnapLine classe à l’aide du type d’alignement, du décalage et du nom de filtre spécifiés. |
| SnapLine(SnapLineType, Int32, SnapLinePriority) |
Initialise une nouvelle instance de la SnapLine classe à l’aide du type d’alignement, du décalage et de la priorité spécifiés. |
| SnapLine(SnapLineType, Int32, String, SnapLinePriority) |
Initialise une nouvelle instance de la classe à l’aide du type snapline, du décalage, du nom de filtre et de la SnapLine priorité spécifiés. |
Remarques
Vous devez uniquement créer explicitement des lignes d’alignement pour remplacer ou compléter le comportement par défaut du composant logiciel enfichable proposé par le concepteur visuel. Pour créer un alignement, vous devez instancer une ligne d’alignement, puis l’ajouter à la SnapLines propriété de la ControlDesigner classe.
SnapLine(SnapLineType, Int32)
- Source:
- SnapLine.cs
- Source:
- SnapLine.cs
- Source:
- SnapLine.cs
- Source:
- SnapLine.cs
- Source:
- SnapLine.cs
Initialise une nouvelle instance de la SnapLine classe à l’aide du type d’alignement et du décalage spécifiés.
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)
Paramètres
- type
- SnapLineType
À SnapLineType créer. Décrit la position et l’orientation relatives de la ligne d’alignement.
- offset
- Int32
Position de l’alignement, en pixels, par rapport à l’origine supérieure gauche du contrôle propriétaire.
Remarques
Ce constructeur définit la Filter propriété sur null et la Priority propriété sur Low.
Voir aussi
S’applique à
SnapLine(SnapLineType, Int32, String)
- Source:
- SnapLine.cs
- Source:
- SnapLine.cs
- Source:
- SnapLine.cs
- Source:
- SnapLine.cs
- Source:
- SnapLine.cs
Initialise une nouvelle instance de la SnapLine classe à l’aide du type d’alignement, du décalage et du nom de filtre spécifiés.
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)
Paramètres
- type
- SnapLineType
À SnapLineType créer. Décrit la position et l’orientation relatives de la ligne d’alignement.
- offset
- Int32
Position de l’alignement, en pixels, par rapport à l’origine supérieure gauche du contrôle propriétaire.
- filter
- String
Utilisé String pour spécifier une catégorie définie par le programmeur de lignes d’alignement.
Remarques
Ce constructeur définit la Priority propriété sur Low.
Voir aussi
S’applique à
SnapLine(SnapLineType, Int32, SnapLinePriority)
- Source:
- SnapLine.cs
- Source:
- SnapLine.cs
- Source:
- SnapLine.cs
- Source:
- SnapLine.cs
- Source:
- SnapLine.cs
Initialise une nouvelle instance de la SnapLine classe à l’aide du type d’alignement, du décalage et de la priorité spécifiés.
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)
Paramètres
- type
- SnapLineType
À SnapLineType créer. Décrit la position et l’orientation relatives de la ligne d’alignement.
- offset
- Int32
Position de l’alignement, en pixels, par rapport à l’origine supérieure gauche du contrôle propriétaire.
- priority
- SnapLinePriority
Ligne SnapLinePriority d’alignement.
Remarques
Ce constructeur définit la Filter propriété sur null.
Voir aussi
S’applique à
SnapLine(SnapLineType, Int32, String, SnapLinePriority)
- Source:
- SnapLine.cs
- Source:
- SnapLine.cs
- Source:
- SnapLine.cs
- Source:
- SnapLine.cs
- Source:
- SnapLine.cs
Initialise une nouvelle instance de la classe à l’aide du type snapline, du décalage, du nom de filtre et de la SnapLine priorité spécifiés.
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)
Paramètres
- type
- SnapLineType
À SnapLineType créer. Décrit la position et l’orientation relatives de la ligne d’alignement.
- offset
- Int32
Position de l’alignement, en pixels, par rapport à l’origine supérieure gauche du contrôle propriétaire.
- filter
- String
Utilisé String pour spécifier une catégorie définie par le programmeur de lignes d’alignement.
- priority
- SnapLinePriority
Ligne SnapLinePriority d’alignement.
Remarques
Ce constructeur définit toutes les propriétés d’un alignement sur les valeurs fournies par le programmeur.