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 > TableFormatting > DefaultSpacing

DefaultSpacing Property


C# Signature:

VB.NET Signature:


Description:

Returns or sets an int that represents the default spacing between a table's cells that has this formatting. This is the distance in twips between the edge of a cell and the center of its border with an adjacent cell. One twip = (1/20 pt) or (1/1440 in)

By default, this is set to zero (0) for a new table.

Word equivalent: Table menu > Table Properties... > Table tab > Options... button > Default cell spacing section > Allow spacing between cells

DefaultSpacing is a read / write property.



Examples:

[csharp]
// Return DefaultSpacing
int defaultSpacing = oTableFormatting.DefaultSpacing;
// Set DefaultSpacing to 1/2 inch
oTableFormatting.DefaultSpacing(720);
[vbnet]
' Return DefaultSpacing
Dim defaultSpacing As Integer = oTableFormatting.DefaultSpacing
' Set DefaultSpacing to 1/2 inch
oTableFormatting.DefaultSpacing(720)


Getter

Signature:

public int DefaultSpacing

Returns:

int An int that represents the default spacing between this table's cells in twips.

Setter

Signature:

public void DefaultSpacing int spacing

Type:

int



Copyright 2007 © SoftArtisans, Inc. All Rights Reserved.