API Reference
RtfSection
Semantic RTF section containing ordered document blocks and section-level page layout.
Inheritance
- Object
- RtfSection
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method RtfDocument.AddSection
- Property RtfDocument.Sections
- Method RtfSection.ClearColumns
- Method RtfSection.SetDirection
- Method RtfSection.SetVerticalAlignment
Accepted by parameters
Methods
public RtfSectionColumn AddColumn(Nullable<Int32> widthTwips = null, Nullable<Int32> spaceAfterTwips = null) #RtfSectionColumnAdds an unequal section column definition.
Parameters
- widthTwips System.Nullable{System.Int32} = null
- spaceAfterTwips System.Nullable{System.Int32} = null
public RtfImage AddImage(RtfImageFormat format, Byte[] data) #RtfImageAdds a picture block to the section.
Parameters
- format OfficeIMO.Rtf.RtfImageFormat
- data System.Byte[]
public RtfParagraph AddParagraph(String text = null) #RtfParagraphAdds a paragraph to the section.
Parameters
- text System.String = null
public RtfTable AddTable(Int32 rows, Int32 columns) #RtfTableAdds a table block to the section.
Parameters
- rows System.Int32
- columns System.Int32
public RtfSection SetDirection(Nullable<RtfTextDirection> direction) #RtfSectionSets the section text direction.
Parameters
- direction System.Nullable{OfficeIMO.Rtf.RtfTextDirection}
public RtfSection SetVerticalAlignment(Nullable<RtfSectionVerticalAlignment> alignment) #RtfSectionSets vertical text alignment for pages in the section.
Parameters
- alignment System.Nullable{OfficeIMO.Rtf.RtfSectionVerticalAlignment}
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public IReadOnlyList<IRtfBlock> Blocks { get; } #Ordered blocks contained by the section.
public RtfPageSetup PageSetup { get; set; } #Section page size, margins, and orientation.
public RtfNoteSettings NoteSettings { get; set; } #Section-level footnote and endnote numbering settings.
public RtfSectionBreakKind BreakKind { get; set; } #Section break behavior.
public Nullable<Int32> ColumnCount { get; set; } #Number of text columns in the section.
public Nullable<Int32> ColumnSpaceTwips { get; set; } #Space between section columns in twips.
public Boolean 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; set; } #Section line-numbering settings.
public Nullable<RtfSectionVerticalAlignment> VerticalAlignment { get; set; } #Vertical text alignment for pages in the section.
public Nullable<RtfTextDirection> Direction { get; set; } #Section text direction represented by \ltrsect or \rtlsect.