Message-ID: <775880004.7677.1711618004586.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_7676_1093401169.1711618004586" ------=_Part_7676_1093401169.1711618004586 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html TableCell.PreferredWidth

TableCell.PreferredWidth

Description

=20

Returns or sets an int that represents the preferred width = of this cell. In order to set this property, the CellWidthUnits property must first be set. The = width is returned in twips. One twip =3D (1/20 pt) or (1/1440 in).

=20
C#
=20
 public int PreferredWidth{ get; set; }
=20
=20
vb.net
=20
Public Property PreferredWidth() As Integer
=20
=20

Remarks

MS Word equivalent= : Table menu > Table Properties... > Cell tab > Size section > = Preferred width:=20

Examples

=20
C#
=20

          //--- Return PreferredWidth
          int preferredWidth =3D cell.PreferredWidth;

          //--- Set PreferredWidth to 1 inch
          cell.CellWidthUnits =3D TableCell.WidthUnits.Twips;
          cell.PreferredWidth =3D 1440;
        
=20
=20
vb.net
=20

          '--- Return PreferredWidth
          Dim preferredWidth As Integer =3D cell.PreferredWidth

          '--- Set PreferredWidth to 1 inch
          cell.CellWidthUnits =3D TableCell.WidthUnits.Twips
          cell.PreferredWidth =3D 1440
        
=20
------=_Part_7676_1093401169.1711618004586--