Export (0) Print
Expand All
Expand Minimize

getCharNumAtPosition method

Gets the index of the character that the glyph cell bounding box contains at the specified point.

Scalable Vector Graphics: Text, Section 10.17.1Internet Explorer 9

 

Syntax

object.getCharNumAtPosition(point)

Parameters

point [in]

Type: ISVGPoint

A SVGPoint point in the user space.

Return value

Type: Integer

A zero-based index of the character that is located at the given point.

Note   A value of -1 indicates that no such character exists. If multiple characters exist at the specified point, getCharNumAtPosition returns the index of the character that the glyphs were rendered for last.

Standards information

See also

SVGTextContentElement
SVGTextElement
SVGTextPathElement
SVGTextPositioningElement
SVGTSpanElement

 

 

Show:
© 2015 Microsoft