ITextParagraphFormat.SetIndents method

Applies to Windows and Windows Phone

Sets the first-line indent, the left indent, and the right indent for a paragraph.

Syntax


void SetIndents(
  float start, 
  float left, 
  float right
)

Parameters

start

Type: System.Single [.NET] | float32 [C++]

The indent of the first line in a paragraph, relative to the left indent. The value is in floating-point points and can be positive or negative.

left

Type: System.Single [.NET] | float32 [C++]

The left indent of all lines except the first line in a paragraph, relative to the left margin. The value is in floating-point points and can be positive or negative.

right

Type: System.Single [.NET] | float32 [C++]

The right indent of all lines in a paragraph, relative to the right margin. The value is in floating-point points and can be positive or negative. This value is optional.

Remarks

Line indents cannot position text in the margins. If the first-line indent is set to a negative value, for an outdented paragraph, while the left indent is zero, the first-line indent is reset to zero. To avoid this problem while retaining property sets, explicitly set the first-line indent value equal to zero, and then call SetIndents to set a nonnegative, left-indent value and set the desired first-line indent.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Text
Windows::UI::Text [C++]

Metadata

Windows.winmd

See also

ITextParagraphFormat
ITextParagraphFormat.FirstLineIndent
ITextParagraphFormat.LeftIndent
ITextParagraphFormat.RightIndent

 

 

Show:
© 2014 Microsoft