Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    ShapeLine.JoinType Property

    Gets or sets how two lines are joined.

    Namespace: DevExpress.XtraRichEdit.API.Native

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

    NuGet Package: DevExpress.RichEdit.Core

    #Declaration

    LineJoinType JoinType { get; set; }

    #Property Value

    Type Description
    LineJoinType

    An enumeration value that specifies the line join type.

    Available values:

    Name Description Example
    Bevel

    Specifies that a corner where two lines intersect is cut off at a 45 degree angle.

    SpreadsheetDrawings_LineJoinStyle_BevelJoinType

    Miter

    Specifies that a corner where two lines intersect is sharp.

    SpreadsheetDrawings_LineJoinStyle_MitterJoinType

    Round

    Specifies that a corner where two lines intersect is rounded.

    SpreadsheetDrawings_LineJoinStyle_RoundJoinType

    #Remarks

    The example below shows how to create a rectangle and change its border settings.

    Rich_ShapeLine_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;
    
    See Also