Export (0) Print
Expand All
Expand Minimize

TextRange_MoveEndpointByRange function

Note  This function is deprecated. Client applications should use the Microsoft UI Automation Component Object Model (COM) interfaces instead.

Moves an endpoint of one range to the endpoint of another range.

Syntax


HRESULT TextRange_MoveEndpointByRange(
  _In_  HUIATEXTRANGE hobj,
  _In_  TextPatternRangeEndpoint endpoint,
  _In_  HUIATEXTRANGE targetRange,
  _In_  TextPatternRangeEndpoint targetEndpoint
);

Parameters

hobj [in]

Type: HUIATEXTRANGE

The text range object whose endpoint is to move.

endpoint [in]

Type: TextPatternRangeEndpoint

The endpoint to move (either the start or the end).

targetRange [in]

Type: HUIATEXTRANGE

The text range that contains the target endpoint.

targetEndpoint [in]

Type: TextPatternRangeEndpoint

The target endpoint to move to (either the start or the end).

Return value

Type: HRESULT

Returns S_OK if successful or an error value otherwise.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

UIAutomationCoreApi.h

Library

Uiautomationcore.lib

DLL

Uiautomationcore.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft