ToolStrip.SetItemLocation(ToolStripItem, Point) Metoda

Definicja

Zakotwicza element do ToolStripItem określonego miejsca w obiekcie ToolStrip.

protected public:
 void SetItemLocation(System::Windows::Forms::ToolStripItem ^ item, System::Drawing::Point location);
protected internal void SetItemLocation (System.Windows.Forms.ToolStripItem item, System.Drawing.Point location);
member this.SetItemLocation : System.Windows.Forms.ToolStripItem * System.Drawing.Point -> unit
Protected Friend Sub SetItemLocation (item As ToolStripItem, location As Point)

Parametry

item
ToolStripItem

Element ToolStripItem do zakotwiczenia.

location
Point

Reprezentacja Point współrzędnych klienta x i y lokalizacji w pikselach ToolStripItem .

Wyjątki

Wartość parametru item to null.

Bieżący ToolStrip nie jest właścicielem ToolStripItem obiektu, do których odwołuje się item parametr .

Dotyczy