LineStyle

LineStyle enumeration

Specifies line style of a Border.

public enum LineStyle

Values

NameValueDescription
None0
Single1
Thick2
Double3
Hairline5
Dot6
DashLargeGap7
DotDash8
DotDotDash9
Triple10
ThinThickSmallGap11
ThickThinSmallGap12
ThinThickThinSmallGap13
ThinThickMediumGap14
ThickThinMediumGap15
ThinThickThinMediumGap16
ThinThickLargeGap17
ThickThinLargeGap18
ThinThickThinLargeGap19
Wave20
DoubleWave21
DashSmallGap22
DashDotStroker23
Emboss3D24
Engrave3D25
Outset26
Inset27

Examples

Shows how to insert a string surrounded by a border into a document.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

builder.Font.Border.Color = Color.Green;
builder.Font.Border.LineWidth = 2.5d;
builder.Font.Border.LineStyle = LineStyle.DashDotStroker;

builder.Write("Text surrounded by green border.");

doc.Save(ArtifactsDir + "Border.FontBorder.docx");

See Also