Aspose::Words::Border::set_LineStyle method
Border::set_LineStyle method
Sets the border style.
void Aspose::Words::Border::set_LineStyle(Aspose::Words::LineStyle value)
Remarks
If you set line style to none, then line width is automatically changed to zero.
Examples
Shows how to insert a string surrounded by a border into a document.
auto doc = System::MakeObject<Aspose::Words::Document>();
auto builder = System::MakeObject<Aspose::Words::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(get_ArtifactsDir() + u"Border.FontBorder.docx");
See Also
- Class Border
- Namespace Aspose::Words
- Library Aspose.Words for C++