Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

How to add a suffix to a new Table in C#

nshupeFMPE3
Advocate

How to add a suffix to a new Table in C#

nshupeFMPE3
Advocate
Advocate

I've created a new table using .NET C# and have it correctly inserting into paper space. I'd like to add a format to cells on the right most column to have a ' (foot marker) suffix. 

What is the function I have to use to accomplish this? I eventually figured out how to add a formula to a cell to total up the rest of the cells, which was not easy. 

Is there clear documentation or examples of how to use Table functions? the .NET developer resource online has a lot of things like 
DataType : (and then nothing explaining what this method or property is)


0 Likes
Reply
530 Views
3 Replies
Replies (3)

Ed__Jobe
Mentor
Mentor

If you look at the GUI, cell format is controlled by the DataType property. However, only a preset enumeration is available. You would have to use an event to directly edit the text. Another option is to name the column header with the units and use a data type of Decimal Number. For example, "Length (Feet)".

 

2022-02-10_7-52-04.png

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes

nshupeFMPE3
Advocate
Advocate

Thanks for the help! Sounds like its not very easy which is to bad... Was hoping there was a way I could access the Additional Formatting options some how through the code

0 Likes

Ed__Jobe
Mentor
Mentor

That feature doesn't format the table style like you would think an Excel format would. The DATAEXTRACTION wizard just uses it to edit the text. After you place the table, there is no cell formatting. The textstring, just has an apostrophe appended to it. You will have to edit the text yourself.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes