UnderlineTextSegmentMarker doesn't working

IgorGoydaIgorGoyda RUMember
edited April 2013 in Visual Studio

Hello !

I working on addin from XamarinStudio/MonoDevelop

I have following code (in MotionNotifyEvent handler):

DocumentLocation location = document.Editor.Parent.PointToLocation(args.Event.X - document.Editor.Parent.TextViewMargin.XOffset, args.Event.Y);

int offset = document.Editor.LocationToOffset(location);
int start = document.Editor.FindCurrentWordStart(offset);
int end = document.Editor.FindCurrentWordEnd(offset);

if (end - start <= 0) return;

_marker = new UnderlineTextSegmentMarker("black", new TextSegment(start, end - start));
_marker.Wave = false;
document.Editor.Document.AddMarker(_marker);
document.Editor.Parent.QueueDraw();

It's worked in Xamarin Studio 4.0.1 but doesn't in 4.0.3.

Any suggests ?

Best regards,
Igor

Best Answer

Answers

Sign In or Register to comment.