Back to Devexpress

TableCell.HeightType Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-tablecell.md

latest3.6 KB
Original Source

TableCell.HeightType Property

Gets or sets the type of a rule used to determine the height of a cell.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
HeightType HeightType { get; set; }
vb
Property HeightType As HeightType

Property Value

TypeDescription
HeightType

A HeightType enumeration member specifying how the height is determined.

|

Available values:

NameDescription
Auto

The height increases automatically to accommodate the content.

| | Exact |

The exact height as specified. If the text cannot fit the height, it will appear truncated.

| | AtLeast |

The minimum height will be the specified height. The height can be increased, if needed, to accommodate the content.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the HeightType property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richedit-tables-simple-example/CS/TablesSimpleExample/Form1.cs#L41

csharp
table[0, 2].PreferredWidth = Units.InchesToDocumentsF(5f);
table[0, 2].HeightType = HeightType.Exact;
table[0, 2].Height = Units.InchesToDocumentsF(0.5f);

word-document-api-table-examples/CS/Program.cs#L60

csharp
table[0, 1].PreferredWidth = Units.InchesToDocumentsF(5f);
table[0, 1].HeightType = HeightType.Exact;
table[0, 1].Height = Units.InchesToDocumentsF(0.5f);

winforms-richedit-tables-simple-example/VB/TablesSimpleExample/Form1.vb#L36

vb
table(0, 2).PreferredWidth = Units.InchesToDocumentsF(5F)
table(0, 2).HeightType = HeightType.Exact
table(0, 2).Height = Units.InchesToDocumentsF(0.5F)

word-document-api-table-examples/VB/Program.vb#L47

vb
table(0, 1).PreferredWidth = Units.InchesToDocumentsF(5F)
table(0, 1).HeightType = HeightType.Exact
table(0, 1).Height = Units.InchesToDocumentsF(0.5F)

See Also

TableCell Interface

TableCell Members

DevExpress.XtraRichEdit.API.Native Namespace