CollapsedRegionQuickInfoProvider - retrieving collapsed text

SyntaxEditor for WPF Forum

Posted 14 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 14 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 (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.