officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-tablerow-f2aeb982.md
Gets or sets the height of the current row.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
float Height { get; set; }
Property Height As Single
| Type | Description |
|---|---|
| Single |
A Single that is the row height in current measure units, or 0 (zero) if the TableRow.HeightType is set to HeightType.Auto.
|
The Height has no effect if the TableRow.HeightType is set to HeightType.Auto.
Units of measurement used in the current document are specified via the Document.Unit property.
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-document-api/CS/RichEditAPISample/CodeExamples/Table.cs#L60
table.Rows[1].HeightType = HeightType.Exact;
table.Rows[1].Height = DevExpress.Office.Utils.Units.InchesToDocumentsF(0.8f);
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/TableActions.cs#L64
table.Rows[1].HeightType = HeightType.Exact;
table.Rows[1].Height = DevExpress.Office.Utils.Units.InchesToDocumentsF(0.8f);
word-document-api-examples/CS/CodeExamples/TablesActions.cs#L94
table.Rows[1].HeightType = HeightType.Exact;
table.Rows[1].Height = DevExpress.Office.Utils.Units.InchesToDocumentsF(0.8f);
table.FirstRow.Height = Units.InchesToDocumentsF(0.5f);
table.FirstRow.HeightType = HeightType.Exact;
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Table.vb#L52
table.Rows(CInt((1))).HeightType = DevExpress.XtraRichEdit.API.Native.HeightType.Exact
table.Rows(CInt((1))).Height = DevExpress.Office.Utils.Units.InchesToDocumentsF(0.8F)
table(CInt((1)), CInt((2))).PreferredWidthType = DevExpress.XtraRichEdit.API.Native.WidthType.Fixed
wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/TableActions.vb#L55
table.Rows(1).HeightType = HeightType.Exact
table.Rows(1).Height = DevExpress.Office.Utils.Units.InchesToDocumentsF(0.8F)
word-document-api-examples/VB/CodeExamples/TablesActions.vb#L87
table.Rows(CInt((1))).HeightType = DevExpress.XtraRichEdit.API.Native.HeightType.Exact
table.Rows(CInt((1))).Height = DevExpress.Office.Utils.Units.InchesToDocumentsF(0.8F)
' Set the cell width to a fixed value.
table.FirstRow.Height = Units.InchesToDocumentsF(0.5F)
table.FirstRow.HeightType = HeightType.Exact
See Also