officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-tablecellborder.md
Gets or sets the color of the border line.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
Color LineColor { get; set; }
Property LineColor As Color
| Type | Description |
|---|---|
| Color |
A Color instance specifying the border line color.
|
Important
The semi-transparent alpha component (i.e. the Color’s alpha parameter set to value less than 255) is reset to opaque (255) during export to all formats except PDF.
The following code snippets (auto-collected from DevExpress Examples) contain references to the LineColor 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#L96
{
cell.Borders.Bottom.LineColor = System.Drawing.Color.Red;
cell.Borders.Left.LineColor = System.Drawing.Color.Red;
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/TableActions.cs#L198
{
cell.Borders.Bottom.LineColor = Color.Red;
cell.Borders.Left.LineColor = Color.Red;
word-document-api-examples/CS/CodeExamples/TablesActions.cs#L131
cell.BackgroundColor = Color.Yellow;
cell.Borders.Bottom.LineColor = Color.Red;
cell.Borders.Left.LineColor = Color.Red;
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Table.vb#L84
Public Shared Sub ChangeCellBorderColor(ByVal cell As DevExpress.XtraRichEdit.API.Native.TableCell, ByVal i As Integer, ByVal j As Integer)
cell.Borders.Bottom.LineColor = System.Drawing.Color.Red
cell.Borders.Left.LineColor = System.Drawing.Color.Red
wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/TableActions.vb#L176
Public Shared Sub ChangeCellBorderColor(ByVal cell As TableCell, ByVal i As Integer, ByVal j As Integer)
cell.Borders.Bottom.LineColor = Color.Red
cell.Borders.Left.LineColor = Color.Red
word-document-api-examples/VB/CodeExamples/TablesActions.vb#L121
cell.BackgroundColor = Color.Yellow
cell.Borders.Bottom.LineColor = Color.Red
cell.Borders.Left.LineColor = Color.Red
See Also