Version

IndentParagraphs Method

Adds to the existing indentation of paragraphs intersecting the specified document span by the specified amount. If paragraphs are part of a list then changes their list levels instead.
Syntax
'Declaration
 
Public Function IndentParagraphs( _
   ByVal intersectSpan As DocumentSpan, _
   Optional ByVal amount As Nullable(Of Extent), _
   Optional ByVal firstLineOnly As Nullable(Of Boolean) _
) As Boolean
public bool IndentParagraphs( 
   DocumentSpan intersectSpan,
   Nullable<Extent> amount,
   Nullable<bool> firstLineOnly
)

Parameters

intersectSpan
Paragraphs intersecting this document span are affected.
amount
Amount by which to increase indentation of paragraphs. If null then indents to the next tab stop. Note that if the paragraphs are part of a list then this value is ignored and instead paragraphs' list level values are increased.
firstLineOnly
If true then indents only the first line. If false then indents the whole paragraph. If null then it enulates the user interface behavior of indenting either the first line or the paragraph depending on the value of the intersectSpan where if it's a zero length span with the start value that points to the beginning of the paragraph then it will indent the first line, otherwise the whole paragraph.

Return Value

True if operation indented or outdented one or more paragraphs. False if operation was a NOOP which can be when the paragraph's current indentation is at a point where it cannot be indented/outdented.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also