(static_cast<UIA::TextPatternRangeEndpoint>(endpoint),                                                           static_cast<UIA::TextUnit>(unit),                                                           count,                                                           &returnVal));          return returnVal;      }        void XamlUiaTextRange::