OfficeIMO

API Reference

Class

WordBreak

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word

Represents a break in the text. Be it page break, soft break, column or text wrapping

Inheritance

Constructors

public WordBreak(WordDocument document, Paragraph paragraph, Run run) #

Create new instance of WordBreak

Parameters

document OfficeIMO.Word.WordDocument requiredposition: 0
paragraph DocumentFormat.OpenXml.Wordprocessing.Paragraph requiredposition: 1
run DocumentFormat.OpenXml.Wordprocessing.Run requiredposition: 2

Methods

public Void Remove(Boolean includingParagraph = false) #
Returns: Void

Remove the break from WordDocument. By default it removes break without removing paragraph. If you want paragraph removed please use IncludingParagraph bool. Please remember a paragraph can hold multiple other elements.

Parameters

includingParagraph System.Boolean = false optionalposition: 0

Properties

public Nullable<BreakValues> BreakType { get; } #

Get type of Break in given paragraph