ITextRange.SetPoint method

Applies to Windows and Windows Phone

Changes the text range based on the specified point.

Syntax


void SetPoint(
  Point point, 
  PointOptions options, 
  bool extend
)

Parameters

point

Type: Point

An ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.

options

Type: PointOptions

The alignment type of the specified point.

extend

Type: System.Boolean [.NET] | Platform::Boolean [C++]

Indicates how to set the endpoints of the text range. If extend is 0, the text range is an insertion point located at the specified point, or at the nearest point with selectable text. If extend is 1, the endpoint specified by options is moved to the point and the other endpoint is left alone. The default value is 0.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Text
Windows::UI::Text [C++]

Metadata

Windows.winmd

See also

ITextRange
ITextRange.GetPoint

 

 

Show:
© 2014 Microsoft