ToolStripDropDown.Show Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
ToolStripDropDown Belirtilen koordinatlara göre öğesini konumlandırın.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| Show() |
ToolStripDropDown Denetimi varsayılan konumunda görüntüler. |
| Show(Point) |
ToolStripDropDown Belirtilen ekran konumuna göre öğesini konumlandırın. |
| Show(Point, ToolStripDropDownDirection) |
ToolStripDropDown Belirtilen denetim konumuna göre ve belirtilen yönü üst denetime göre konumlandırın. |
| Show(Int32, Int32) |
ToolStripDropDown Belirtilen ekran koordinatlarına göre öğesini konumlandırın. |
| Show(Control, Point) |
ToolStripDropDown Belirtilen denetim konumuna göre öğesini konumlandırın. |
| Show(Control, Point, ToolStripDropDownDirection) |
ToolStripDropDown Belirtilen denetime göre belirtilen konumu ve belirtilen yönü üst denetime göre konumlandırın. |
| Show(Control, Int32, Int32) |
Belirtilen denetimin ToolStripDropDown yatay ve dikey ekran koordinatlarına göre öğesini konumlandırın. |
Show()
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
ToolStripDropDown Denetimi varsayılan konumunda görüntüler.
public:
void Show();
[System.ComponentModel.Browsable(false)]
public void Show();
[<System.ComponentModel.Browsable(false)>]
override this.Show : unit -> unit
Public Sub Show ()
- Öznitelikler
Örnekler
Aşağıdaki kod örneği, denetimin ToolStripDropDown varsayılan konumunda nasıl görüntüleneceğini gösterir.
// This method calls the ToolStripDropDown control's Show
// method to display the ContextMenuStrip in its
// default location.
private void showButton_Click(object sender, EventArgs e)
{
this.contextMenuStrip1.Show();
}
' This method calls the ToolStripDropDown control's Show
' method to display the ContextMenuStrip in its
' default location.
Private Sub showButton_Click(sender As Object, e As EventArgs) Handles showButton.Click
Me.contextMenuStrip1.Show()
End Sub
Şunlara uygulanır
Show(Point)
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
ToolStripDropDown Belirtilen ekran konumuna göre öğesini konumlandırın.
public:
void Show(System::Drawing::Point screenLocation);
public void Show(System.Drawing.Point screenLocation);
override this.Show : System.Drawing.Point -> unit
Public Sub Show (screenLocation As Point)
Parametreler
- screenLocation
- Point
Ekranın sol üst köşesinin yatay ve dikey konumu piksel cinsinden.
Örnekler
Aşağıdaki kod örneği, denetimin ToolStripDropDown sabit bir noktada nasıl görüntüleneceğini gösterir.
// This method calls the ToolStripDropDown control's Show
// method to display the ContextMenuStrip at a fixed point.
private void showAtPointButton_Click(object sender, EventArgs e)
{
this.contextMenuStrip1.Show(23, 55);
}
' This method calls the ToolStripDropDown control's Show
' method to display the ContextMenuStrip at a fixed point.
Private Sub showAtPointButton_Click(sender As Object, e As EventArgs) Handles showAtPointButton.Click, button2.Click
Me.contextMenuStrip1.Show(23, 55)
End Sub
Şunlara uygulanır
Show(Point, ToolStripDropDownDirection)
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
ToolStripDropDown Belirtilen denetim konumuna göre ve belirtilen yönü üst denetime göre konumlandırın.
public:
void Show(System::Drawing::Point position, System::Windows::Forms::ToolStripDropDownDirection direction);
public void Show(System.Drawing.Point position, System.Windows.Forms.ToolStripDropDownDirection direction);
override this.Show : System.Drawing.Point * System.Windows.Forms.ToolStripDropDownDirection -> unit
Public Sub Show (position As Point, direction As ToolStripDropDownDirection)
Parametreler
- position
- Point
Başvuru denetiminin sol üst köşesinin yatay ve dikey konumu piksel cinsinden.
- direction
- ToolStripDropDownDirection
Değerlerden ToolStripDropDownDirection biri.
Örnekler
Aşağıdaki kod örneği, denetimin ToolStripDropDown belirtilen yönde sabit bir noktada nasıl görüntüleneceğini gösterir.
// This method calls the ToolStripDropDown control's Show
// method to display the ContextMenuStrip relative to the
// origin of the form.
private void showRelativeButton_Click(object sender, EventArgs e)
{
this.contextMenuStrip1.Show(this.Location, this.dropDownDirection);
}
' This method calls the ToolStripDropDown control's Show
' method to display the ContextMenuStrip relative to the
' origin of the form.
Private Sub showRelativeButton_Click(sender As Object, e As EventArgs)
Me.contextMenuStrip1.Show(Me.Location, Me.dropDownDirection)
End Sub
Şunlara uygulanır
Show(Int32, Int32)
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
ToolStripDropDown Belirtilen ekran koordinatlarına göre öğesini konumlandırın.
public:
void Show(int x, int y);
public void Show(int x, int y);
override this.Show : int * int -> unit
Public Sub Show (x As Integer, y As Integer)
Parametreler
- x
- Int32
Yatay ekran koordinatı, piksel cinsinden.
- y
- Int32
Dikey ekran koordinatı piksel cinsinden.
Şunlara uygulanır
Show(Control, Point)
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
ToolStripDropDown Belirtilen denetim konumuna göre öğesini konumlandırın.
public:
void Show(System::Windows::Forms::Control ^ control, System::Drawing::Point position);
public void Show(System.Windows.Forms.Control control, System.Drawing.Point position);
override this.Show : System.Windows.Forms.Control * System.Drawing.Point -> unit
Public Sub Show (control As Control, position As Point)
Parametreler
- control
- Control
Konum için başvuru noktası olan denetim (genellikle bir ToolStripDropDownButton).ToolStripDropDown
- position
- Point
Başvuru denetiminin sol üst köşesinin yatay ve dikey konumu piksel cinsinden.
Özel durumlar
parametresi tarafından control belirtilen denetim: null.
Şunlara uygulanır
Show(Control, Point, ToolStripDropDownDirection)
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
ToolStripDropDown Belirtilen denetime göre belirtilen konumu ve belirtilen yönü üst denetime göre konumlandırın.
public:
void Show(System::Windows::Forms::Control ^ control, System::Drawing::Point position, System::Windows::Forms::ToolStripDropDownDirection direction);
public void Show(System.Windows.Forms.Control control, System.Drawing.Point position, System.Windows.Forms.ToolStripDropDownDirection direction);
override this.Show : System.Windows.Forms.Control * System.Drawing.Point * System.Windows.Forms.ToolStripDropDownDirection -> unit
Public Sub Show (control As Control, position As Point, direction As ToolStripDropDownDirection)
Parametreler
- control
- Control
Konum için başvuru noktası olan denetim (genellikle bir ToolStripDropDownButton).ToolStripDropDown
- position
- Point
Başvuru denetiminin sol üst köşesinin yatay ve dikey konumu piksel cinsinden.
- direction
- ToolStripDropDownDirection
Değerlerden ToolStripDropDownDirection biri.
Özel durumlar
parametresi tarafından control belirtilen denetim: null.
Örnekler
Aşağıdaki kod örneği, denetimin ToolStripDropDown üst denetime göre nasıl görüntüleneceğini gösterir.
// This method calls the ToolStripDropDown control's Show
// method to display the ContextMenuStrip relative to the
// owning control.
private void button1_MouseUp(object sender, MouseEventArgs e)
{
Control c = sender as Control;
if (e.Button == MouseButtons.Right)
{
this.contextMenuStrip1.Show(c, e.Location, this.dropDownDirection);
}
}
' This method calls the ToolStripDropDown control's Show
' method to display the ContextMenuStrip relative to the
' owning control.
Private Sub button1_MouseUp(sender As Object, e As MouseEventArgs) Handles button1.MouseUp
Dim c As Control = CType(sender, Control)
If e.Button = Windows.Forms.MouseButtons.Right Then
Me.contextMenuStrip1.Show(c, e.Location, Me.dropDownDirection)
End If
End Sub
Şunlara uygulanır
Show(Control, Int32, Int32)
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
- Kaynak:
- ToolStripDropDown.cs
Belirtilen denetimin ToolStripDropDown yatay ve dikey ekran koordinatlarına göre öğesini konumlandırın.
public:
void Show(System::Windows::Forms::Control ^ control, int x, int y);
public void Show(System.Windows.Forms.Control control, int x, int y);
override this.Show : System.Windows.Forms.Control * int * int -> unit
Public Sub Show (control As Control, x As Integer, y As Integer)
Parametreler
- control
- Control
Konum için başvuru noktası olan denetim (genellikle bir ToolStripDropDownButton).ToolStripDropDown
- x
- Int32
Denetimin piksel cinsinden yatay ekran koordinatı.
- y
- Int32
Denetimin piksel cinsinden dikey ekran koordinatı.
Özel durumlar
parametresi tarafından control belirtilen denetim: null.