Back to Devexpress

TableRow.Height Property

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

latest5.8 KB
Original Source

TableRow.Height Property

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

Declaration

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

Property Value

TypeDescription
Single

A Single that is the row height in current measure units, or 0 (zero) if the TableRow.HeightType is set to HeightType.Auto.

|

Remarks

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

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#L64

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#L94

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

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

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

vb
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

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#L87

vb
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.

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

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

See Also

HeightType

Unit

TableRow Interface

TableRow Members

DevExpress.XtraRichEdit.API.Native Namespace