LineFormat
Overview
LineFormat is a class in Aspose.Slides FOSS for C++.
Represents the line (outline) formatting properties.
This class provides 54 methods for working with LineFormat objects in C++ programs.
Available methods include: LineAlignment, LineArrowheadLength, LineArrowheadStyle, LineArrowheadWidth, LineCapStyle, LineDashStyle, LineFillFormat, LineFormat, LineJoinStyle, LineStyle, alignment, begin_arrowhead_length, and 37 additional methods.
All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package.
Properties: LineAlignment, LineArrowheadLength, LineArrowheadStyle, LineArrowheadWidth, LineCapStyle, LineDashStyle, and 3 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
LineFillFormat | LineFillFormat | Read | Gets the line fill format. |
LineDashStyle | LineDashStyle | Read | Gets the line dash style. |
LineCapStyle | LineCapStyle | Read | Gets the line cap style. |
LineStyle | LineStyle | Read | Gets the line style. |
LineAlignment | LineAlignment | Read | Gets the line alignment. |
LineJoinStyle | LineJoinStyle | Read | Gets the line join style. |
LineArrowheadStyle | LineArrowheadStyle | Read | Gets the line arrowhead style. |
LineArrowheadWidth | LineArrowheadWidth | Read | Gets the line arrowhead width. |
LineArrowheadLength | LineArrowheadLength | Read | Gets the line arrowhead length. |
Methods
| Signature | Description |
|---|---|
LineFillFormat() → LineFillFormat | Provides access to the line fill formatting object |
LineFillFormat() → LineFillFormat | |
LineDashStyle() → LineDashStyle | Returns the dash style enumeration for the line |
LineCapStyle() → LineCapStyle | Returns the cap style enumeration for the line ends |
LineStyle() → LineStyle | Gets or sets the overall line style (solid, etc.) |
LineAlignment() → LineAlignment | Returns the alignment enumeration of the line relative to shape |
LineJoinStyle() → LineJoinStyle | Returns the join style enumeration for line corners |
LineArrowheadStyle() → LineArrowheadStyle | Returns the arrowhead style enumeration for line ends |
LineArrowheadWidth() → LineArrowheadWidth | Returns the arrowhead width enumeration for line ends |
LineArrowheadLength() → LineArrowheadLength | Returns the arrowhead length enumeration for line ends |
LineArrowheadStyle() → LineArrowheadStyle | |
LineArrowheadWidth() → LineArrowheadWidth | |
LineArrowheadLength() → LineArrowheadLength | |
LineFormat() | |
~LineFormat() | |
init_internal(parent_element: pugi::xml_node, save_callback: std::function<void()>, ln_tag: std::string_view) | Initialize XML-backed line format. (e.g., , ). (e.g., “a:uLn” for underline). |
get_ln() → pugi::xml_node | Get the element if it exists. |
ensure_ln() → pugi::xml_node | Get or create the element at the correct OOXML position. For spPr children: xfrm, geometry, fill, ln, effects. For tcPr children: lnL, lnR, lnT, lnB, lnTlToBr, lnBlToTr. |
insert_ln_child(ln: pugi::xml_node, tag: std::string_view) → pugi::xml_node | Insert a child element into at the correct OOXML position. |
save() | Save changes via the save callback. |
serialize_to_xml(sp_pr: pugi::xml_node) | Serialize the in-memory line format state to XML under the given spPr node. Used during Presentation::save() for shapes without XML backing. |
get_arrow_attr(end_tag: std::string_view, attr: std::string_view) → std::optional<std::string> | Get an arrowhead attribute value. |
set_arrow_attr(end_tag: std::string_view, attr: std::string_view, value: std::optional<std::string>) | Set an arrowhead attribute value. |
is_format_not_defined() → bool | Returns true if line format is not defined (all defaults). Read-only. |
fill_format() → LineFillFormat | Returns the fill format of a line. |
fill_format() → LineFillFormat | Returns the fill format of a line. |
width() → double | Returns the line width in points. |
set_width(value: double) | |
dash_style() → LineDashStyle | Returns the line dash style. |
set_dash_style(value: LineDashStyle) | |
custom_dash_pattern() → std::vector<float> | Returns the custom dash pattern. |
set_custom_dash_pattern(value: std::vector<float>) | |
cap_style() → LineCapStyle | Returns the line cap style. |
set_cap_style(value: LineCapStyle) | |
style() → LineStyle | Returns the line style (single, double, etc.). |
set_style(value: LineStyle) | |
alignment() → LineAlignment | Returns the line alignment. |
set_alignment(value: LineAlignment) | |
join_style() → LineJoinStyle | Returns the line join style. |
set_join_style(value: LineJoinStyle) | |
miter_limit() → double | Returns the miter limit of a line. |
set_miter_limit(value: double) | |
begin_arrowhead_style() → LineArrowheadStyle | Returns the begin arrowhead style. |
set_begin_arrowhead_style(value: LineArrowheadStyle) | |
begin_arrowhead_width() → LineArrowheadWidth | Returns the begin arrowhead width. |
set_begin_arrowhead_width(value: LineArrowheadWidth) | |
begin_arrowhead_length() → LineArrowheadLength | Returns the begin arrowhead length. |
set_begin_arrowhead_length(value: LineArrowheadLength) | |
end_arrowhead_style() → LineArrowheadStyle | Returns the end arrowhead style. |
set_end_arrowhead_style(value: LineArrowheadStyle) | |
end_arrowhead_width() → LineArrowheadWidth | Returns the end arrowhead width. |
set_end_arrowhead_width(value: LineArrowheadWidth) | |
end_arrowhead_length() → LineArrowheadLength | Returns the end arrowhead length. |
set_end_arrowhead_length(value: LineArrowheadLength) |