ShapeCollection

ShapeCollection

अवलोकन

ShapeCollection C++ के लिए Aspose.Slides FOSS में एक वर्ग है।.

स्लाइड पर आकृतियों के संग्रह का प्रबंधन करता है। दो मोड में संचालित होता हैः- सरल मोड (डिफ़ॉल्ट): आकार केवल मेमोरी में प्रबंधित किए जाते हैं. - एक्सएमएल-समर्थित मोड (init_internal के बाद): आकृतियाँ स्लाइड की spTree XML से लोड होती हैं और लजी कैशिंग के साथ बनी रहती हैं.

यह वर्ग C++ कार्यक्रमों में ShapeCollection वस्तुओं के साथ काम करने के लिए 49 विधियाँ प्रदान करता है. उपलब्ध विधियों में शामिल हैंः: ShapeCollection, Table, add_auto_shape, add_auto_shape_impl, add_connector, add_connector_impl, add_picture_frame, add_picture_frame_impl, add_table, add_table_impl, as_i_collection, as_i_enumerable, और 25 अतिरिक्त विधियाँ।. सभी सार्वजनिक सदस्य Aspose.Slides FOSS for C++ पैकेज स्थापित करने के बाद किसी भी C ++ अनुप्रयोग तक पहुंच सकते हैं. गुण: ShapeCollection, Table.

गुण

नामप्रकारAccessविवरण
ShapeCollectionShapeCollectionपढ़िए।shape collection प्राप्त करता है।.
TableTableपढ़िए।टेबल प्राप्त करता है।.

विधियाँ

Signatureविवरण
ShapeCollection() → ShapeCollectionसंपत्ति स्वयं संग्रह तक पहुंच प्रदान करती है।
Table() → Tableसंपत्ति संग्रह से जुड़े तालिका आकार तक पहुँच प्रदान करती है
Table() → Table
ShapeCollection()
ShapeCollection()
init_internal(slide_part: Internal::pptx::SlidePart, parent_slide: IBaseSlide)एक स्लाइड भाग से आरंभ करें, XML-समर्थित मोड में प्रवेश करना।.
parent_group() → IGroupShapeमूल समूह आकार, या nullptr यदि शीर्ष-स्तर का लौटाता है.
as_i_collection() → IShapeCollectionइस संग्रह को सामान्य संग्रह इंटरफ़ेस के रूप में लौटाता है.
as_i_enumerable() → IShapeCollectionइस संग्रह को एक सामान्य गणना योग्य इंटरफ़ेस के रूप में लौटाता है.
size() → std::size_tआकारों की संख्या लौटाता है.
to_array() → std::vector<Shape*>सभी आकृतियों को गैर-स्वामित्व वाले पॉइंटर के रूप में लौटाता है.
to_array(start_index: std::size_t, count: std::size_t) → std::vector<Shape*>सभी आकृतियों को गैर-स्वामित्व वाले पॉइंटर के रूप में लौटाता है.
reorder(new_index: std::size_t, shape: Shape)किसी आकार को निर्दिष्ट स्थिति (z-order) में ले जाता है.
reorder(index: std::size_t, shapes: std::span<Shape*>)किसी आकार को निर्दिष्ट स्थिति (z-order) में ले जाता है.
add_auto_shape(type: ShapeType, x: double, y: double, width: double, height: double) → AutoShapeAutoShape को संग्रह में जोड़ता है.
add_auto_shape(type: ShapeType, x: double, y: double, width: double, height: double, create_from_template: bool) → AutoShapeAutoShape को संग्रह में जोड़ता है.
insert_auto_shape(index: std::size_t, type: ShapeType, x: double, y: double, width: double, height: double) → AutoShapeनिर्दिष्ट सूचकांक में AutoShape सम्मिलित करता है.
insert_auto_shape(index: std::size_t, type: ShapeType, x: double, y: double, width: double, height: double, create_from_template: bool) → AutoShapeनिर्दिष्ट सूचकांक में AutoShape सम्मिलित करता है.
add_connector(type: ShapeType, x: double, y: double, width: double, height: double) → Connectorसंग्रह में एक कनेक्टर जोड़ता है।.
add_connector(type: ShapeType, x: double, y: double, width: double, height: double, create_from_template: bool) → Connectorसंग्रह में एक कनेक्टर जोड़ता है।.
insert_connector(index: std::size_t, type: ShapeType, x: double, y: double, width: double, height: double) → Connectorनिर्दिष्ट सूचकांक में एक कनेक्टर सम्मिलित करता है.
insert_connector(index: std::size_t, type: ShapeType, x: double, y: double, width: double, height: double, create_from_template: bool) → Connectorनिर्दिष्ट सूचकांक में एक कनेक्टर सम्मिलित करता है.
index_of(shape: Shape) → std::ptrdiff_tकिसी आकार का शून्य-आधारित सूचकांक, या -1 यदि नहीं मिला है लौटाता है.
add_picture_frame(type: ShapeType, x: double, y: double, width: double, height: double, image: PPImage) → PictureFramePictureFrame को संग्रह में जोड़ता है.
insert_picture_frame(index: std::size_t, type: ShapeType, x: double, y: double, width: double, height: double, image: PPImage) → PictureFrameनिर्दिष्ट सूचकांक में PictureFrame सम्मिलित करता है.
add_table(x: double, y: double, column_widths: std::span<const double>, row_heights: std::span<const double>) → Tableसंग्रह में एक तालिका जोड़ता है।.
insert_table(index: std::size_t, x: double, y: double, column_widths: std::span<const double>, row_heights: std::span<const double>) → Tableनिर्दिष्ट सूचकांक में एक तालिका सम्मिलित करता है.
remove(shape: Shape)संदर्भ द्वारा संग्रह से आकार हटाता है.
remove_at(index: std::size_t)दिए गए सूचकांक पर आकार को हटाता है.
clear()सभी आकारों को हटा देता है।.
table_count() → std::size_tसंग्रह में तालिकाओं की संख्या लौटाता है.
table_at(index: std::size_t) → Tableदिए गए सूचकांक पर तालिका लौटाता है.
table_at(index: std::size_t) → Tableदिए गए सूचकांक पर तालिका लौटाता है.
begin() → iteratorपहले आकार में पुनरावर्तक लौटाता है
end() → iteratorअंतिम आकार के बाद एक पुनरावर्तक लौटाता है
begin() → const_iterator
end() → const_iterator
get_sp_tree() → pugi::xml_nodeस्लाइड XML से spTree तत्व प्राप्त करें।.
load_shapes()XML से सभी आकृतियों को लोड करें, आंतरिक कैश भरें. यदि कैस पहले ही मान्य है तो नो-ऑप।.
invalidate_cache()आकार कैश अमान्य, अगली पहुँच पर एक पुनः लोड करने के लिए मजबूर.
save_to_part()स्लाइड भाग में परिवर्तन सहेजें.
next_shape_id() → intspTree में अगली उपलब्ध आकार आईडी खोजें.
build_auto_shape_xml(sp: pugi::xml_node, shape_id: int, name: std::string_view, type: ShapeType, x: double, y: double, w: double, h: double, create_from_template: bool)एक नए AutoShape तत्व के लिए XML सामग्री बनाएं.
build_connector_xml(cxn_sp: pugi::xml_node, shape_id: int, name: std::string_view, type: ShapeType, x: double, y: double, w: double, h: double, create_from_template: bool)एक नए कनेक्टर (cxnSp) तत्व के लिए XML सामग्री बनाना.
add_auto_shape_impl(index: std::optional<std::size_t>, type: ShapeType, x: double, y: double, w: double, h: double, create_from_template: bool) → AutoShapeadd_auto_shape और insert_ auto_ shape के लिए कोर कार्यान्वयन.
add_connector_impl(index: std::optional<std::size_t>, type: ShapeType, x: double, y: double, w: double, h: double, create_from_template: bool) → Connectoradd_connector और insert_ connector के लिए कोर कार्यान्वयन।.
add_picture_frame_impl(index: std::optional<std::size_t>, type: ShapeType, x: double, y: double, w: double, h: double, image: PPImage) → PictureFrameadd_picture_frame और insert_image_frames के लिए कोर कार्यान्वयन।.
add_table_impl(index: std::optional<std::size_t>, x: double, y: double, column_widths: std::span<const double>, row_heights: std::span<const double>) → Tableadd_table और insert_ table के लिए कोर कार्यान्वयन।.
reorder_single(new_index: std::size_t, shape: Shape)XML और कैश में एक ही आकार को नई स्थिति पर रीऑर्डर करें.

यह भी देखें

 हिन्दी