Package com.ms.ui |
![]() Previous |
![]() Contents |
![]() Index |
![]() Next |
public interface IUIPosition { // Methods public Point getPosition(); public int getXPosition(); public int getYPosition(); public Point setPosition(Point pt); public Point setPosition(int x, int y); public int setXPosition(int x); public int setYPosition(int y); }
Defines an interface for classes exposing a spatial position. For example, UIViewer and UIScrollViewer implement IUIPosition to expose their content's position. UIScroll implements this interface to expose the position of the scroll track control.
public Point getPosition();Retrieves the current position.
Return Value:
Returns a Point object containing the position. The x and y coordinates of the point specify the horizontal and vertical positions, respectively.
public int getXPosition();Retrieves the current horizontal position.
Return Value:
Returns the horizontal position.
public int getYPosition();Retrieves the current vertical position.
Return Value:
Returns the vertical position.
public Point setPosition(Point pt);Sets the position based on the specified point.
Return Value:
Returns the new position.
Parameter Description pt The requested position. The x coordinate specifies the horizontal position; the y coordinate specifies the vertical position. Remarks:
Depending on the object's range checking, the returned position may differ from the requested position.
public Point setPosition(int x, int y);Sets the position based on the specified values.
Return Value:
Returns the the new position.
Parameter Description x The requested horiziontal position. y The requested vertical position. Remarks:
Depending on the object's range checking, the returned position may differ from the requested position.
public int setXPosition(int x);Sets the horizontal position to the specified value.
Return Value:
Returns the new horizontal position.
Parameter Description x The requested horiziontal position. Remarks:
Depending on the object's range checking, the returned position may differ from the requested position.
public int setYPosition(int y);Sets the vertical position to the specified value.
Return Value:
Returns the new vertical position.
Parameter Description y The requested vertical position. Remarks:
Depending on the object's range checking, the returned position may differ from the requested position.
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.