Back to Devexpress

TableCell.Height Property

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

latest3.1 KB
Original Source

TableCell.Height Property

Gets or sets the height of a table cell.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
float Height { get; set; }
vb
Property Height As Single

Property Value

TypeDescription
Single

A Single value that is the height in points.

|

Remarks

We do not recommend setting different size to several cells within one column. It changes the layout of the whole column.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Height 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#L42

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

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

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

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

vb
table(0, 2).HeightType = HeightType.Exact
table(0, 2).Height = Units.InchesToDocumentsF(0.5F)
'Set the third column width

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

vb
table(0, 1).HeightType = HeightType.Exact
table(0, 1).Height = Units.InchesToDocumentsF(0.5F)
'Set the third column width

See Also

TableCell Interface

TableCell Members

DevExpress.XtraRichEdit.API.Native Namespace