Back to Devexpress

TableCellBorder.LineColor Property

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

latest4.3 KB
Original Source

TableCellBorder.LineColor Property

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

Declaration

csharp
Color LineColor { get; set; }
vb
Property LineColor As Color

Property Value

TypeDescription
Color

A Color instance specifying the border line color.

|

Remarks

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

csharp
{
    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

csharp
{
    cell.Borders.Bottom.LineColor = Color.Red;
    cell.Borders.Left.LineColor = Color.Red;

word-document-api-examples/CS/CodeExamples/TablesActions.cs#L131

csharp
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

vb
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

vb
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

vb
cell.BackgroundColor = Color.Yellow
cell.Borders.Bottom.LineColor = Color.Red
cell.Borders.Left.LineColor = Color.Red

See Also

TableCellBorder Interface

TableCellBorder Members

DevExpress.XtraRichEdit.API.Native Namespace