HorizontalInVertical Property
TOC
Collapse the table of content
Expand the table of content

Bookmark.HorizontalInVertical Property

 

Gets or sets the formatting for horizontal text set within vertical text in the Bookmark control.

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

WdHorizontalInVerticalType HorizontalInVertical { get; set; }

The following code example adds a Bookmark control with text to the first paragraph and then changes the third word to display vertically in the bookmark.

This example is for a document-level customization.

private void BookmarkHorizontalInVertical()
{
    this.Paragraphs[1].Range.InsertParagraphBefore();
    Microsoft.Office.Tools.Word.Bookmark bookmark1 =
        this.Controls.AddBookmark(this.Paragraphs[1].Range,
        "bookmark1");
    bookmark1.Text = "This is sample bookmark text.";
    bookmark1.Words[3].HorizontalInVertical = Word.
        WdHorizontalInVerticalType.wdHorizontalInVerticalResizeLine;
}
Return to top
Show:
© 2016 Microsoft