We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

CalculatedValue vs DisplayText

The below table illustrates the differences between CalculatedValue and DisplayText properties.

 

 

Calculated Value

DisplayText

1

With EnableSheetCalculation

  1. Returns only evaluated value (if cell has a formula)
  2. Returns only cell value (if cell has no formula)

 

  1. Returns evaluated value with number format (if cell has a formula)
  2. Returns cell value with number format (if cell has no formula)

 

 

Performance is good as it evaluates the formula alone.

Performance is low as it has many checks like HasFormula, HasNumber, Format, Etc.

2

Without EnableSheetCalculation

Always returns "NULL".

Always returns cell value with its number format.

 

Here is the sample code to enabling sheet calculation and accessing display text of a range in XlsIO.

C#

VB

 

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
5822 11/30/2015 11/30/2015 Windows Forms XlsIO
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.