Runtime textframe examination

Can someone explain a way to examine a textframe object at runtime to determine the number of text lines in the object? I'm not looking for the number of paragraphs or portions, but rather the number of lines a particular portion takes up after wrapping.

Sorry, there are no ways to get number of lines or wrapping positions.
But thank you, we will check if it can be implemented in the future.