LineFormat

Overview

LineFormat is a class in Aspose.Slides FOSS for C++.

Represents the line (outline) formatting properties.

Properties

NameTypeAccessDescription
LineFillFormatLineFillFormatReadProvides access to the line fill formatting object
LineDashStyleLineDashStyleReadReturns the dash style enumeration for the line
LineCapStyleLineCapStyleReadReturns the cap style enumeration for the line ends
LineStyleLineStyleReadGets or sets the overall line style (solid, etc.)
LineAlignmentLineAlignmentReadReturns the alignment enumeration of the line relative to shape
LineJoinStyleLineJoinStyleReadReturns the join style enumeration for line corners
LineArrowheadStyleLineArrowheadStyleReadReturns the arrowhead style enumeration for line ends
LineArrowheadWidthLineArrowheadWidthReadReturns the arrowhead width enumeration for line ends
LineArrowheadLengthLineArrowheadLengthReadReturns the arrowhead length enumeration for line ends

Methods

SignatureDescription
LineFillFormat()LineFillFormatProvides access to the line fill formatting object
LineFillFormat()LineFillFormat
LineDashStyle()LineDashStyleReturns the dash style enumeration for the line
LineCapStyle()LineCapStyleReturns the cap style enumeration for the line ends
LineStyle()LineStyleGets or sets the overall line style (solid, etc.)
LineAlignment()LineAlignmentReturns the alignment enumeration of the line relative to shape
LineJoinStyle()LineJoinStyleReturns the join style enumeration for line corners
LineArrowheadStyle()LineArrowheadStyleReturns the arrowhead style enumeration for line ends
LineArrowheadWidth()LineArrowheadWidthReturns the arrowhead width enumeration for line ends
LineArrowheadLength()LineArrowheadLengthReturns the arrowhead length enumeration for line ends
LineArrowheadStyle()LineArrowheadStyle
LineArrowheadWidth()LineArrowheadWidth
LineArrowheadLength()LineArrowheadLength
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_nodeGet the element if it exists.
ensure_ln()pugi::xml_nodeGet 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_nodeInsert 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.

See Also