Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 829447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:53:04+00:00 2026-05-15T03:53:04+00:00

Everytime the IWpfTextView’s TextBuffer changes I am trying to get the history’s redostack and

  • 0

Everytime the IWpfTextView’s TextBuffer changes I am trying to get the history’s redostack and undostack and simply checking the count. When doing this I am encountering a “Method not supported exception” when trying to access the two stacks.

Am I retrieving the history incorrectly or does VS not want me seeing/editing the contents of the stacks?

I can post the code if necessary…

Thanks,
Nick

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T03:53:04+00:00Added an answer on May 15, 2026 at 3:53 am

    It’s probably because the editor’s undo history implementation in VS is a thin wrapper on top of the general VS undo history. I’d guess that Count isn’t implemented on the editor’s text undo history because there isn’t an implementation on the VS undo history (IOleUndoManager only supports enumeration, so implementing Count would be expensive).

    In general, though, it doesn’t want you editing the contents of the stacks. If the undo stack gets out of sync with the text buffer, it’ll essentially break undo and make small, cute animals cry.

    It may help if you describe what you are trying to do, and then I can give better answers for how to accomplish that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Everytime I open VS 2010 I get this: The automatically saved settings file 'visual
I get this error everytime I try to use my content provider to insert
This is a small detail but everytime I lazy load something I get caught
I'm trying to do this update_activity_time everytime a user does something in the app.
I get an error everytime I upload my webapp to the provider. Because of
Today, everytime I try to open any .Net application I get: CLR error: 80004005
Everytime I get an error in any of my PHP, my local Apache server
Everytime I do git status there is this folder that appears as untracked. $
Everytime a specific action is made in JavaScript for example this: <script type=text/javascript> $(function()
Practically everytime I stage a textfile (that's most of em), I get the message

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.