Why we need applyFont or applyNumFmt?

Jiangming He 1 Reputation point

I am confused about the attributes contained in xf.
It seems it is unnecessary to use these attributes.

Office Open Specifications
Office Open Specifications
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Open Specifications: Technical documents for protocols, computer languages, standards support, and data portability. The goal with Open Specifications is to help developers open new opportunities to interoperate with Windows, SQL, Office, and SharePoint.
117 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mike Bowen 1,271 Reputation points Microsoft Employee

    Hi @Jiangming He ,

    According to [2.1.720 Part 1 Section 18.8.45, xf (Format)] in MS-OI29500]1, "The default value for applyBorder in cellStyleXfs is true.", so applyBorder is not required, but defaults to true.

    For applyNumFmt, I believe the attribute you're referring to is applyNumberFormat. If this is incorrect, please let me know. For applyNumberFormat, also from [2.1.720 Part 1 Section 18.8.45, xf (Format)] in MS-OI29500]1 "The default value for applyNumberFormat in cellXfs element is false.", so applyNumberFormat is not required, but defaults to false.

    Please let me know if this answers your question.



    0 comments No comments