ComponentTray.SetTrayLocation Method (IComponent, Point)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Sets the value of the Location extender property.

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

public void SetTrayLocation(
	IComponent receiver,
	Point location


Type: System.ComponentModel.IComponent

The IComponent that receives the location extender property.

Type: System.Drawing.Point

A Point representing the location of receiver.

The Location extender property is offered to all non-visual components. The actual value takes into account the value of AutoScrollPosition.

.NET Framework
Available since 2.0
Return to top