Back to Devexpress

TableRow.HeightType Property

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

latest5.5 KB
Original Source

TableRow.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-document-api/CS/RichEditAPISample/CodeExamples/Table.cs#L59

csharp
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#L63

csharp
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#L93

csharp
// Set the second row height to a fixed value.
table.Rows[1].HeightType = HeightType.Exact;
table.Rows[1].Height = DevExpress.Office.Utils.Units.InchesToDocumentsF(0.8f);

spreadsheet-document-api-use-worksheet-table-as-data-source/CS/SpreadsheetDocumentServerAsDataSourceExample/Form1.cs#L65

csharp
table.FirstRow.Height = Units.InchesToDocumentsF(0.5f);
table.FirstRow.HeightType = HeightType.Exact;

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Table.vb#L51

vb
table.PreferredWidth = DevExpress.Office.Utils.Units.InchesToDocumentsF(4F)
table.Rows(CInt((1))).HeightType = DevExpress.XtraRichEdit.API.Native.HeightType.Exact
table.Rows(CInt((1))).Height = DevExpress.Office.Utils.Units.InchesToDocumentsF(0.8F)

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/TableActions.vb#L54

vb
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#L86

vb
' Set the second row height to a fixed value.
table.Rows(CInt((1))).HeightType = DevExpress.XtraRichEdit.API.Native.HeightType.Exact
table.Rows(CInt((1))).Height = DevExpress.Office.Utils.Units.InchesToDocumentsF(0.8F)

spreadsheet-document-api-use-worksheet-table-as-data-source/VB/SpreadsheetDocumentServerAsDataSourceExample/Form1.vb#L57

vb
table.FirstRow.Height = Units.InchesToDocumentsF(0.5F)
table.FirstRow.HeightType = HeightType.Exact

See Also

TableRow Interface

TableRow Members

DevExpress.XtraRichEdit.API.Native Namespace