ComponentTray.GetTrayLocation Method (IComponent)


This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the value of the Location extender property.

Namespace:   System.Windows.Forms.Design
Assembly:  System.Design (in System.Design.dll)

public Point GetTrayLocation(
	IComponent receiver


Type: System.ComponentModel.IComponent

The IComponent that receives the location extender property.

Return Value

Type: System.Drawing.Point

A Point representing the location of receiver.

The Location extender property is offered to all non-visual components. The returned value takes into account the value of AutoScrollPosition. If receiver does not have a component view, the returned value is an empty Point.

.NET Framework
Available since 2.0
Return to top