## Table.PreferredWidth property

Tablonun tercih edilen genişliğini alır veya ayarlar.

```csharp
public PreferredWidth PreferredWidth { get; set; }
```

## Notlar

Varsayılan değer:[`Auto`](../../preferredwidth/auto/).

## Örnekler

Bir tablonun sayfa genişliğinin %50'sine otomatik olarak sığacak şekilde nasıl ayarlanacağını gösterir.

```csharp
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

Table table = builder.StartTable();
builder.InsertCell();
builder.Write("Cell #1");
builder.InsertCell();
builder.Write("Cell #2");
builder.InsertCell();
builder.Write("Cell #3");

table.PreferredWidth = PreferredWidth.FromPercent(50);

doc.Save(ArtifactsDir + "DocumentBuilder.InsertTableWithPreferredWidth.docx");
```

### Ayrıca bakınız

* class [PreferredWidth](../../preferredwidth/)
* class [Table](../)
* ad alanı [Aspose.Words.Tables](../../../aspose.words.tables/)
* toplantı [Aspose.Words](../../../)
