Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

What is ITextViewLine.Top property ?

$
0
0

I am trying to put a margin attached to the textview in the Visual Studio Editor. I implemented a margin with the given interfaces. I need to put a icon in the margin correspond to each line. I thought I will use the Top property of the TextViewLine to find the Top co ordinate of each line, But sometime the value return by the Top proper was not something I expect. 

In MSDN the definition for Top property given as follows :

Gets the position of the top edge of this line in the text rendering coordinate system.

Some times the return values are -Ve .

How to Interpret the "Top" value? Is there is a reference point from where the "TOP" property value is calculated for each line ? 


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>