officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-shapeline-8dcda908.md
Gets or sets the compound type for a line.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
LineCompoundType CompoundType { get; set; }
Property CompoundType As LineCompoundType
| Type | Description |
|---|---|
| LineCompoundType |
An enumeration value that specifies the compound line style.
|
Available values:
| Name | Description | Example |
|---|---|---|
| Single |
A single line of normal width.
|
| | Double |
A line style composed of double lines of equal width.
|
| | ThickThin |
A line style composed of double lines, the first of which is thick and the second - thin.
|
| | ThinThick |
A line style composed of double lines, the first of which is thin and the second - thick.
|
| | Triple |
A line style composed of triple lines, the first of which is thin, the second - thick, and the last one - thin.
|
|
Use the CompoundType property to apply a line style composed of double or triple lines of different width.
The example below shows how to create a rectangle and change its border settings.
// Add a rectangle to a document.
Shape rectangle = document.Shapes.InsertShape(document.Range.Start, ShapeGeometryPreset.Rectangle, new RectangleF(300, 200, 500, 300));
// Fill the rectangle with color.
rectangle.Fill.SetSolidFill(Color.FromArgb(0xFF, 0xEE, 0xAD));
// Format the rectangle border.
ShapeLine border = rectangle.Line;
border.Color = Color.FromArgb(0x4D, 0x64, 0x8D);
border.Thickness = 6;
border.JoinType = LineJoinType.Miter;
border.DashType = LineDashType.Solid;
border.CompoundType = LineCompoundType.ThickThin;
' Add a rectangle to a document.
Dim rectangle As Shape = document.Shapes.InsertShape(document.Range.Start, ShapeGeometryPreset.Rectangle, New RectangleF(300, 200, 500, 300))
' Fill the rectangle with color.
rectangle.Fill.SetSolidFill(Color.FromArgb(&HFF, &HEE, &HAD))
' Format the rectangle border.
Dim border As ShapeLine = rectangle.Line
border.Color = Color.FromArgb(&H4D, &H64, &H8D)
border.Thickness = 6
border.JoinType = LineJoinType.Miter
border.DashType = LineDashType.Solid
border.CompoundType = LineCompoundType.ThickThin
See Also