Forums     Knowledge Base     OfficeWriter Online     
 
 
This documentation is for
OfficeWriter v3.8.1
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > WordApplication API > ParagraphFormatting > Indent

Indent Property


C# Signature:

VB.NET Signature:


Description:

Sets or returns the indent in twips for a specified location. One twip = (1/20 pt) or (1/1440 in). If the location is Left, the indent is the space between the left edge of the paragraph and the left margin. If the location is specified as Right, the indent is the space between the right edge of the paragraph and the right margin. If the location is FirstLine, the indent is the space between the start of the first line and the left margin.

All indents can be negative, which means that the paragraph boundaries can be stretched into the margins or even off of the page.

MS Word equivalent: Format menu > Paragraph... > Indents and Spacing tab > Indentation section

Indent is a read / write property.



Examples:

[csharp]
// Return Indent
int indent = oParagraphFormatting.get_Indent(IndentLocation.Left);
// Set Left Indent to 1 inch
oParagraphFormatting.set_Indent(1440, IndentLocation.Left);
[vbnet]
' Return Indent
Dim indent As Integer = oParagraphFormatting.Indent(IndentLocation.Left)
' Set Left Indent to 1 inch
oParagraphFormatting.Indent(1440, IndentLocation.Left)


Getter

Signature:

public int Indent

Parameters:

ParagraphFormatting.IndentLocation location The location to get the indent for.

Returns:

int A an int that represents the indent in twips for the specified location.

Setter

Signature:

public void Indent int twips , ParagraphFormatting.IndentLocation location

Type:

int

Parameters:

ParagraphFormatting.IndentLocation location The location to indent.



Copyright 2007 © SoftArtisans, Inc. All Rights Reserved.