GetStyleFromPos
Method of ITextDocument
Description
Returns top style with ranges from position
Parameters
- IPosition pt
- VARIANT_BOOL bRangesOnly = VARIANT_FALSE (optional)
Return Value
- IStyleRange ppStyleRange
Syntax
JavaScript
var ppStyleRange = TextDocument.GetStyleFromPos(pt, bRangesOnly);
Visual Basic Script
ppStyleRange = TextDocument.GetStyleFromPos pt, bRangesOnly
C++
CComPtr<IStyleRange> pStyleRange; HRESULT hr = TextDocument.GetStyleFromPos(pt, bRangesOnly, &pStyleRange);