Gets the location of the specified component, relative to the upper-left corner of the component tray.
[Visual Basic] Public Function GetLocation( _ ByVal receiver As IComponent _ ) As Point [C#] public Point GetLocation( IComponent receiver ); [C++] public: Point GetLocation( IComponent* receiver ); [JScript] public function GetLocation( receiver : IComponent ) : Point;
- The IComponent to retrieve the location of.
A Point indicating the coordinates of the specified component, or an empty Point if the specified component could not be found in the component tray. An empty Point has an IsEmpty property equal to true and typically has X and Y properties that are each equal to zero.
GetLocation is an accessor method for the location extender property that is added to each component in the component tray.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code