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

NameTypeAccessDescription
LineFillFormatLineFillFormatReadGets the line fill format.
LineDashStyleLineDashStyleReadGets the line dash style.
LineCapStyleLineCapStyleReadGets the line cap style.
LineStyleLineStyleReadGets the line style.
LineAlignmentLineAlignmentReadGets the line alignment.
LineJoinStyleLineJoinStyleReadGets the line join style.
LineArrowheadStyleLineArrowheadStyleReadGets the line arrowhead style.
LineArrowheadWidthLineArrowheadWidthReadGets the line arrowhead width.
LineArrowheadLengthLineArrowheadLengthReadGets the line arrowhead length.

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
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_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.
is_format_not_defined()boolReturns true if line format is not defined (all defaults). Read-only.
fill_format()LineFillFormatReturns the fill format of a line.
fill_format()LineFillFormatReturns the fill format of a line.
width()doubleReturns the line width in points.
set_width(value: double)
dash_style()LineDashStyleReturns 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()LineCapStyleReturns the line cap style.
set_cap_style(value: LineCapStyle)
style()LineStyleReturns the line style (single, double, etc.).
set_style(value: LineStyle)
alignment()LineAlignmentReturns the line alignment.
set_alignment(value: LineAlignment)
join_style()LineJoinStyleReturns the line join style.
set_join_style(value: LineJoinStyle)
miter_limit()doubleReturns the miter limit of a line.
set_miter_limit(value: double)
begin_arrowhead_style()LineArrowheadStyleReturns the begin arrowhead style.
set_begin_arrowhead_style(value: LineArrowheadStyle)
begin_arrowhead_width()LineArrowheadWidthReturns the begin arrowhead width.
set_begin_arrowhead_width(value: LineArrowheadWidth)
begin_arrowhead_length()LineArrowheadLengthReturns the begin arrowhead length.
set_begin_arrowhead_length(value: LineArrowheadLength)
end_arrowhead_style()LineArrowheadStyleReturns the end arrowhead style.
set_end_arrowhead_style(value: LineArrowheadStyle)
end_arrowhead_width()LineArrowheadWidthReturns the end arrowhead width.
set_end_arrowhead_width(value: LineArrowheadWidth)
end_arrowhead_length()LineArrowheadLengthReturns the end arrowhead length.
set_end_arrowhead_length(value: LineArrowheadLength)

See Also