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 > SpaceBefore

SpaceBefore Property


C# Signature:

VB.NET Signature:


Description:

Sets or returns an int representing the amount of whitespace that should be placed above a paragraph in twips. One twip = (1/20 pt) or (1/1440 in)

This must be between 0 pt (0 twips) and 1584 pt (31680 twips). Values beyond these will be automatically adjusted.

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

SpaceBefore is a read / write property.



Examples:

[csharp]
// Return SpaceBefore
int spaceBefore = oParagraphFormatting.SpaceBefore;
// Set SpaceBefore to 12 pt
oParagraphFormatting.SpaceBefore = 240;
[vbnet]
' Return SpaceBefore
Dim spaceBefore As Integer = oParagraphFormatting.SpaceBefore
' Set SpaceBefore to 12 pt
oParagraphFormatting.SpaceBefore = 240


Getter

Signature:

public int SpaceBefore

Returns:

int An int representing the amount of whitespace that is above a paragraph in twips.

Setter

Signature:

public void SpaceBefore int twips

Type:

int



Copyright 2007 © SoftArtisans, Inc. All Rights Reserved.