Aspose::Words::LineStyle enum

LineStyle enum

Specifies line style of a Border.

enum class 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.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);

builder->get_Font()->get_Border()->set_Color(System::Drawing::Color::get_Green());
builder->get_Font()->get_Border()->set_LineWidth(2.5);
builder->get_Font()->get_Border()->set_LineStyle(LineStyle::DashDotStroker);

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

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

See Also