TextFrame

#include <Aspose/Slides/Foss/text_frame.h>
class TextFrame

| —————————— | ————————- | ———————————- |


ITextFrame sučelje

| —————————— | ————————— | | text() | Dohvati tekstualni sadržaj. | | set_text(const std::string&) | Postavi tekstualni sadržaj. |


ITextFrameFormat sučelje

| ——————————————————— | ————————- | —————————— | | margin_left() / set_margin_left(double) | Čitanje/Pisanje | Lijevi rub u točkama. | | margin_right() / set_margin_right(double) | Čitanje/Pisanje | Desni rub u točkama. | | margin_top() / set_margin_top(double) | Čitanje/Pisanje | Gornji rub u točkama. | | margin_bottom() / set_margin_bottom(double) | Čitanje/Pisanje | Donja margina u točkama. | | wrap_text() / set_wrap_text(NullableBool) | Čitanje/Pisanje | Da li se tekst prelamlja. | | anchoring_type() / set_anchoring_type(TextAnchorType) | Čitanje/Pisanje | Vertikalno usidravanje teksta. | | center_text() / set_center_text(NullableBool) | Čitanje/Pisanje | Je li tekst centriran okomito. |


Primjer upotrebe

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

Presentation prs("deck.pptx");
auto& shape = prs.slides()[0].shapes()[0];
// If shape is an AutoShape with a TextFrame:
// auto& tf = shape.text_frame();
// std::cout << tf.text() << std::endl;
// tf.set_text("Updated text");

Vidi također

 Hrvatski