Portion
Overview
Portion is a class in Aspose.Slides FOSS for C++.
Represents a text portion (run) within a paragraph.
This class provides 20 methods for working with Portion objects in C++ programs.
Available methods include: Portion, as_i_presentation_component, as_i_slide_component, init_internal, p_element, portion_format, presentation, r_element, set_slide, set_text, slide, slide_part, and 2 additional methods.
All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package.
Properties: Portion.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Portion | Portion | Read | Gets the portion. |
Methods
| Signature | Description |
|---|---|
Portion() → Portion | Constructs an empty portion. |
Portion() | Constructs an empty portion. |
text() → std::string | Returns the text content of the portion. |
set_text(value: std::string) | Sets the text content of the portion. |
portion_format() → PortionFormat | Returns the portion format. |
portion_format() → PortionFormat | Returns the portion format. |
as_i_slide_component() → ISlideComponent | Returns this as ISlideComponent. |
as_i_slide_component() → ISlideComponent | Returns this as ISlideComponent. |
slide() → IBaseSlide | |
slide() → IBaseSlide | |
as_i_presentation_component() → IPresentationComponent | |
as_i_presentation_component() → IPresentationComponent | |
presentation() → IPresentation | |
presentation() → IPresentation | |
init_internal(r_element: pugi::xml_node, p_element: pugi::xml_node, txbody_element: pugi::xml_node, slide_part: Internal::pptx::SlidePart, parent_slide: IBaseSlide) | Initialize this portion from XML elements within a slide part. |
r_element() → pugi::xml_node | Returns the backing XML element, if any. |
p_element() → pugi::xml_node | Returns the backing XML element, if any. |
txbody_element() → pugi::xml_node | Returns the backing XML element, if any. |
slide_part() → Internal::pptx::SlidePart | Returns the owning SlidePart, or nullptr. |
set_slide(slide: IBaseSlide) | Sets the parent slide for this portion. |