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

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() → LineFillFormatReturns the fill format of a line.
LineFillFormat() → LineFillFormatProvides access to the line fill formatting object
LineDashStyle() → LineDashStyleReturns the line dash style.
LineCapStyle() → LineCapStyleReturns the line cap style.
LineStyle() → LineStyleReturns the line style (single, double, etc.).
LineAlignment() → LineAlignmentReturns the line alignment.
LineJoinStyle() → LineJoinStyleReturns the line join style.
LineArrowheadStyle() → LineArrowheadStyleReturns the begin arrowhead style.
LineArrowheadWidth() → LineArrowheadWidthReturns the begin arrowhead width.
LineArrowheadLength() → LineArrowheadLengthReturns the begin arrowhead length.
LineArrowheadStyle() → LineArrowheadStyleReturns the end arrowhead style.
LineArrowheadWidth() → LineArrowheadWidthReturns the end arrowhead width.
LineArrowheadLength() → LineArrowheadLengthReturns 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_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() → LineFillFormatCalls fill_format on this LineFormat instance.
width() → doubleReturns the line width in points.
set_width(value: double)Calls set_width(value) on this LineFormat instance.
dash_style() → LineDashStyleReturns 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() → LineCapStyleReturns the line cap style.
set_cap_style(value: LineCapStyle)Calls set_cap_style(value) on this LineFormat instance.
style() → LineStyleReturns the line style (single, double, etc.).
set_style(value: LineStyle)Calls set_style(value) on this LineFormat instance.
alignment() → LineAlignmentReturns the line alignment.
set_alignment(value: LineAlignment)Calls set_alignment(value) on this LineFormat instance.
join_style() → LineJoinStyleReturns the line join style.
set_join_style(value: LineJoinStyle)Calls set_join_style(value) on this LineFormat instance.
miter_limit() → doubleReturns the miter limit of a line.
set_miter_limit(value: double)Calls set_miter_limit(value) on this LineFormat instance.
begin_arrowhead_style() → LineArrowheadStyleReturns the begin arrowhead style.
set_begin_arrowhead_style(value: LineArrowheadStyle)Calls set_begin_arrowhead_style(value) on this LineFormat instance.
begin_arrowhead_width() → LineArrowheadWidthReturns the begin arrowhead width.
set_begin_arrowhead_width(value: LineArrowheadWidth)Calls set_begin_arrowhead_width(value) on this LineFormat instance.
begin_arrowhead_length() → LineArrowheadLengthReturns the begin arrowhead length.
set_begin_arrowhead_length(value: LineArrowheadLength)Calls set_begin_arrowhead_length(value) on this LineFormat instance.
end_arrowhead_style() → LineArrowheadStyleReturns the end arrowhead style.
set_end_arrowhead_style(value: LineArrowheadStyle)Calls set_end_arrowhead_style(value) on this LineFormat instance.
end_arrowhead_width() → LineArrowheadWidthReturns the end arrowhead width.
set_end_arrowhead_width(value: LineArrowheadWidth)Calls set_end_arrowhead_width(value) on this LineFormat instance.
end_arrowhead_length() → LineArrowheadLengthReturns the end arrowhead length.
set_end_arrowhead_length(value: LineArrowheadLength)Calls set_end_arrowhead_length(value) on this LineFormat instance.

See Also

 English