Portion

ImageRenderOptions Portion class एक समान कैरेक्टर-लेवल फ़ॉर्मेटिंग वाले टेक्स्ट के रन का प्रतिनिधित्व करती है within a Paragraph.

ImageRenderOptions: Aspose::Slides::Foss

#include <Aspose/Slides/Foss/portion.h>
class Portion

ImageRenderOptions: include/Aspose/Slides/Foss/portion.h


ImageRenderOptions

NameTypeAccessDescription
PortionPortionReadGets the portion.

ImageRenderOptions

SignatureDescription
Portion()PortionConstructs an empty portion.
Portion()Constructs an empty portion.
text()std::stringReturns the text content of the portion.
set_text(value: std::string)Sets the text content of the portion.
portion_format()PortionFormatReturns the portion format.
portion_format()PortionFormatReturns the portion format.
as_i_slide_component()ISlideComponentReturns this as ISlideComponent.
as_i_slide_component()ISlideComponentReturns 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_nodeReturns the backing `` XML element, if any.
p_element()pugi::xml_nodeReturns the backing `` XML element, if any.
txbody_element()pugi::xml_nodeReturns the backing `` XML element, if any.
slide_part()Internal::pptx::SlidePartReturns the owning SlidePart, or nullptr.
set_slide(slide: IBaseSlide)Sets the parent slide for this portion.

IPortionFormat / PortionFormat

कैरेक्टर-लेवल फ़ॉर्मेटिंग को माध्यम से प्रबंधित किया जाता है PortionFormat. मुख्य गुण जो … के माध्यम से उपलब्ध हैं IBasePortionFormat इंटरफ़ेस में शामिल हैं:

  • FillFormat — टेक्स्ट फ़िल
  • EffectFormat — टेक्स्ट इफ़ेक्ट्स
  • LineFormat — टेक्स्ट आउटलाइन
  • ColorFormat — टेक्स्ट रंग
  • FontData — फ़ॉन्ट सेटिंग्स

उपयोग उदाहरण

#include <Aspose/Slides/Foss/presentation.h>
using namespace Aspose::Slides::Foss;

Presentation prs("deck.pptx");
// Access first shape's text frame paragraphs and portions
// auto& para = text_frame.paragraphs()[0];
// for (auto& portion : para.portions()) {
//     std::cout << portion.text() << std::endl;
// }

संबंधित देखें

 हिन्दी