Aspose::Words::LineStyle enum
Содержание
[
Скрывать
]LineStyle enum
Указывает стиль линии Border.
enum class LineStyle
Значения
| Имя | Значение | Описание |
|---|---|---|
| None | 0 | |
| Single | 1 | |
| Thick | 2 | |
| Double | 3 | |
| Hairline | 5 | |
| Dot | 6 | |
| DashLargeGap | 7 | |
| DotDash | 8 | |
| DotDotDash | 9 | |
| Triple | 10 | |
| ThinThickSmallGap | 11 | |
| ThickThinSmallGap | 12 | |
| ThinThickThinSmallGap | 13 | |
| ThinThickMediumGap | 14 | |
| ThickThinMediumGap | 15 | |
| ThinThickThinMediumGap | 16 | |
| ThinThickLargeGap | 17 | |
| ThickThinLargeGap | 18 | |
| ThinThickThinLargeGap | 19 | |
| Волна | 20 | |
| ДвойнаяВолна | 21 | |
| ТиреМалыйПромежуток | 22 | |
| ТиреТочкаШтрих | 23 | |
| Тиснение3D | 24 | |
| Гравировка3D | 25 | |
| Выпуклость | 26 | |
| Врезка | 27 |
Примеры
Показывает, как вставить строку, окружённую границей, в документ.
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(Aspose::Words::LineStyle::DashDotStroker);
builder->Write(u"Text surrounded by green border.");
doc->Save(get_ArtifactsDir() + u"Border.FontBorder.docx");
См. также
- Namespace Aspose::Words
- Library Aspose.Words for C++