RtfSection
OfficeIMO.Rtf
Semantic RTF section containing ordered document blocks and section-level page layout.
Inheritance
- object
- RtfSection
Usage
Explore 7 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 5
- Method RtfDocument.AddSection
- Property RtfDocument.Sections
- Method RtfSection.ClearColumns
- Method RtfSection.SetDirection
- Method RtfSection.SetVerticalAlignment
Accepted by parameters 2
Methods
public RtfSectionColumn AddColumn(int? widthTwips = null, int? spaceAfterTwips = null) #Adds an unequal section column definition.
Parameters
- widthTwips int? = null
- spaceAfterTwips int? = null
Returns
RtfSectionColumnpublic RtfImage AddImage(RtfImageFormat format, byte[] data) #Adds a picture block to the section.
Parameters
- format OfficeIMO.Rtf.RtfImageFormat
- data byte[]
Returns
RtfImagepublic RtfParagraph AddParagraph(string? text = null) #Adds a paragraph to the section.
Parameters
- text string? = null
Returns
RtfParagraphpublic RtfTable AddTable(int rows, int columns) #Adds a table block to the section.
Parameters
- rows int
- columns int
Returns
RtfTablepublic RtfSection SetDirection(RtfTextDirection? direction) #Sets the section text direction.
Parameters
- direction OfficeIMO.Rtf.RtfTextDirection?
Returns
RtfSectionpublic RtfSection SetVerticalAlignment(RtfSectionVerticalAlignment? alignment) #Sets vertical text alignment for pages in the section.
Parameters
- alignment OfficeIMO.Rtf.RtfSectionVerticalAlignment?
Returns
RtfSectionInherited Methods
Properties
public IReadOnlyList<IRtfBlock> Blocks { get; } #Ordered blocks contained by the section.
public RtfPageSetup PageSetup { get; private set; } #Section page size, margins, and orientation.
public RtfNoteSettings NoteSettings { get; private set; } #Section-level footnote and endnote numbering settings.
public bool ColumnSeparator { get; set; } #Whether a vertical separator line is shown between columns.
public IReadOnlyList<RtfSectionColumn> Columns { get; } #Unequal section column definitions in section order.
public RtfLineNumbering LineNumbering { get; private set; } #Section line-numbering settings.
public RtfSectionVerticalAlignment? VerticalAlignment { get; set; } #Vertical text alignment for pages in the section.
public RtfTextDirection? Direction { get; set; } #Section text direction represented by \ltrsect or \rtlsect.