GetStyleFromPos

Method of IDocumentData

Returns top style with ranges from position

Return Value

JavaScript

var ppStyleRange = DocumentData.GetStyleFromPos(pt, bRangesOnly);

Visual Basic Script

ppStyleRange = DocumentData.GetStyleFromPos pt, bRangesOnly

C++

CComPtr<IStyleRange> pStyleRange;
HRESULT hr = DocumentData.GetStyleFromPos(pt, bRangesOnly, &pStyleRange);