ImageGear Professional v18.2 > API Reference Guide > PDF Component API Reference > PDF Component Objects > Page Editing Objects and Elements > IGPDEText Object > IGPDEText Methods > GetAdvance Method |
Gets the advance width of a character or a text element. Advance width is returned in either character space or user space. The advance width is the amount by which the current point advances when the character is drawn.
Advance width may be horizontal or vertical, depending on the writing style. Thus the return value has both a horizontal and vertical component.
GetAdvance (Flags As enumIGPDETextFlags, Index As Long) As
IGPDFFixedPoint
Name | Description |
---|---|
Flags |
enumIGPDETextFlag value that specifies whether index refers to the character offset from the beginning of the text object or the index of the text run in the text object. Must be either:
|
Index | Index of the character or text run in the text. |
IGPDFFixedPoint Object indicating the advance width.