Share via


UiaHTextRangeFromVariant Function

Note  This function is deprecated. Client applications should use the Microsoft UI Automation COM interfaces instead.

Gets a text range from a VARIANT type.

Syntax

HRESULT UiaHTextRangeFromVariant(      
    VARIANT *par,
    HUIATEXTRANGE *phtextrange
);

Parameters

  • par
    [in] The address of a VARIANT that contains the text range.
  • phtextrange
    [out] The address of a variable that receives the text range. This parameter is passed uninitialized.

Return Value

Returns S_OK if successful or an error value otherwise.

Function Information

Stock Implementation uiautomationcore.dll
Custom Implementation No
Header uiautomationcoreapi.h
Import library uiautomationcore.lib
Minimum operating systems Windows XP