ToolStrip.SetItemLocation(ToolStripItem, Point) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Anchors a ToolStripItem to a particular place on a 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)
Parameters
- item
- ToolStripItem
The ToolStripItem to anchor.
- location
- Point
A Point representing the x and y client coordinates of the ToolStripItem location, in pixels.
Exceptions
The value of the item
parameter is null
.
The current ToolStrip is not the owner of the ToolStripItem referred to by the item
parameter.
Applies to
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.