LineStyle

LineStyle enumeration

Specifica lo stile della linea di aBorder .

public enum LineStyle

I valori

NomeValoreDescrizione
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

Esempi

Mostra come inserire una stringa circondata da un bordo in un documento.

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");

Guarda anche