SnapLine Konstruktor
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Menginisialisasi instans baru dari kelas SnapLine.
Overload
| Nama | Deskripsi |
|---|---|
| SnapLine(SnapLineType, Int32) |
Menginisialisasi instans SnapLine baru kelas menggunakan jenis snapline dan offset yang ditentukan. |
| SnapLine(SnapLineType, Int32, String) |
Menginisialisasi instans SnapLine baru kelas menggunakan jenis snapline, offset, dan nama filter yang ditentukan. |
| SnapLine(SnapLineType, Int32, SnapLinePriority) |
Menginisialisasi instans SnapLine baru kelas menggunakan jenis snapline, offset, dan prioritas yang ditentukan. |
| SnapLine(SnapLineType, Int32, String, SnapLinePriority) |
Menginisialisasi instans SnapLine baru kelas menggunakan jenis snapline, offset, nama filter, dan prioritas yang ditentukan. |
Keterangan
Anda hanya boleh membuat snapline secara eksplisit untuk mengganti atau melengkapi perilaku snapline default yang ditawarkan oleh desainer visual. Untuk membuat snapline, Anda harus membuat instans snapline lalu menambahkannya ke SnapLines properti ControlDesigner kelas.
SnapLine(SnapLineType, Int32)
- Sumber:
- SnapLine.cs
- Sumber:
- SnapLine.cs
- Sumber:
- SnapLine.cs
- Sumber:
- SnapLine.cs
- Sumber:
- SnapLine.cs
Menginisialisasi instans SnapLine baru kelas menggunakan jenis snapline dan offset yang ditentukan.
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)
Parameter
- type
- SnapLineType
yang SnapLineType akan dibuat. Menjelaskan posisi relatif dan orientasi snapline.
- offset
- Int32
Posisi snapline, dalam piksel, relatif terhadap asal kiri atas kontrol pemilik.
Keterangan
Konstruktor ini mengatur properti ke Filternull dan Priority properti ke Low.
Lihat juga
Berlaku untuk
SnapLine(SnapLineType, Int32, String)
- Sumber:
- SnapLine.cs
- Sumber:
- SnapLine.cs
- Sumber:
- SnapLine.cs
- Sumber:
- SnapLine.cs
- Sumber:
- SnapLine.cs
Menginisialisasi instans SnapLine baru kelas menggunakan jenis snapline, offset, dan nama filter yang ditentukan.
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)
Parameter
- type
- SnapLineType
yang SnapLineType akan dibuat. Menjelaskan posisi relatif dan orientasi snapline.
- offset
- Int32
Posisi snapline, dalam piksel, relatif terhadap asal kiri atas kontrol pemilik.
Keterangan
Konstruktor ini mengatur properti ke PriorityLow.
Lihat juga
Berlaku untuk
SnapLine(SnapLineType, Int32, SnapLinePriority)
- Sumber:
- SnapLine.cs
- Sumber:
- SnapLine.cs
- Sumber:
- SnapLine.cs
- Sumber:
- SnapLine.cs
- Sumber:
- SnapLine.cs
Menginisialisasi instans SnapLine baru kelas menggunakan jenis snapline, offset, dan prioritas yang ditentukan.
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)
Parameter
- type
- SnapLineType
yang SnapLineType akan dibuat. Menjelaskan posisi relatif dan orientasi snapline.
- offset
- Int32
Posisi snapline, dalam piksel, relatif terhadap asal kiri atas kontrol pemilik.
- priority
- SnapLinePriority
Dari SnapLinePriority snapline.
Keterangan
Konstruktor ini mengatur properti ke Filternull.
Lihat juga
Berlaku untuk
SnapLine(SnapLineType, Int32, String, SnapLinePriority)
- Sumber:
- SnapLine.cs
- Sumber:
- SnapLine.cs
- Sumber:
- SnapLine.cs
- Sumber:
- SnapLine.cs
- Sumber:
- SnapLine.cs
Menginisialisasi instans SnapLine baru kelas menggunakan jenis snapline, offset, nama filter, dan prioritas yang ditentukan.
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)
Parameter
- type
- SnapLineType
yang SnapLineType akan dibuat. Menjelaskan posisi relatif dan orientasi snapline.
- offset
- Int32
Posisi snapline, dalam piksel, relatif terhadap asal kiri atas kontrol pemilik.
- priority
- SnapLinePriority
Dari SnapLinePriority snapline.
Keterangan
Konstruktor ini mengatur semua properti snapline ke nilai yang disediakan programmer.