ITextParagraphFormat.SetIndents(Single, Single, Single) Method

Definition

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

public:
 void SetIndents(float start, float left, float right);
void SetIndents(float const& start, float const& left, float const& right);
public void SetIndents(float start, float left, float right);
function setIndents(start, left, right)
Public Sub SetIndents (start As Single, left As Single, right As Single)

Parameters

start
Single

float

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
Single

float

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
Single

float

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.

Applies to

See also