...
Introducedin | ||
---|---|---|
|
...
|
Description |
---|
Excerpt |
---|
Sets a list of bookmarks to be removed from the document. |
Signature | ||||
---|---|---|---|---|
| ||||
public void BookmarksToRemove(string [] bookmarks)
{signature}{signature: |
Signature | ||||||
---|---|---|---|---|---|---|
| }
| |||||
Public Sub BookmarksToRemove(bookmarks as string())
{signature}
{parameters}
{param:bookmarks}An array of strings containing the names of all the bookmarks to be removed{param}
{exceptions}
{exception:SAException}{{BookmarksToRemove}} will throw this exception if a bookmark in the list has been set as a [Repeat Block|WordTemplate.SetRepeatBlock]{exception}
{exception:NullArgumentException}{{BookmarksToRemove}} will throw this exception if {{bookmarks}} is null.{exception}
{remarks}
*This feature is available in OOXML files (DOCX/DOCM) only.*
Removing a bookmark will remove anything that is inside that bookmark.
{remarks}
{example}
{code:csharp|title=C#} |
Parameters |
---|
Param | ||||
---|---|---|---|---|
| ||||
An array of strings containing the names of all the bookmarks to be removed |
Exceptions |
---|
Exception | ||||
---|---|---|---|---|
| ||||
|
Exception | ||||
---|---|---|---|---|
| ||||
|
Remarks |
---|
This feature is available in OOXML files (DOCX/DOCM) only. Removing a bookmark will remove anything that is inside that bookmark. |
Example | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|