Skip to main content
All docs
V24.2

BorderLineStyle Enum

Lists border line styles.

Namespace: DevExpress.Blazor.RichEdit

Assembly: DevExpress.Blazor.RichEdit.v24.2.dll

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public enum BorderLineStyle

Members

Name Description
Nil

The border is hidden.

None

The border is hidden.

Single

The thin solid line.

Thick

The thick solid line.

Double

The double line.

Dotted

The thin dotted line.

Dashed

The thin dashed line.

DotDash

The thin dash-dotted line.

Browsers do not support this border style and display it as the Dashed border style.

DotDotDash

The thin dash-dot-dotted line.

Browsers do not support this border style and display it as the Dashed border style.

Triple

The triple line.

Browsers do not support this border style and display it as the Single border style.

ThinThickSmallGap

The thin line surrounded with the thick line with a small gap between them.

Browsers do not support this border style and display it as the Thick border style.

ThickThinSmallGap

The thick line surrounded with the thin line with a small gap between them.

Browsers do not support this border style and display it as the Thick border style.

ThinThickThinSmallGap

The thin line surrounded with two thick lines with a small gap between all lines.

Browsers do not support this border style and display it as the Thick border style.

ThinThickMediumGap

The thin line surrounded with the thick line with a medium gap between them.

Browsers do not support this border style and display it as the Thick border style.

ThickThinMediumGap

The thick line surrounded with the thin line with a medium gap between them.

Browsers do not support this border style and display it as the Thick border style.

ThinThickThinMediumGap

The thin line surrounded with two thick lines with a medium gap between all lines.

Browsers do not support this border style and display it as the Thick border style.

ThinThickLargeGap

The thin line surrounded with the thick line with a large gap between them.

Browsers do not support this border style and display it as the Thick border style.

ThickThinLargeGap

The thick line surrounded with the thin line with a large gap between them.

Browsers do not support this border style and display it as the Thick border style.

ThinThickThinLargeGap

The thin line surrounded with two thick lines with a large gap between all lines.

Browsers do not support this border style and display it as the Thick border style.

Wave

The wavy line.

Browsers do not support this border style and display it as the Single border style.

DoubleWave

The double wavy line.

Browsers do not support this border style and display it as the Single border style.

DashSmallGap

The thin dashed line with a small gap between dashes.

Browsers do not support this border style and display it as the Dashed border style.

DashDotStroked

The series of alternating thin and thick strokes.

Browsers do not support this border style and display it as the Thick border style.

ThreeDEmboss

Three staged gradient lines that get darker towards the cell.

Browsers do not support this border style and display it as the Thick border style.

ThreeDEngrave

Three staged gradient lines that get darker away from the cell.

Browsers do not support this border style and display it as the Thick border style.

Outset

The raised border.

Browsers do not support this border style and display the border as two thin solid lines.

Inset

The sunken border.

Browsers do not support this border style and display the border as two thin solid lines.

Apples

The Apples art border.

Browsers do not support this border style and display it as the Single border style.

ArchedScallops

The Arched Scallops art border.

Browsers do not support this border style and display it as the Single border style.

BabyPacifier

The Baby Pacifier art border.

Browsers do not support this border style and display it as the Single border style.

BabyRattle

The Baby Rattle art border.

Browsers do not support this border style and display it as the Single border style.

Balloons3Colors

The Three Color Balloons art border.

Browsers do not support this border style and display it as the Single border style.

BalloonsHotAir

The Hot Air Balloons art border.

Browsers do not support this border style and display it as the Single border style.

BasicBlackDashes

The Black Dash art border.

Browsers do not support this border style and display it as the Single border style.

BasicBlackDots

The Black Dot art border.

Browsers do not support this border style and display it as the Single border style.

BasicBlackSquares

The Black Square art border.

Browsers do not support this border style and display it as the Single border style.

BasicThinLines

The Thin Line art border.

Browsers do not support this border style and display it as the Single border style.

BasicWhiteDashes

The White Dash art border.

Browsers do not support this border style and display it as the Single border style.

BasicWhiteDots

The White Dot art border.

Browsers do not support this border style and display it as the Single border style.

BasicWhiteSquares

The White Square art border.

Browsers do not support this border style and display it as the Single border style.

BasicWideInline

The Wide Inline art border.

Browsers do not support this border style and display it as the Single border style.

BasicWideMidline

The Wide Midline art border.

Browsers do not support this border style and display it as the Single border style.

BasicWideOutline

The Wide Outline art border.

Browsers do not support this border style and display it as the Single border style.

Bats

The Bats art border.

Browsers do not support this border style and display it as the Single border style.

Birds

The Birds art border.

Browsers do not support this border style and display it as the Single border style.

BirdsFlight

The Birds Flying art border.

Browsers do not support this border style and display it as the Single border style.

Cabins

The Cabin art border.

Browsers do not support this border style and display it as the Single border style.

CakeSlice

The Cake art border.

Browsers do not support this border style and display it as the Single border style.

CandyCorn

The Candy Corn art border.

Browsers do not support this border style and display it as the Single border style.

CelticKnotwork

The Knot Work art border.

Browsers do not support this border style and display it as the Single border style.

CertificateBanner

The Certificate Banner art border.

Browsers do not support this border style and display it as the Single border style.

The Chain Link art border.

Browsers do not support this border style and display it as the Single border style.

ChampagneBottle

The Champagne Bottle art border.

Browsers do not support this border style and display it as the Single border style.

CheckedBarBlack

The Black and White Bar art border.

Browsers do not support this border style and display it as the Single border style.

CheckedBarColor

The Color Checked Bar art border.

Browsers do not support this border style and display it as the Single border style.

Checkered

The Checkerboard art border.

Browsers do not support this border style and display it as the Single border style.

ChristmasTree

The Christmas Tree art border.

Browsers do not support this border style and display it as the Single border style.

CirclesLines

The Circles and Lines art border.

Browsers do not support this border style and display it as the Single border style.

CirclesRectangles

The Circles and Rectangles art border.

Browsers do not support this border style and display it as the Single border style.

ClassicalWave

The Wave art border.

Browsers do not support this border style and display it as the Single border style.

Clocks

The Clocks art border.

Browsers do not support this border style and display it as the Single border style.

Compass

The Compass art border.

Browsers do not support this border style and display it as the Single border style.

Confetti

The Confetti art border.

Browsers do not support this border style and display it as the Single border style.

ConfettiGrays

The Confetti art border.

Browsers do not support this border style and display it as the Single border style.

ConfettiOutline

The Confetti art border.

Browsers do not support this border style and display it as the Single border style.

ConfettiStreamers

The Confetti Streamers art border.

Browsers do not support this border style and display it as the Single border style.

ConfettiWhite

The Confetti art border.

Browsers do not support this border style and display it as the Single border style.

CornerTriangles

The Corner Triangle art border.

Browsers do not support this border style and display it as the Single border style.

CouponCutoutDashes

The Dashed Line art border.

Browsers do not support this border style and display it as the Single border style.

CouponCutoutDots

The Dotted Line art border.

Browsers do not support this border style and display it as the Single border style.

CrazyMaze

The Maze art border.

Browsers do not support this border style and display it as the Single border style.

CreaturesButterfly

The Butterfly art border.

Browsers do not support this border style and display it as the Single border style.

CreaturesFish

The Fish art border.

Browsers do not support this border style and display it as the Single border style.

CreaturesInsects

The Insects art border.

Browsers do not support this border style and display it as the Single border style.

CreaturesLadyBug

The Ladybug art border.

Browsers do not support this border style and display it as the Single border style.

CrossStitch

The Cross-stitch art border.

Browsers do not support this border style and display it as the Single border style.

Cup

The Cupid art border.

Browsers do not support this border style and display it as the Single border style.

DecoArch

The Archway art border.

Browsers do not support this border style and display it as the Single border style.

DecoArchColor

The Color Archway art border.

Browsers do not support this border style and display it as the Single border style.

DecoBlocks

The Blocks art border.

Browsers do not support this border style and display it as the Single border style.

DiamondsGray

The Gray Diamond art border.

Browsers do not support this border style and display it as the Single border style.

DoubleD

The Double D art border.

Browsers do not support this border style and display it as the Single border style.

DoubleDiamonds

The Diamond art border.

Browsers do not support this border style and display it as the Single border style.

Earth1

The Earth art border.

Browsers do not support this border style and display it as the Single border style.

Earth2

The Earth art border.

Browsers do not support this border style and display it as the Single border style.

EclipsingSquares1

The Shadowed Square art border.

Browsers do not support this border style and display it as the Single border style.

EclipsingSquares2

The Shadowed Square art border.

Browsers do not support this border style and display it as the Single border style.

EggsBlack

The Painted Egg art border.

Browsers do not support this border style and display it as the Single border style.

Fans

The Fans art border.

Browsers do not support this border style and display it as the Single border style.

Film

The Film Reel art border.

Browsers do not support this border style and display it as the Single border style.

Firecrackers

The Firecracker art border.

Browsers do not support this border style and display it as the Single border style.

FlowersBlockPrint

The Flowers art border.

Browsers do not support this border style and display it as the Single border style.

FlowersDaisies

The Daisy art border.

Browsers do not support this border style and display it as the Single border style.

FlowersModern1

The Flowers art border.

Browsers do not support this border style and display it as the Single border style.

FlowersModern2

The Flowers art border.

Browsers do not support this border style and display it as the Single border style.

FlowersPansy

The Pansy art border.

Browsers do not support this border style and display it as the Single border style.

FlowersRedRose

The Red Rose art border.

Browsers do not support this border style and display it as the Single border style.

FlowersRoses

The Roses art border.

Browsers do not support this border style and display it as the Single border style.

FlowersTeacup

The Flowers in a Teacup art border.

Browsers do not support this border style and display it as the Single border style.

FlowersTiny

The Small Flower art border.

Browsers do not support this border style and display it as the Single border style.

Gems

The Gems art border.

Browsers do not support this border style and display it as the Single border style.

GingerbreadMan

The Gingerbread Man art border.

Browsers do not support this border style and display it as the Single border style.

Gradient

The Triangle Gradient art border.

Browsers do not support this border style and display it as the Single border style.

Handmade1

The Handmade art border.

Browsers do not support this border style and display it as the Single border style.

Handmade2

The Handmade art border.

Browsers do not support this border style and display it as the Single border style.

HeartBalloon

The Heart-Shaped Balloon art border.

Browsers do not support this border style and display it as the Single border style.

HeartGray

The Gray Heart art border.

Browsers do not support this border style and display it as the Single border style.

Hearts

The Hearts art border.

Browsers do not support this border style and display it as the Single border style.

HeebieJeebies

The Pattern art border.

Browsers do not support this border style and display it as the Single border style.

Holly

The Holly art border.

Browsers do not support this border style and display it as the Single border style.

HouseFunky

The House art border.

Browsers do not support this border style and display it as the Single border style.

Hypnotic

The Circular art border.

Browsers do not support this border style and display it as the Single border style.

IceCreamCones

The Ice Cream Cone art border.

Browsers do not support this border style and display it as the Single border style.

LightBulb

The Light Bulb art border.

Browsers do not support this border style and display it as the Single border style.

Lightning1

The Lightning art border.

Browsers do not support this border style and display it as the Single border style.

Lightning2

The Lightning art border.

Browsers do not support this border style and display it as the Single border style.

MapleLeaf

The Maple Leaf art border.

Browsers do not support this border style and display it as the Single border style.

MapleMuffins

The Muffin art border.

Browsers do not support this border style and display it as the Single border style.

MapPins

The Map Pins art border.

Browsers do not support this border style and display it as the Single border style.

Marquee

The Marquee art border.

Browsers do not support this border style and display it as the Single border style.

MarqueeToothed

The Marquee art border.

Browsers do not support this border style and display it as the Single border style.

Moons

The Moon art border.

Browsers do not support this border style and display it as the Single border style.

Mosaic

The Mosaic art border.

Browsers do not support this border style and display it as the Single border style.

MusicNotes

The Musical Note art border.

Browsers do not support this border style and display it as the Single border style.

Northwest

The Patterned art border.

Browsers do not support this border style and display it as the Single border style.

Ovals

The Oval art border.

Browsers do not support this border style and display it as the Single border style.

Packages

The Package art border.

Browsers do not support this border style and display it as the Single border style.

PalmsBlack

The Black Palm Tree art border.

Browsers do not support this border style and display it as the Single border style.

PalmsColor

The Color Palm Tree art border.

Browsers do not support this border style and display it as the Single border style.

PaperClips

The Paper Clip art border.

Browsers do not support this border style and display it as the Single border style.

Papyrus

The Papyrus art border.

Browsers do not support this border style and display it as the Single border style.

PartyFavor

The Party Favor art border.

Browsers do not support this border style and display it as the Single border style.

PartyGlass

The Party Glass art border.

Browsers do not support this border style and display it as the Single border style.

Pencils

The Pencils art border.

Browsers do not support this border style and display it as the Single border style.

People

The Character art border.

Browsers do not support this border style and display it as the Single border style.

PeopleHats

The Character With Hat art border.

Browsers do not support this border style and display it as the Single border style.

PeopleWaving

The Waving Character art border.

Browsers do not support this border style and display it as the Single border style.

Poinsettias

The Poinsettia art border.

Browsers do not support this border style and display it as the Single border style.

PostageStamp

The Postage Stamp art border.

Browsers do not support this border style and display it as the Single border style.

Pumpkin1

The Pumpkin art border.

Browsers do not support this border style and display it as the Single border style.

PushPinNote1

The Push Pin art border.

Browsers do not support this border style and display it as the Single border style.

PushPinNote2

The Push Pin art border.

Browsers do not support this border style and display it as the Single border style.

Pyramids

The Pyramid art border.

Browsers do not support this border style and display it as the Single border style.

PyramidsAbove

The Pyramid art border.

Browsers do not support this border style and display it as the Single border style.

Quadrants

The Quadrants art border.

Browsers do not support this border style and display it as the Single border style.

Rings

The Rings art border.

Browsers do not support this border style and display it as the Single border style.

Safari

The Safari art border.

Browsers do not support this border style and display it as the Single border style.

Sawtooth

The Saw tooth art border.

Browsers do not support this border style and display it as the Single border style.

SawtoothGray

The Gray Saw tooth art border.

Browsers do not support this border style and display it as the Single border style.

ScaredCat

The Scared Cat art border.

Browsers do not support this border style and display it as the Single border style.

Seattle

The Umbrella art border.

Browsers do not support this border style and display it as the Single border style.

ShadowedSquares

The Shadowed Squares art border.

Browsers do not support this border style and display it as the Single border style.

SharksTeeth

The Shark Tooth art border.

Browsers do not support this border style and display it as the Single border style.

ShorebirdTracks

The Bird Tracks art border.

Browsers do not support this border style and display it as the Single border style.

Skyrocket

The Rocket art border.

Browsers do not support this border style and display it as the Single border style.

SnowflakeFancy

The Snowflake art border.

Browsers do not support this border style and display it as the Single border style.

Snowflakes

The Snowflake art border.

Browsers do not support this border style and display it as the Single border style.

Sombrero

The Sombrero art border.

Browsers do not support this border style and display it as the Single border style.

Southwest

The Southwest-themed art border.

Browsers do not support this border style and display it as the Single border style.

Stars

The Stars art border.

Browsers do not support this border style and display it as the Single border style.

Stars3d

The 3D Stars art border.

Browsers do not support this border style and display it as the Single border style.

StarsBlack

The Stars art border.

Browsers do not support this border style and display it as the Single border style.

StarsShadowed

The Stars With Shadows art border.

Browsers do not support this border style and display it as the Single border style.

StarsTop

The Stars on Top art border.

Browsers do not support this border style and display it as the Single border style.

Sun

The Sun art border.

Browsers do not support this border style and display it as the Single border style.

Swirligig

The Whirligig art border.

Browsers do not support this border style and display it as the Single border style.

TornPaper

The Torn Paper art border.

Browsers do not support this border style and display it as the Single border style.

TornPaperBlack

The Black Torn Paper art border.

Browsers do not support this border style and display it as the Single border style.

Trees

The Tree art border.

Browsers do not support this border style and display it as the Single border style.

TriangleParty

The Triangle art border.

Browsers do not support this border style and display it as the Single border style.

Triangles

The Triangles art border.

Browsers do not support this border style and display it as the Single border style.

Tribal1

The Tribal art border.

Browsers do not support this border style and display it as the Single border style.

Tribal2

The Tribal Two art border.

Browsers do not support this border style and display it as the Single border style.

Tribal3

The Tribal Three art border.

Browsers do not support this border style and display it as the Single border style.

Tribal4

The Tribal Four art border.

Browsers do not support this border style and display it as the Single border style.

Tribal5

The Tribal Five art border.

Browsers do not support this border style and display it as the Single border style.

Tribal6

The Tribal Six art border.

Browsers do not support this border style and display it as the Single border style.

TwistedLines1

The Twisted Lines art border.

Browsers do not support this border style and display it as the Single border style.

TwistedLines2

The Twisted Lines art border.

Browsers do not support this border style and display it as the Single border style.

Vine

The Vine art border.

Browsers do not support this border style and display it as the Single border style.

Waveline

The Wavy Line art border.

Browsers do not support this border style and display it as the Single border style.

WeavingAngles

The Weaving Angles art border.

Browsers do not support this border style and display it as the Single border style.

WeavingBraid

The Weaving Braid art border.

Browsers do not support this border style and display it as the Single border style.

WeavingRibbon

The Weaving Ribbon art border.

Browsers do not support this border style and display it as the Single border style.

WeavingStrips

The Weaving Strips art border.

Browsers do not support this border style and display it as the Single border style.

WhiteFlowers

The White Flowers art border.

Browsers do not support this border style and display it as the Single border style.

Woodwork

The Woodwork art border.

Browsers do not support this border style and display it as the Single border style.

XIllusions

The Crisscross art border.

Browsers do not support this border style and display it as the Single border style.

ZanyTriangles

The Triangle art border.

Browsers do not support this border style and display it as the Single border style.

ZigZag

The Zigzag art border.

Browsers do not support this border style and display it as the Single border style.

ZigZagStitch

The Zigzag stitch art border.

Browsers do not support this border style and display it as the Single border style.

Related API Members

The following properties accept/return BorderLineStyle values:

Remarks

The Rich Text Editor component allows you to specify border settings for the following document elements:

Table
The Table.Borders property allows you to access table borders and obtain their settings. Pass a TableProperties object to the Table.ChangePropertiesAsync method to customize table borders.
Table Cell
The TableCell.Borders property allows you to access table cell borders and obtain their settings. Pass a TableCellProperties object to the TableCell.ChangePropertiesAsync method to customize cell borders.

Note

Cell border settings take priority over table border settings.

The following code example customizes table borders:

Customize Table Borders

<DxRichEdit @ref="richEdit" />

@code {
    DxRichEdit richEdit;
    protected override async Task OnAfterRenderAsync(bool firstRender) {
        if (firstRender)
            try {
                await InitializeDocument();
            }
            catch (TaskCanceledException) { }
        await base.OnAfterRenderAsync(firstRender);
    }

    async Task InitializeDocument() {
    /* Surround the code that contains an asynchronous operation with a try-catch block to handle
    the OperationCanceledException. This exception is thrown when an asynchronous operation is canceled. */
        try {
            var columnCount = 4;
            var rowCount = 5;
            richEdit.DocumentAPI.BeginUpdate();
            // Creates a table
            Table myTable = await richEdit.DocumentAPI.Tables.CreateAsync(0, columnCount, rowCount);
            for (int i = rowCount-1; i >= 0 ; i--)
                for (int j = columnCount-1; j >=0 ; j--) {
                    var cellPosition = myTable.Rows[i].Cells[j].Interval.Start;
                    await richEdit.DocumentAPI.AddTextAsync(cellPosition, "sample text");
                }
            // Customizes the table
            TableBorder outerBorder = new TableBorder(BorderLineStyle.Dashed,
                                                      System.Drawing.Color.DarkBlue, 50);
            TableBorder innerBorder = new TableBorder(BorderLineStyle.None,
                                                      System.Drawing.Color.Black, 20);
            myTable = await richEdit.DocumentAPI.Tables.GetAsync(0);
            await myTable.ChangePropertiesAsync(properties => {
                properties.Borders.Bottom = outerBorder;
                properties.Borders.Top = outerBorder;
                properties.Borders.Left = outerBorder;
                properties.Borders.Right = outerBorder;
                properties.Borders.InsideHorizontal = innerBorder;
                properties.Borders.InsideVertical = innerBorder;
                properties.Width = new TableWidth(TableWidthType.Percent, 100);
            });
            richEdit.DocumentAPI.EndUpdate();
        }
        catch (OperationCanceledException e) {
            Console.WriteLine($"{nameof(OperationCanceledException)} thrown with message: {e.Message}");
        }
    }
}
See Also