Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

GetLineInfo method

Gets information about the line that the display pointer is on.


HRESULT retVal = object.GetLineInfo(ppLineInfo);


ppLineInfo [out]

Type: ILineInfo

A pointer to an ILineInfo interface from which to access the line information.

Return value


If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.


The ILineInfo interface that this method gets provides information about the location of a display pointer on the screen. For instance, ILineInfo::x provides the horizontal distance from the display pointer to the left side of the element containing it. ILineInfo::baseLine gives a vertical position for the display pointer relative to the top of the containing element. IDisplayServices::TransformPoint is useful for converting these coordinates to an appropriate frame of reference.



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.