baselineDeltaForCharacter(at:)
Returns the baseline position of a given character relative to the origin of rectangle returned by Firstrect(forcharacterrange:actualrange:).
Declaration
optional func baselineDeltaForCharacter(at anIndex: Int) -> CGFloatParameters
- anIndex:
Index of the character whose baseline is tested.
Return Value
The vertical distance, in points, between the baseline of the character at anIndex and the rectangle origin.
Discussion
Implementation of this method is optional. This information allows the caller to determine finer-grained character positioning within the text storage of the text view adopting NSTextInputClient.