CollapsedRegionQuickInfoProvider - retrieving collapsed text

SyntaxEditor for WPF Forum

Posted 10 years ago by Martin de Jong - Statistics Netherlands
Version: 9.2.0514
Avatar
hi

I am trying to retrieve the collapsed text in my CollapsedRegionQuickInfoProvider. Purpose it the change the layout of the tooltip as it displays, just like i did with the QuickInfoProvider. I have a content control for that now:)

    public class BlaiseCollapsedRegionQuickInfoProvider : CollapsedRegionQuickInfoProvider {

        protected override bool RequestSession(ActiproSoftware.Windows.Controls.SyntaxEditor.IEditorView view, object context) {
            if (context != null) {
                TagSnapshotRange<IIntraTextSpacerTag> tagrange = context as TagSnapshotRange<IIntraTextSpacerTag>;
                // make session/prepare tooltip content
                //return true;
            }
            return base.RequestSession(view, context);
        }

    }
How do i retrieve the text(range) of the collapsed text?

Thanks
Martin

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
The TagSnapshotRange you have there should have a property on it that gives you a TextSnapshotRange object. From the TextSnapshotRange object, you can get offsets and the actual text.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.