chetan Allipur

chetan Allipur

  • NA
  • 541
  • 167.8k

Please convert it to c#

Jun 27 2017 1:00 AM
Here is VBA Code
 
If Right(Trim(ActiveDocument.Bookmarks("\HeadingLevel").Range.Paragraphs(hNumb).Style), 6) = "NoNumb" Then
h_prefix = sGetDocVar("CTDPrefix")
SetDocVar "TablePrefix", "Table " & h_prefix & "."
t_prefix = sGetDocVar("TablePrefix")
hNumb = "-"
Else
h_prefix = sGetDocVar("CTDPrefix")
SetDocVar "TablePrefix", "Table " & h_prefix & "."
t_prefix = sGetDocVar("TablePrefix")
End If
 
I want same working Functionality in c#. Please send me back c# code 

Answers (17)