Udostępnij za pośrednictwem


ITextRange.GetPoint Method

Definition

Retrieves the screen coordinates of a particular location in the text range.

public:
 void GetPoint(HorizontalCharacterAlignment horizontalAlign, VerticalCharacterAlignment verticalAlign, PointOptions options, [Out] Point & point);
void GetPoint(HorizontalCharacterAlignment const& horizontalAlign, VerticalCharacterAlignment const& verticalAlign, PointOptions const& options, [Out] Point & point);
public void GetPoint(HorizontalCharacterAlignment horizontalAlign, VerticalCharacterAlignment verticalAlign, PointOptions options, out Point point);
Public Sub GetPoint (horizontalAlign As HorizontalCharacterAlignment, verticalAlign As VerticalCharacterAlignment, options As PointOptions, ByRef point As Point)

Parameters

horizontalAlign
HorizontalCharacterAlignment

The horizontal position to retrieve, relative to the bounding rectangle of the text range.

verticalAlign
VerticalCharacterAlignment

The vertical position to retrieve, relative to the bounding rectangle of the text range.

options
PointOptions

The options for retrieving the coordinates of the specified location in the text range.

point
Point

A structure that receives the coordinates of the specified location in the text range, represented as an ordered pair of floating-point x- and y-coordinates that define a point in a two-dimensional plane.

Remarks

This method lets an app emulate pointer commands, which is particularly useful for implementing accessibility scenarios.

Applies to

See also