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

Manikandan MurugesanPosted Jun 28, 2017, 9:56 PM
Abhishek SrivastavaPosted Jun 28, 2017, 1:21 PM
chetan AllipurPosted Jun 27, 2017, 8:46 AM
chetan AllipurPosted Jun 27, 2017, 8:30 AM
Abhilash J APosted Jun 27, 2017, 8:25 AM
chetan AllipurPosted Jun 27, 2017, 5:47 AM
Rajkiran SwainPosted Jun 27, 2017, 5:44 AM
chetan AllipurPosted Jun 27, 2017, 4:48 AM
chetan AllipurPosted Jun 27, 2017, 4:42 AM
Abhilash J APosted Jun 27, 2017, 3:49 AM
Anil JhaPosted Jun 27, 2017, 3:48 AM