SetPoint method

ITextRange.SetPoint method

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 (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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:
© 2016 Microsoft