Back to Devexpress

TableCellBorder.LineStyle Property

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

latest5.7 KB
Original Source

TableCellBorder.LineStyle Property

Gets or sets the style used to paint a border line.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
BorderLineStyle LineStyle { get; set; }
vb
Property LineStyle As BorderLineStyle

Property Value

TypeDescription
BorderLineStyle

A BorderLineStyle enumeration member specifying the line style.

|

Available values:

Show 27 items

NameDescription
Nil

No border.

| | None |

No border.

| | Single |

A single solid line.

| | Thick |

Single line.

| | Double |

Double solid lines.

| | Dotted |

Dots.

| | Dashed |

Dashes.

| | DotDash |

A dash followed by a dot.

| | DotDotDash |

A dash followed by two dots.

| | Triple |

Triple line.

| | ThinThickSmallGap |

An internal single thin solid line surrounded by a single thick solid line with a small gap between them.

| | ThickThinSmallGap |

An internal single thick solid line surrounded by a single thin solid line with a small gap between them.

| | ThinThickThinSmallGap |

An internal single thin solid line surrounded by a single thick solid line surrounded by a single thin solid line with a small gap between all lines.

| | ThinThickMediumGap |

An internal single thin solid line surrounded by a single thick solid line with a medium gap between them.

| | ThickThinMediumGap |

An internal single thick solid line surrounded by a single thin solid line with a medium gap between them.

| | ThinThickThinMediumGap |

An internal single thin solid line surrounded by a single thick solid line surrounded by a single thin solid line with a medium gap between all lines.

| | ThinThickLargeGap |

An internal single thin solid line surrounded by a single thick solid line with a large gap between them.

| | ThickThinLargeGap |

An internal single thick solid line surrounded by a single thin solid line with a large gap between them.

| | ThinThickThinLargeGap |

An internal single thin solid line surrounded by a single thick solid line surrounded by a single thin solid line with a large gap between all lines.

| | Wave |

Wavy line.

| | DoubleWave |

Double wavy solid lines.

| | DashSmallGap |

A dash followed by a small gap.

| | DashDotStroked |

A series of alternating thin and thick strokes, resembling a barber pole.

| | ThreeDEmboss |

A line border consisting of three staged gradient lines around the cell, getting darker towards the cell.

| | ThreeDEngrave |

A line border consisting of three staged gradient lines around the cell, getting darker away from the cell.

| | Outset |

The border appears to be outset.

| | Inset |

The border appears to be inset.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the LineStyle 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-tables-simple-example/CS/TablesSimpleExample/Form1.cs#L180

csharp
// Specify the border style and the background color for the header cells
table[i, j].Borders.Bottom.LineStyle = BorderLineStyle.None;
table[i, j].Borders.Left.LineStyle = BorderLineStyle.None;

word-document-api-table-examples/CS/Program.cs#L176

csharp
//Specify the border style and the background color for the header cells
cell.Borders.Bottom.LineStyle = BorderLineStyle.None;
cell.Borders.Left.LineStyle = BorderLineStyle.None;

winforms-richedit-tables-simple-example/VB/TablesSimpleExample/Form1.vb#L147

vb
' Specify the border style and the background color for the header cells
table(i, j).Borders.Bottom.LineStyle = BorderLineStyle.None
table(i, j).Borders.Left.LineStyle = BorderLineStyle.None

word-document-api-table-examples/VB/Program.vb#L142

vb
'Specify the border style and the background color for the header cells
cell.Borders.Bottom.LineStyle = BorderLineStyle.None
cell.Borders.Left.LineStyle = BorderLineStyle.None

See Also

TableCellBorder Interface

TableCellBorder Members

DevExpress.XtraRichEdit.API.Native Namespace