OdtParagraph
OfficeIMO.OpenDocument
An XML-backed ODT paragraph or heading.
Inheritance
- object
- OdtParagraph
Usage
Explore 23 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 22
- Property OdtContentBlock.Paragraph
- Method OdtDocument.AddHeading
- Method OdtDocument.AddPageBreak
- Method OdtDocument.AddParagraph
- Property OdtDocument.Paragraphs
- Method OdtHeaderFooter.AddHeading
- Method OdtHeaderFooter.AddParagraph
- Property OdtHeaderFooter.Paragraphs
- Method OdtListItem.AddParagraph
- Property OdtListItem.Paragraphs
- Method OdtNote.AddParagraph
- Property OdtNote.Paragraphs
- Method OdtParagraph.AddBookmark
- Method OdtParagraph.AddBookmarkEnd
- Method OdtParagraph.AddBookmarkStart
- Method OdtParagraph.AddText
- Method OdtParagraph.TransformTextCase
- Method OdtSection.AddHeading
- Method OdtSection.AddParagraph
- Property OdtSection.Paragraphs
- Method OdtTableCell.AddParagraph
- Property OdtTableCell.Paragraphs
Accepted by parameters 1
Methods
public OdtParagraph AddBookmark(string name) #Appends a collapsed bookmark.
Parameters
- name string
Returns
OdtParagraphpublic OdtParagraph AddBookmarkEnd(string name) #Appends a bookmark range end marker.
Parameters
- name string
Returns
OdtParagraphpublic OdtParagraph AddBookmarkStart(string name) #Appends a bookmark range start marker.
Parameters
- name string
Returns
OdtParagraphpublic OdtNote AddEndnote(string text) #Appends a native endnote at the current inline position.
Parameters
- text string
Returns
OdtNotepublic OdtField AddField(OdtFieldKind kind, string? displayText) #Appends a native ODT field with cached display text.
Parameters
- kind OfficeIMO.OpenDocument.OdtFieldKind
- displayText string?
Returns
OdtFieldpublic OdtNote AddFootnote(string text) #Appends a native footnote at the current inline position.
Parameters
- text string
Returns
OdtNotepublic OdtHyperlink AddHyperlink(string text, string href) #Appends a hyperlink without resolving or fetching its target.
Parameters
- text string
- href string
Returns
OdtHyperlinkpublic OdtImage AddImage(byte[] data, string fileName, OdfLength width, OdfLength height, OdtImageAnchor anchor = Inline) #Appends an inline or paragraph-anchored image.
Parameters
- data byte[]
- fileName string
- width OfficeIMO.OpenDocument.OdfLength
- height OfficeIMO.OpenDocument.OdfLength
- anchor OfficeIMO.OpenDocument.OdtImageAnchor = Inline
Returns
OdtImagepublic OdtSpan AddRun(string? text = null) #Appends a styled text span.
Parameters
- text string? = null
Returns
OdtSpanpublic OdtParagraph AddText(string text) #Appends plain text while encoding ODF whitespace semantics.
Parameters
- text string
Returns
OdtParagraphpublic OdtParagraph TransformTextCase(OfficeTextCase textCase, CultureInfo? culture = null) #Changes stored paragraph text casing while preserving spans, hyperlinks, bookmarks, and images.
Parameters
- textCase OfficeIMO.Drawing.OfficeTextCase
- culture System.Globalization.CultureInfo? = null
Returns
OdtParagraphInherited Methods
Properties
public string Text { get; set; } #Plain text with ODF spaces, tabs, and line breaks decoded.
public int? HeadingLevel { get; set; } #Heading outline level, or null for a normal paragraph.
public IReadOnlyList<OdtSpan> Spans { get; } #Inline text spans in this paragraph.
public IReadOnlyList<OdtHyperlink> Hyperlinks { get; } #Hyperlinks in this paragraph.
public IReadOnlyList<OdtField> Fields { get; } #Native page, count, date, and time fields in paragraph order.
public IReadOnlyList<OdtInlineNode> InlineNodes { get; } #Direct inline nodes in document order. Use this syntax view when mixed plain text, spans, links, images, or bookmark markers must be processed without flattening.
public IReadOnlyList<OdtNote> Notes { get; } #Footnotes and endnotes referenced from this paragraph, in source order.
public IReadOnlyList<OdtImage> Images { get; } #Embedded image frames in this paragraph.
public bool PageBreakBefore { get; set; } #Controls whether this paragraph starts on a new page.
public OdfTextDecorationStyle? UnderlineStyle { get; set; } #Explicit or inherited native underline style.
public OdfTextDecorationType? UnderlineType { get; set; } #Explicit or inherited native underline line count.
public bool UsesNonSolidUnderlineStyle { get; } #Whether the effective underline uses a non-solid ODF decoration style.
public bool? Strikethrough { get; set; } #Explicit or inherited strike-through state.
public OdfTextDecorationStyle? LineThroughStyle { get; set; } #Explicit or inherited native line-through style.
public OdfTextDecorationType? LineThroughType { get; set; } #Explicit or inherited native line-through line count.
public bool UsesNonSolidLineThroughStyle { get; } #Whether the effective line-through uses a non-solid ODF decoration style.
public OdfTextPosition? TextPosition { get; set; } #Explicit or inherited baseline placement.
public OdfTextTransform? TextTransform { get; set; } #Explicit or inherited display-time case transformation.
public bool? SmallCaps { get; set; } #Explicit or inherited small-cap display formatting.
public OdfColor? TextBackgroundColor { get; set; } #Explicit or inherited text background color.
public OdfColor? BackgroundColor { get; set; } #Explicit or inherited paragraph background color.
public OdtParagraphAlignment? Alignment { get; set; } #Explicit or inherited horizontal paragraph alignment.
public string? WritingMode { get; set; } #Effective ODF writing-mode token, such as lr-tb or rl-tb.
public bool IsRightToLeft { get; } #Whether the effective horizontal paragraph writing mode is right-to-left.
public OdfLength? LineHeight { get; set; } #Effective paragraph line height, including absolute and percentage values.
public OdfLength? IndentStart { get; set; } #Explicit or inherited paragraph start indentation.
public OdfLength? IndentEnd { get; set; } #Explicit or inherited paragraph end indentation.
public OdfLength? FirstLineIndent { get; set; } #Explicit or inherited first-line indentation.
public OdfLength? SpaceAbove { get; set; } #Explicit or inherited spacing above the paragraph.
public OdfLength? SpaceBelow { get; set; } #Explicit or inherited spacing below the paragraph.