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 3492536
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:46:13+00:00 2026-05-18T11:46:13+00:00

How can you tell if a FlowDocument contains any text that the user typed

  • 0

How can you tell if a FlowDocument contains any text that the user typed in or not?

I have an application that auto-commits changes for each screen. I want to know if the FlowDocument obtained from a RichTextBox contains any user input or if it is blank. I convert the FlowDocument to binary xaml and commit it to db. If the FlowDocument contains no user text then I do not want to add a new FlowDocument to the db.

I don’t want to parse the xaml to check if there is any user text.

  • 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-18T11:46:14+00:00Added an answer on May 18, 2026 at 11:46 am

    The way to do this is:

    var range = new TextRange(flowDocument.ContentStart, flowDocument.ContentEnd);
    if (!range.IsEmpty)
    {
        // commit changes
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can Somebody can tell what is need of application class . I have read
Google says that you can tell it to not provide a cached link in
please any one can tell me video format that play on any browser ,
As far as I can tell, clicking on submit button does not take me
so from what i can tell, you have to specify artifacts and working directory
Can anybody tell me how to make my compiler find the libs that it
I can tell it best by explaining the query I have, and what I
as you can tell by the title I want to have a footer stick
have anyone can tell me what syntax error on this actionscript (actionscript3.0)? var rotY:
As you can tell, I'm new to Objective-C. I currently have a Singleton working,

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.