none
Code Question RRS feed

  • Question

  • What does (UInt32Value)4U do in the following cell definition code from the OpenXML Productivity Tool? I'm not familiar with this syntax. Can I just write StyleIndex = 4?

    Cell cell15 = new Cell(){ CellReference = "E4", StyleIndex = (UInt32Value)4U, DataType = CellValues.SharedString };


    Ray Pietrzak

    Friday, March 22, 2013 2:17 PM

Answers

  • Hi Rspiet,

    Thank you for posting in the MSDN Forum.

    As far as I'm concerned you cannot just write StyleIndex = 4, If you don't use the suffix in the previous declaration, you will get a compilation error.

    You can take a look into uint.

    Hope it helps.

    Best regards,


    Quist Zhang [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, March 25, 2013 1:55 PM
    Moderator

All replies