Thanks a lot Jezebel. It's working.
In addition, I add next routibe to confirm insert position.
if(Selection.Type == Word.WdSelectionType.wdSelectionIP) {
currentEnd = Selection.End;
}
But I think 'Range.Count' property is something wrong. It count everything
between start and end range.(If I make [2,2] table - table is blank -,
count
property increse 6. If I add image, count property increse.)
I have used 'Range.ComputeStatistics()'. It was accuracy more than
Range.Count but more slow and insert position in Word is dismised.
Somebody know more accuracy and fast method to count characters?
Jezebel said:
The current cursor position is the Selection object. So the 'cursor
position' you want is presumably is Selection.Start. The number of
characters in the document up to the cursor is given by
ActiveDocument.Range(0, Selection.Start).Characters.Count
I'm programing character count addin. It count from document start to
current
insert position (cursor position) not document end.
Does it exist api - get current insert/cursor position?