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

DefaultPadding Property


C# Signature:

VB.NET Signature:


Description:

Returns or sets an int that represents the default table cell margin at a particular location. One twip = (1/20 pt) or (1/1440 in)

Allowed locations are Top, Left, Bottom, and Right, which refer to the default margins for those sides of a table cell.

By default, Top and Bottom are set to 0", and Left and Right are set to 0.08".

Word equivalent: Table menu > Table Properties... > Table tab > Options... button > Default cell margins section

DefaultPadding is a read / write property.



Examples:

[csharp]
// Return DefaultPadding for Left margin
int defaultPadding = oTableFormatting.get_DefaultPadding(TableCell.Location.Left);
// Set DefaultPadding for Left margin to 1 inch
oTableFormatting.set_DefaultPadding(TableCell.Location.Left, 1440);
[vbnet]
' Return DefaultPadding for Left margin
Dim defaultPadding As Integer = oTableFormatting.DefaultPadding(TableCell.Location.Left)
' Set DefaultPadding for Left margin to 1 inch
oTableFormatting.DefaultPadding(TableCell.Location.Left, 1440)


Getter

Signature:

public int DefaultPadding

Parameters:

TableCell.Location location A TableCell.Location object that represents ths location of the margin.

Returns:

int An int that represents the default table cell margin at a particular location.

Setter

Signature:

public void DefaultPadding TableCell.Location location , int value

Type:

TableCell.Location

Parameters:

int value An int that represents the default table cell margin at a particular location in twips.



Copyright 2007 © SoftArtisans, Inc. All Rights Reserved.