CollapsedRegionQuickInfoProvider - retrieving collapsed text

SyntaxEditor for WPF Forum

Posted 13 years ago by Martin - Blaise - Statistics Netherlands
Version: 9.2.0514

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?


Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
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 (v22.1.3) was released 29 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.