InlineCollection¶
Represents the inline elements of a paragraph, such as text runs, fields, and hyperlinks.
Capabilities¶
Properties¶
- InlineCollection.Count: Gets the number of elements in the collection. Elements are read by index, for example
table.Rows[0].
Links and Bookmarks¶
- InlineCollection.AddBookmarkEnd: Adds the end marker of a bookmark started with AddBookmarkStart.
- InlineCollection.AddBookmarkStart: Adds the start marker of a bookmark. Close it with AddBookmarkEnd using the same name.
- InlineCollection.AddHyperlink: Adds a hyperlink.
References¶
- InlineCollection.AddField: Adds a field.
Content Controls¶
- InlineCollection.AddInlineContentControl: Adds an inline content control, such as a plain text or date control.
Notes and Comments¶
- InlineCollection.AddNote: Adds a footnote or an endnote. Add the note text to the note's Note.Blocks.
Text and Formatting¶
- InlineCollection.AddRun: Adds a run of text with a single character format.
Drawing¶
- InlineCollection.AddShape: Adds a shape in line with the text.
Inline Content¶
- InlineCollection.AddSpecialCharacter: Adds a special character, such as a line break, a page break, or a tab.
Methods¶
- InlineCollection.Append: Adds an existing element, such as a clone created with Element.Clone, to the end of the collection.
- InlineCollection.Clear: Removes all elements from the collection.
- InlineCollection.IndexOf: Returns the zero-based index of an element in the collection.
- InlineCollection.Remove: Removes the specified element from the collection.
- InlineCollection.RemoveAt: Removes the element at the specified zero-based index.
- InlineCollection.ToArray: Returns the elements as an array.