Class ElementsExtensions
- Namespace
- MigraDoc.DocumentObjectModel.Visitors
- Assembly
- MigraDoc.DocumentObjectModel.dll
Extension methods for document objects.
public static class ElementsExtensions
- Inheritance
-
objectElementsExtensions
Methods
- Filter<T>(IEnumerable<DocumentObject?>)
Filters the document objects of a specific type.
- GetElements(DocumentObject, bool)
Gets the elements/sections/rows/cells of a DocumentObject.
- GetElementsRecursively(DocumentObject, bool)
Gets the elements/sections/rows/cells of a DocumentObject recursively.
- GetElementsRecursively(DocumentObject, List<Type>, bool, bool)
Gets the elements/sections/rows/cells of a DocumentObject recursively, stopping recursion at elements of the Types listed in stopAtItems.
- GetElementsRecursively<T>(DocumentObject, bool)
Gets the elements/sections/rows/cells of Type T of a DocumentObject recursively.
- GetElements<T>(DocumentObject, bool)
Gets the elements/sections/rows/cells of Type T of a DocumentObject.
- GetFont(DocumentObject)
Gets the font of a DocumentObject stored in Font or Format.Font.
- GetFormat(DocumentObject)
Gets the ParagraphFormat of a DocumentObject.
- GetStyle(DocumentObject)
Gets the style of a DocumentObject.
- GetText(Hyperlink)
Gets the text content of the hyperlinks’s elements as a string.
- GetText(Paragraph)
Gets the text content of the paragraph’s elements as a string.
- GetText(Cell)
Gets the text content of the cell’s elements as a string.
- GetText(IEnumerable<DocumentObject?>)
Gets the text content of the elements as a string.
- GetUsedFormatValue(DocumentObject, Func<Font, Unit>)
Gets a directly or via style assigned Font sub-value of type Unit.
- GetUsedFormatValue(DocumentObject, Func<ParagraphFormat, Unit>)
Gets a directly or via style assigned ParagraphFormat sub-value of type Unit.
- GetUsedFormatValue<T>(DocumentObject, Func<Font, T>, Func<T, bool>, T)
Gets a directly or via style assigned Font sub-value.
- GetUsedFormatValue<T>(DocumentObject, Func<ParagraphFormat, T>, Func<T, bool>, T)
Gets a directly or via style assigned ParagraphFormat sub-value.