LineFormat
Overview
LineFormat is a class in Aspose.Slides FOSS for C++.
Represents the line (outline) formatting properties.
This class declares 54 methods for 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.
Public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package.
Accessor methods: LineAlignment, LineArrowheadLength, LineArrowheadStyle, LineArrowheadWidth, LineCapStyle, LineDashStyle, and 3 more.
Accessor Methods
| 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 | Returns the fill format of a line. |
LineFillFormat() → LineFillFormat | Provides access to the line fill formatting object |
LineDashStyle() → LineDashStyle | Returns the line dash style. |
LineCapStyle() → LineCapStyle | Returns the line cap style. |
LineStyle() → LineStyle | Returns the line style (single, double, etc.). |
LineAlignment() → LineAlignment | Returns the line alignment. |
LineJoinStyle() → LineJoinStyle | Returns the line join style. |
LineArrowheadStyle() → LineArrowheadStyle | Returns the begin arrowhead style. |
LineArrowheadWidth() → LineArrowheadWidth | Returns the begin arrowhead width. |
LineArrowheadLength() → LineArrowheadLength | Returns the begin arrowhead length. |
LineArrowheadStyle() → LineArrowheadStyle | Returns the end arrowhead style. |
LineArrowheadWidth() → LineArrowheadWidth | Returns the end arrowhead width. |
LineArrowheadLength() → LineArrowheadLength | Returns the end arrowhead length. |
LineFormat() | Calls LineFormat on this LineFormat instance. |
~LineFormat() | Calls ~LineFormat on this LineFormat instance. |
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 | Calls fill_format on this LineFormat instance. |
width() → double | Returns the line width in points. |
set_width(value: double) | Calls set_width(value) on this LineFormat instance. |
dash_style() → LineDashStyle | Returns the line dash style. |
set_dash_style(value: LineDashStyle) | Calls set_dash_style(value) on this LineFormat instance. |
custom_dash_pattern() → std::vector<float> | Returns the custom dash pattern. |
set_custom_dash_pattern(value: std::vector<float>) | Calls set_custom_dash_pattern(value) on this LineFormat instance. |
cap_style() → LineCapStyle | Returns the line cap style. |
set_cap_style(value: LineCapStyle) | Calls set_cap_style(value) on this LineFormat instance. |
style() → LineStyle | Returns the line style (single, double, etc.). |
set_style(value: LineStyle) | Calls set_style(value) on this LineFormat instance. |
alignment() → LineAlignment | Returns the line alignment. |
set_alignment(value: LineAlignment) | Calls set_alignment(value) on this LineFormat instance. |
join_style() → LineJoinStyle | Returns the line join style. |
set_join_style(value: LineJoinStyle) | Calls set_join_style(value) on this LineFormat instance. |
miter_limit() → double | Returns the miter limit of a line. |
set_miter_limit(value: double) | Calls set_miter_limit(value) on this LineFormat instance. |
begin_arrowhead_style() → LineArrowheadStyle | Returns the begin arrowhead style. |
set_begin_arrowhead_style(value: LineArrowheadStyle) | Calls set_begin_arrowhead_style(value) on this LineFormat instance. |
begin_arrowhead_width() → LineArrowheadWidth | Returns the begin arrowhead width. |
set_begin_arrowhead_width(value: LineArrowheadWidth) | Calls set_begin_arrowhead_width(value) on this LineFormat instance. |
begin_arrowhead_length() → LineArrowheadLength | Returns the begin arrowhead length. |
set_begin_arrowhead_length(value: LineArrowheadLength) | Calls set_begin_arrowhead_length(value) on this LineFormat instance. |
end_arrowhead_style() → LineArrowheadStyle | Returns the end arrowhead style. |
set_end_arrowhead_style(value: LineArrowheadStyle) | Calls set_end_arrowhead_style(value) on this LineFormat instance. |
end_arrowhead_width() → LineArrowheadWidth | Returns the end arrowhead width. |
set_end_arrowhead_width(value: LineArrowheadWidth) | Calls set_end_arrowhead_width(value) on this LineFormat instance. |
end_arrowhead_length() → LineArrowheadLength | Returns the end arrowhead length. |
set_end_arrowhead_length(value: LineArrowheadLength) | Calls set_end_arrowhead_length(value) on this LineFormat instance. |