...
Wiki Markup |
---|
{description}
{excerpt}Returns an {{int}} that represents the default table cell margin at a particular location. One twip = \(1/20 pt\) or \(1/1440 in\) |
...
Signature |
---|
C# | C# | {excerpt}
{signature:C#}
public int GetDefaultPadding(Location location)
|
Signature |
---|
{signature}{signature:vb.net | vb.net | }
Public Function GetDefaultPadding(ByVal location As Location) As Integer
|
...
A TableCell.Location object that represents ths location of the margin.
Returns |
---|
An int that represents the default table cell margin at a particular location. |
Remarks |
---|
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 |
Example |
---|
Code Block |
---|
| csharp | csharp |
title | C# |
---|
{signature}
{parameters}
{param:location}A [TableCell.Location|TableCell.Location] object that represents ths location of the margin.{param}
{returns}An {{int}} that represents the default table cell margin at a particular location.{returns}
{remarks}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
{remarks}
{example}{code:csharp|title=C#}
//--- Return DefaultPadding for Left margin
int defaultPadding =
oTableFormatting.GetDefaultPadding(TableCell.Location.Left);
Code Block |
---|
{code}
{code:vb.net
vb.net | title | |title=vb.net
}
'--- Return DefaultPadding for Left margin
Dim defaultPadding As Integer = _
oTableFormatting.GetDefaultPadding(TableCell.Location.Left)
{code}
{example}