Gets the location of the specified component, relative to the upper-left corner of the component tray.
- receiver
- The System.ComponentModel.IComponent to retrieve the location of.
A System.Drawing.Point indicating the coordinates of the specified component, or an empty System.Drawing.Point if the specified component could not be found in the component tray. An empty System.Drawing.Point has an System.Drawing.Point.IsEmpty property equal to true and typically has System.Drawing.Point.X and System.Drawing.Point.Y properties that are each equal to zero.
ComponentTray.GetLocation(System.ComponentModel.IComponent) is an accessor method for the location extender property that is added to each component in the component tray.