Aspose::Slides::IShapeCollection Class Referenceabstract

Represents a collection of a shapes. More...

Inherits Aspose::Slides::IGenericCollection< System::SharedPtr< Aspose::Slides::IShape > >.

Inherited by Aspose::Slides::ShapeCollection.

Public Member Functions

virtual System::SharedPtr< IGroupShapeget_ParentGroup ()=0
 Returns parent GroupShape object for a shapes collection. Read-only IGroupShape. More...
 
virtual System::SharedPtr< IShapeidx_get (int32_t index)=0
 Gets the element at the specified index. Read-only IShape. More...
 
virtual System::SharedPtr< Charts::IChartAddChart (Charts::ChartType type, float x, float y, float width, float height)=0
 Creates a new Chart, initialize it with sample series data and settings and adds it to the end of the collection. More...
 
virtual System::SharedPtr< Charts::IChartAddChart (Charts::ChartType type, float x, float y, float width, float height, bool initWithSample)=0
 Creates a new Chart and adds it to the end of the collection. More...
 
virtual System::SharedPtr< SmartArt::ISmartArtAddSmartArt (float x, float y, float width, float height, SmartArt::SmartArtLayoutType layoutType)=0
 Add SmartArt diagram. More...
 
virtual System::SharedPtr< Charts::IChartInsertChart (Charts::ChartType type, float x, float y, float width, float height, int32_t index)=0
 Creates a new Chart, initialize it with sample series data and settings and inserts it to the specified position in the collection. More...
 
virtual System::SharedPtr< Charts::IChartInsertChart (Charts::ChartType type, float x, float y, float width, float height, int32_t index, bool initWithSample)=0
 Creates a new Chart and inserts it to the specified position in the collection. More...
 
virtual System::SharedPtr< IOleObjectFrameAddOleObjectFrame (float x, float y, float width, float height, System::SharedPtr< IOleEmbeddedDataInfo > dataInfo)=0
 Adds a new OLE object to the end of a collection. More...
 
virtual System::SharedPtr< IOleObjectFrameAddOleObjectFrame (float x, float y, float width, float height, System::String className, System::String path)=0
 Adds a new OLE object to the end of a collection. More...
 
virtual System::SharedPtr< IOleObjectFrameInsertOleObjectFrame (int32_t index, float x, float y, float width, float height, System::SharedPtr< IOleEmbeddedDataInfo > dataInfo)=0
 Creates a new OLE object and inserts it to a collection at the specified index. More...
 
virtual System::SharedPtr< IOleObjectFrameInsertOleObjectFrame (int32_t index, float x, float y, float width, float height, System::String className, System::String path)=0
 Creates a new OLE object and inserts it to a collection at the specified index. More...
 
virtual System::SharedPtr< IZoomFrameAddZoomFrame (float x, float y, float width, float height, System::SharedPtr< ISlide > slide)=0
 Adds a new Zoom object to the end of a collection. More...
 
virtual System::SharedPtr< IZoomFrameAddZoomFrame (float x, float y, float width, float height, System::SharedPtr< ISlide > slide, System::SharedPtr< IPPImage > image)=0
 Adds a new Zoom object to the end of a collection. More...
 
virtual System::SharedPtr< IZoomFrameInsertZoomFrame (int32_t index, float x, float y, float width, float height, System::SharedPtr< ISlide > slide)=0
 Creates a new Zoom object and inserts it to a collection at the specified index. More...
 
virtual System::SharedPtr< IZoomFrameInsertZoomFrame (int32_t index, float x, float y, float width, float height, System::SharedPtr< ISlide > slide, System::SharedPtr< IPPImage > image)=0
 Creates a new Zoom object and inserts it to a collection at the specified index. More...
 
virtual System::SharedPtr< IVideoFrameAddVideoFrame (float x, float y, float width, float height, System::String fname)=0
 Adds a new video frame to the end of a collection. More...
 
virtual System::SharedPtr< IVideoFrameAddVideoFrame (float x, float y, float width, float height, System::SharedPtr< IVideo > video)=0
 Adds a new video frame to the end of a collection. More...
 
virtual System::SharedPtr< IVideoFrameInsertVideoFrame (int32_t index, float x, float y, float width, float height, System::String fname)=0
 Creates a new video frame and inserts it to a collection at the specified index. More...
 
virtual System::SharedPtr< IAudioFrameAddAudioFrameCD (float x, float y, float width, float height)=0
 Adds an AudioFrame with CD to the end of collection. More...
 
virtual System::SharedPtr< IAudioFrameInsertAudioFrameCD (int32_t index, float x, float y, float width, float height)=0
 Insert an AudioFrame with CD. More...
 
virtual System::SharedPtr< IAudioFrameAddAudioFrameLinked (float x, float y, float width, float height, System::String fname)=0
 Adds a new audio frame with linked audio file to the end of a collection. More...
 
virtual System::SharedPtr< IAudioFrameInsertAudioFrameLinked (int32_t index, float x, float y, float width, float height, System::String fname)=0
 Creates a new audio frame with linked audio file and inserts it to a collection at the specified index. More...
 
virtual System::SharedPtr< IAudioFrameAddAudioFrameEmbedded (float x, float y, float width, float height, System::SharedPtr< System::IO::Stream > audio_stream)=0
 Adds a new audio frame with embedded audio file to the end of a collection. Embedded audio file can be a WAV only. It adds new audio into Presentation.Audios list. More...
 
virtual System::SharedPtr< IAudioFrameAddAudioFrameEmbedded (float x, float y, float width, float height, System::SharedPtr< IAudio > audio)=0
 Adds a new audio frame with embedded audio file to the end of a collection. It uses audio file from Presentation.Audios list. More...
 
virtual System::SharedPtr< IAudioFrameInsertAudioFrameEmbedded (int32_t index, float x, float y, float width, float height, System::SharedPtr< System::IO::Stream > audio_stream)=0
 Insert an AudioFrame with embedded audio file. Embedded audio file sound can be a WAV only. It adds new audio into Presentation.Audios list. More...
 
virtual System::SharedPtr< IAudioFrameInsertAudioFrameEmbedded (int32_t index, float x, float y, float width, float height, System::SharedPtr< IAudio > audio)=0
 Insert an AudioFrame with embedded audio file. It uses audio file from Presentation.Audios list. More...
 
virtual int32_t IndexOf (System::SharedPtr< IShape > shape)=0
 Returns the zero-based index of the first occurrence of a shape in the collection. More...
 
virtual System::ArrayPtr< System::SharedPtr< IShape > > ToArray ()=0
 Creates and returns an array with all shapse in it. More...
 
virtual System::ArrayPtr< System::SharedPtr< IShape > > ToArray (int32_t startIndex, int32_t count)=0
 Creates and returns an array with all shapes from the specified range in it. More...
 
virtual void Reorder (int32_t index, System::SharedPtr< IShape > shape)=0
 Moves a shape from the collection to the specified position. More...
 
virtual void Reorder (int32_t index, const System::ArrayPtr< System::SharedPtr< IShape >> &shapes)=0
 Moves shapes from the collection to the specified position. Shapes will be placed starting from index in order they appear in list. More...
 
virtual System::SharedPtr< IAutoShapeAddAutoShape (ShapeType shapeType, float x, float y, float width, float height)=0
 Creates a new AutoShape, tunes it from default template and adds it to the end of the collection. More...
 
virtual System::SharedPtr< IAutoShapeAddAutoShape (ShapeType shapeType, float x, float y, float width, float height, bool createFromTemplate)=0
 Creates a new AutoShape and adds it to the end of the collection. More...
 
virtual System::SharedPtr< IAutoShapeAddMathShape (float x, float y, float width, float height)=0
 Creates a new AutoShape of the type Rectangle to host mathematical content inside and adds it to the end of the collection. More...
 
virtual System::SharedPtr< IAutoShapeInsertAutoShape (int32_t index, ShapeType shapeType, float x, float y, float width, float height)=0
 Creates a new AutoShape, tunes it from default template and inserts it to the collection at the specified index. Note: the type of the shape will be determined by the shapeType parameter. More...
 
virtual System::SharedPtr< IAutoShapeInsertAutoShape (int32_t index, ShapeType shapeType, float x, float y, float width, float height, bool createFromTemplate)=0
 Creates a new AutoShape and inserts it to the collection at the specified index. Note: the type of the shape will be determined by the shapeType parameter. More...
 
virtual System::SharedPtr< IGroupShapeAddGroupShape ()=0
 Creates a new GroupShape and adds it to the end of the collection. GroupShape frame size and position will be fitted to content when new shape will be added into the GroupShape. More...
 
virtual System::SharedPtr< IGroupShapeAddGroupShape (System::SharedPtr< ISvgImage > svgImage, float x, float y, float width, float height)=0
 Creates a new GroupShape, fills it with converted shapes from SVG and adds it to the end of the collection. More...
 
virtual System::SharedPtr< IGroupShapeInsertGroupShape (int32_t index)=0
 Creates a new GroupShape and inserts it to the collection at the specified index. GroupShape frame size and position will be fitted to content when new shape will be added into the GroupShape. More...
 
virtual System::SharedPtr< IConnectorAddConnector (ShapeType shapeType, float x, float y, float width, float height)=0
 Creates a new Connector, tunes it from default template and adds it to the end of the collection. More...
 
virtual System::SharedPtr< IConnectorAddConnector (ShapeType shapeType, float x, float y, float width, float height, bool createFromTemplate)=0
 Creates a new Connector and adds it to the end of the collection. More...
 
virtual System::SharedPtr< IConnectorInsertConnector (int32_t index, ShapeType shapeType, float x, float y, float width, float height)=0
 Creates a new Connector, tunes it from default template and inserts it to the collection at the specified index. More...
 
virtual System::SharedPtr< IConnectorInsertConnector (int32_t index, ShapeType shapeType, float x, float y, float width, float height, bool createFromTemplate)=0
 Creates a new Connector and inserts it to the collection at the specified index. More...
 
virtual System::SharedPtr< IPictureFrameAddPictureFrame (ShapeType shapeType, float x, float y, float width, float height, System::SharedPtr< IPPImage > image)=0
 Creates a new PictureFrame and adds it to the end of the collection. More...
 
virtual System::SharedPtr< IPictureFrameInsertPictureFrame (int32_t index, ShapeType shapeType, float x, float y, float width, float height, System::SharedPtr< IPPImage > image)=0
 Creates a new PictureFrame and inserts it to the collection at the specified index. More...
 
virtual System::SharedPtr< ITableAddTable (float x, float y, System::ArrayPtr< double > columnWidths, System::ArrayPtr< double > rowHeights)=0
 Creates a new Table and adds it to the end of the collection. More...
 
virtual System::SharedPtr< ITableInsertTable (int32_t index, float x, float y, System::ArrayPtr< double > columnWidths, System::ArrayPtr< double > rowHeights)=0
 Creates a new Table and inserts it to the collection at the specified index. More...
 
virtual void RemoveAt (int32_t index)=0
 Removes the element at the specified index of the collection. More...
 
virtual void Remove (System::SharedPtr< IShape > shape)=0
 Removes the first occurrence of a specific shape from the collection. More...
 
virtual void Clear ()=0
 Removes all shapes from the collection. More...
 
virtual System::SharedPtr< IShapeAddClone (System::SharedPtr< IShape > sourceShape, float x, float y, float width, float height)=0
 Adds a copy of a specified shape to the end of the collection. More...
 
virtual System::SharedPtr< IShapeAddClone (System::SharedPtr< IShape > sourceShape, float x, float y)=0
 Adds a copy of a specified shape to the end of the collection. Width and Height of the new shape are equal to Width and Height of the sourceShape . More...
 
virtual System::SharedPtr< IShapeAddClone (System::SharedPtr< IShape > sourceShape)=0
 Adds a copy of a specified shape to the end of the collection. X, Y, Width and Height of the new shape are equal to X, Y, Width and Height of the sourceShape . More...
 
virtual System::SharedPtr< IShapeInsertClone (int32_t index, System::SharedPtr< IShape > sourceShape, float x, float y, float width, float height)=0
 Inserts a copy of a specified shape to specified position of the collection. More...
 
virtual System::SharedPtr< IShapeInsertClone (int32_t index, System::SharedPtr< IShape > sourceShape, float x, float y)=0
 Inserts a copy of a specified shape to specified position of the collection. Width and Height of the new shape are equal to Width and Height of the sourceShape . More...
 
virtual System::SharedPtr< IShapeInsertClone (int32_t index, System::SharedPtr< IShape > sourceShape)=0
 Inserts a copy of a specified shape to specified position of the collection. X, Y, Width and Height of the new shape are equal to X, Y, Width and Height of the sourceShape . More...
 
- Public Member Functions inherited from Aspose::Slides::IGenericCollection< System::SharedPtr< Aspose::Slides::IShape > >
virtual int32_t get_Count ()=0
 Returns the number of behaviors in a collection. Read-only int32_t. More...
 
virtual System::SharedPtr< System::Objectget_SyncRoot ()=0
 Returns a synchronization root. Read-only System::Object. More...
 
virtual bool get_IsSynchronized ()=0
 Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only bool. More...
 
virtual void CopyTo (System::ArrayPtr< System::SharedPtr< Aspose::Slides::IShape > > array, int32_t index)=0
 Copies all elements from the collection into the specified array. More...
 
- Public Member Functions inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Slides::IShape > >
virtual SharedPtr< IEnumerator< System::SharedPtr< Aspose::Slides::IShape > > > GetEnumerator ()=0
 Gets enumerator. More...
 
System::SharedPtr< Aspose::Slides::IShapeLINQ_ElementAt (int index)
 Returns the element at a specified index in a sequence. More...
 
System::SharedPtr< Aspose::Slides::IShapeLINQ_First ()
 Returns the first element of a sequence. More...
 
System::SharedPtr< Aspose::Slides::IShapeLINQ_First (const Func< System::SharedPtr< Aspose::Slides::IShape >, bool > &predicate)
 Returns the first element of a sequence that satisfy the specified condition. More...
 
System::SharedPtr< Aspose::Slides::IShapeLINQ_FirstOrDefault ()
 Returns the first element of a sequence, or a default value if the sequence is empty. More...
 
System::SharedPtr< Aspose::Slides::IShapeLINQ_FirstOrDefault (std::function< bool(System::SharedPtr< Aspose::Slides::IShape >)> predicate)
 Returns the first element of the sequence that satisfies a condition or a default value if no such element is found. More...
 
System::SharedPtr< Aspose::Slides::IShapeLINQ_Last ()
 Returns the last element of a sequence. More...
 
System::SharedPtr< Aspose::Slides::IShapeLINQ_LastOrDefault ()
 Returns the last element of a sequence, or a default value if the sequence is empty. More...
 
SharedPtr< List< System::SharedPtr< Aspose::Slides::IShape > > > LINQ_ToList ()
 Creates a List<T> from a sequence. More...
 
int LINQ_Count ()
 Returns the number of elements in the sequence (calculated via direct counting). More...
 
int LINQ_Count (const Func< System::SharedPtr< Aspose::Slides::IShape >, bool > &predicate)
 Returns the number of elements in the sequence that satisfy the specified condition. More...
 
System::ArrayPtr< System::SharedPtr< Aspose::Slides::IShape > > LINQ_ToArray ()
 Creates an array from a sequence. More...
 
bool LINQ_All (std::function< bool(System::SharedPtr< Aspose::Slides::IShape >)> predicate)
 Determines whether all elements of a sequence satisfy a condition. More...
 
bool LINQ_Any ()
 Determines whether a sequence contains any elements. More...
 
bool LINQ_Any (std::function< bool(System::SharedPtr< Aspose::Slides::IShape >)> predicate)
 Determines whether any element of a sequence exists or satisfies a condition. More...
 
SharedPtr< IEnumerable< System::SharedPtr< Aspose::Slides::IShape > > > LINQ_Where (std::function< bool(System::SharedPtr< Aspose::Slides::IShape >)> predicate)
 Filters a sequence based on the specified predicate. More...
 
bool LINQ_Contains (System::SharedPtr< Aspose::Slides::IShape > value)
 Determines if a sequence contains a specified value. More...
 
SharedPtr< IEnumerable< ResultType > > LINQ_Cast ()
 Casts the elements to the specified type. More...
 
SharedPtr< IEnumerable< Result > > LINQ_Cast ()
 
SharedPtr< IEnumerable< System::SharedPtr< Aspose::Slides::IShape > > > LINQ_OrderBy (const Func< System::SharedPtr< Aspose::Slides::IShape >, Key > &keySelector)
 Sorts the elements of a sequence in ascending order according to the key values selected by keySelector. More...
 
SharedPtr< IEnumerable< Source > > LINQ_OrderBy (const Func< Source, Key > &keySelector)
 
SharedPtr< IEnumerable< System::SharedPtr< Aspose::Slides::IShape > > > LINQ_OrderByDescending (const Func< System::SharedPtr< Aspose::Slides::IShape >, Key > &keySelector)
 Sorts the elements of a sequence in descending order according to the key values selected by keySelector. More...
 
SharedPtr< IEnumerable< Source > > LINQ_OrderByDescending (const Func< Source, Key > &keySelector)
 
SharedPtr< IEnumerable< ResultType > > LINQ_OfType ()
 Filters the elements of the sequence based on the specified type. More...
 
SharedPtr< IEnumerable< Result > > LINQ_OfType ()
 
SharedPtr< IEnumerable< ResultType > > LINQ_Select (const Func< System::SharedPtr< Aspose::Slides::IShape >, ResultType > &selector)
 Transforms elements of a sequence. More...
 
SharedPtr< IEnumerable< Result > > LINQ_Select (const Func< Source, Result > &selector)
 
SharedPtr< IEnumerable< System::SharedPtr< Aspose::Slides::IShape > > > LINQ_Concat (SharedPtr< IEnumerable< System::SharedPtr< Aspose::Slides::IShape > >> sequence)
 Concatenates two sequences. More...
 
iterator begin () noexcept
 Gets iterator pointing to the first element (if any) of the collection. This iterator can't be used to change a referenced object because GetEnumerator() returns a copy-object of T. More...
 
const_iterator begin () const noexcept
 Gets iterator pointing to the first element (if any) of the const-qualified instance of the collection. More...
 
iterator end () noexcept
 Gets iterator pointing right after the last element (if any) of the collection. This iterator can't be used to change a referenced object because GetEnumerator() returns a copy-object of T. More...
 
const_iterator end () const noexcept
 Gets iterator pointing right after the last element (if any) of the const-qualified instance of the collection. More...
 
const_iterator cbegin () const noexcept
 Gets iterator pointing to the first const-qualified element (if any) of the collection. More...
 
const_iterator cend () const noexcept
 Gets iterator pointing right after the last const-qualified element (if any) of the collection. More...
 
- Public Member Functions inherited from System::Object
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Additional Inherited Members

- Public Types inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Slides::IShape > >
typedef IEnumerator< System::SharedPtr< Aspose::Slides::IShape > > IEnumeratorType
 Enumerator type. More...
 
using ValueType = System::SharedPtr< Aspose::Slides::IShape >
 
using iterator = EnumeratorBasedIterator< System::SharedPtr< Aspose::Slides::IShape >, IEnumerator< System::SharedPtr< Aspose::Slides::IShape > > >
 
using const_iterator = iterator
 
- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 
- Protected Member Functions inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Slides::IShape > >
 ~IEnumerable () override
 Destructor. More...
 

Detailed Description

Represents a collection of a shapes.

Member Function Documentation

◆ AddAudioFrameCD()

virtual System::SharedPtr<IAudioFrame> Aspose::Slides::IShapeCollection::AddAudioFrameCD ( float  x,
float  y,
float  width,
float  height 
)
pure virtual

Adds an AudioFrame with CD to the end of collection.

Parameters
xX coordinate of a new audio frame.
yY coordinate of a new audio frame.
widthWidth of a new audio frame.
heightHeight of a new audio frame.
Returns
Created AudioFrame object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddAudioFrameEmbedded() [1/2]

virtual System::SharedPtr<IAudioFrame> Aspose::Slides::IShapeCollection::AddAudioFrameEmbedded ( float  x,
float  y,
float  width,
float  height,
System::SharedPtr< System::IO::Stream audio_stream 
)
pure virtual

Adds a new audio frame with embedded audio file to the end of a collection. Embedded audio file can be a WAV only. It adds new audio into Presentation.Audios list.

Parameters
xX coordinate of a new audio frame.
yY coordinate of a new audio frame.
widthWidth of a new audio frame.
heightHeight of a new audio frame.
audio_streamInout stream with audio data.
Returns
Created AudioFrame object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddAudioFrameEmbedded() [2/2]

virtual System::SharedPtr<IAudioFrame> Aspose::Slides::IShapeCollection::AddAudioFrameEmbedded ( float  x,
float  y,
float  width,
float  height,
System::SharedPtr< IAudio audio 
)
pure virtual

Adds a new audio frame with embedded audio file to the end of a collection. It uses audio file from Presentation.Audios list.

Parameters
xX coordinate of a new audio frame.
yY coordinate of a new audio frame.
widthWidth of a new audio frame.
heightHeight of a new audio frame.
audioAudio from Presentation.Audios list.
Returns
Created AudioFrame object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddAudioFrameLinked()

virtual System::SharedPtr<IAudioFrame> Aspose::Slides::IShapeCollection::AddAudioFrameLinked ( float  x,
float  y,
float  width,
float  height,
System::String  fname 
)
pure virtual

Adds a new audio frame with linked audio file to the end of a collection.

Parameters
xX coordinate of a new audio frame.
yY coordinate of a new audio frame.
widthWidth of a new audio frame.
heightHeight of a new audio frame.
fnameAudio file name.
Returns
Created AudioFrame object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddAutoShape() [1/2]

virtual System::SharedPtr<IAutoShape> Aspose::Slides::IShapeCollection::AddAutoShape ( ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height 
)
pure virtual

Creates a new AutoShape, tunes it from default template and adds it to the end of the collection.

Parameters
shapeTypeThe ShapeType of shape.
xThe X-coordinate for a left side of shape's frame.
yThe Y-coordinate for a top side of shape's frame.
widthThe width of shape's frame.
heightThe height of shape's frame.
Returns
Created AutoShape object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddAutoShape() [2/2]

virtual System::SharedPtr<IAutoShape> Aspose::Slides::IShapeCollection::AddAutoShape ( ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height,
bool  createFromTemplate 
)
pure virtual

Creates a new AutoShape and adds it to the end of the collection.

Parameters
shapeTypeThe ShapeType of shape.
xThe X-coordinate for a left side of shape's frame.
yThe Y-coordinate for a top side of shape's frame.
widthThe width of shape's frame.
heightThe height of shape's frame.
createFromTemplateIf true then new shape will be tuned from default template. Not empty name, simple style, text centered will be assined to the new shape. If false then all values of the properties of the new shape will have default values.
Returns
Created AutoShape object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddChart() [1/2]

virtual System::SharedPtr<Charts::IChart> Aspose::Slides::IShapeCollection::AddChart ( Charts::ChartType  type,
float  x,
float  y,
float  width,
float  height 
)
pure virtual

Creates a new Chart, initialize it with sample series data and settings and adds it to the end of the collection.

Parameters
typeType of chart.
xX coordinate of a new chart.
yY coordinate of a new chart.
widthChart's width.
heightChart's height.
Returns
Created chart.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddChart() [2/2]

virtual System::SharedPtr<Charts::IChart> Aspose::Slides::IShapeCollection::AddChart ( Charts::ChartType  type,
float  x,
float  y,
float  width,
float  height,
bool  initWithSample 
)
pure virtual

Creates a new Chart and adds it to the end of the collection.

Parameters
typeType of chart.
xX coordinate of a new chart.
yY coordinate of a new chart.
widthChart's width.
heightChart's height.
initWithSampleIf true then new chart will be initialized with sample series data and settings. If false then new chart will have no series and minimum settings. In this case chart creation will be more fast.
Returns
Created chart.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddClone() [1/3]

virtual System::SharedPtr<IShape> Aspose::Slides::IShapeCollection::AddClone ( System::SharedPtr< IShape sourceShape,
float  x,
float  y,
float  width,
float  height 
)
pure virtual

Adds a copy of a specified shape to the end of the collection.

Parameters
sourceShapeShape to clone.
xX coordinate of a new shape.
yY coordinate of a new shape.
widthWidth of a new shape.
heightHeight of a new shape.
Returns
New shape.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddClone() [2/3]

virtual System::SharedPtr<IShape> Aspose::Slides::IShapeCollection::AddClone ( System::SharedPtr< IShape sourceShape,
float  x,
float  y 
)
pure virtual

Adds a copy of a specified shape to the end of the collection. Width and Height of the new shape are equal to Width and Height of the sourceShape .

Parameters
sourceShapeShape to clone.
xX coordinate of a new shape.
yY coordinate of a new shape.
Returns
New shape.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddClone() [3/3]

virtual System::SharedPtr<IShape> Aspose::Slides::IShapeCollection::AddClone ( System::SharedPtr< IShape sourceShape)
pure virtual

Adds a copy of a specified shape to the end of the collection. X, Y, Width and Height of the new shape are equal to X, Y, Width and Height of the sourceShape .

Parameters
sourceShapeShape to clone.
Returns
New shape.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddConnector() [1/2]

virtual System::SharedPtr<IConnector> Aspose::Slides::IShapeCollection::AddConnector ( ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height 
)
pure virtual

Creates a new Connector, tunes it from default template and adds it to the end of the collection.

Parameters
shapeTypeThe ShapeType of shape.
xThe X-coordinate for a left side of shape's frame.
yThe Y-coordinate for a top side of shape's frame.
widthThe width of shape's frame.
heightThe height of shape's frame.
Returns

The zero-based index of the created shape.

Created Connector object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddConnector() [2/2]

virtual System::SharedPtr<IConnector> Aspose::Slides::IShapeCollection::AddConnector ( ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height,
bool  createFromTemplate 
)
pure virtual

Creates a new Connector and adds it to the end of the collection.

Parameters
shapeTypeThe ShapeType of shape.
xThe X-coordinate for a left side of shape's frame.
yThe Y-coordinate for a top side of shape's frame.
widthThe width of shape's frame.
heightThe height of shape's frame.
createFromTemplateIf true then new shape will be tuned from default template. Not empty name, simple style, text centered will be assined to the new shape. If false then all values of the properties of the new shape will have default values.
Returns

The zero-based index of the created shape.

Created Connector object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddGroupShape() [1/2]

virtual System::SharedPtr<IGroupShape> Aspose::Slides::IShapeCollection::AddGroupShape ( )
pure virtual

Creates a new GroupShape and adds it to the end of the collection. GroupShape frame size and position will be fitted to content when new shape will be added into the GroupShape.

Returns
Created GroupShape object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddGroupShape() [2/2]

virtual System::SharedPtr<IGroupShape> Aspose::Slides::IShapeCollection::AddGroupShape ( System::SharedPtr< ISvgImage svgImage,
float  x,
float  y,
float  width,
float  height 
)
pure virtual

Creates a new GroupShape, fills it with converted shapes from SVG and adds it to the end of the collection.

Parameters
svgImageSvg image object ISvgImage
xThe X coordinate for the left side of the shape group frame.
yThe Y coordinate for the top side of the shape group frame.
widthThe width of the group of the shape group frame.
heightThe height of a group of the shape group frame.
Returns
Created GroupShape object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddMathShape()

virtual System::SharedPtr<IAutoShape> Aspose::Slides::IShapeCollection::AddMathShape ( float  x,
float  y,
float  width,
float  height 
)
pure virtual

Creates a new AutoShape of the type Rectangle to host mathematical content inside and adds it to the end of the collection.

Parameters
xThe X-coordinate for a left side of shape's frame.
yThe Y-coordinate for a top side of shape's frame.
widthThe width of shape's frame.
heightThe height of shape's frame.
Returns
Created AutoShape object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddOleObjectFrame() [1/2]

virtual System::SharedPtr<IOleObjectFrame> Aspose::Slides::IShapeCollection::AddOleObjectFrame ( float  x,
float  y,
float  width,
float  height,
System::SharedPtr< IOleEmbeddedDataInfo dataInfo 
)
pure virtual

Adds a new OLE object to the end of a collection.

Parameters
xX coordinate of a new OLE frame.
yY coordinate of a new OLE frame.
widthWidth of a new OLE frame.
heightHeight of a new OLE frame.
dataInfoEmbedded data info IOleEmbeddedDataInfo.
Returns
Created OLE object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddOleObjectFrame() [2/2]

virtual System::SharedPtr<IOleObjectFrame> Aspose::Slides::IShapeCollection::AddOleObjectFrame ( float  x,
float  y,
float  width,
float  height,
System::String  className,
System::String  path 
)
pure virtual

Adds a new OLE object to the end of a collection.

Parameters
xX coordinate of a new OLE frame.
yY coordinate of a new OLE frame.
widthWidth of a new OLE frame.
heightHeight of a new OLE frame.
classNameName of an OLE class.
pathpath to the linked file.
Returns
Created OLE object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddPictureFrame()

virtual System::SharedPtr<IPictureFrame> Aspose::Slides::IShapeCollection::AddPictureFrame ( ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height,
System::SharedPtr< IPPImage image 
)
pure virtual

Creates a new PictureFrame and adds it to the end of the collection.

Parameters
shapeTypeThe shape contained in the set ShapeType of shapes, except all sorts of lines:ShapeType::Line,ShapeType::StraightConnector1,ShapeType::BentConnector2,ShapeType::BentConnector3,ShapeType::BentConnector4,ShapeType::BentConnector5,ShapeType::CurvedConnector2,ShapeType::CurvedConnector3,ShapeType::CurvedConnector4,ShapeType::CurvedConnector5.
xThe X-coordinate for a left side of shape's frame.
yThe Y-coordinate for a top side of shape's frame.
widthThe width of shape's frame.
heightThe height of shape's frame.
imageThe image of picture frame.
Returns
Created PictureFrame object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddSmartArt()

virtual System::SharedPtr<SmartArt::ISmartArt> Aspose::Slides::IShapeCollection::AddSmartArt ( float  x,
float  y,
float  width,
float  height,
SmartArt::SmartArtLayoutType  layoutType 
)
pure virtual

Add SmartArt diagram.

Parameters
xThe X-coordinate for a left side of diagram's frame.
yThe Y-coordinate for a left side of diagram's frame.
widthThe width of diagram's frame.
heightThe height of diagram's frame.
layoutTypeThe type of SmartArt diagram
Returns
Create SmartArt diagram
auto pres = MakeObject<Presentation>();
auto slide = pres->get_Slides()->idx_get(0);
auto smart = slide->get_Shapes()->AddSmartArt(0.0f, 0.0f, 400.0f, 400.0f, Aspose::Slides::SmartArt::SmartArtLayoutType::BasicBlockList);

Implemented in Aspose::Slides::ShapeCollection.

◆ AddTable()

virtual System::SharedPtr<ITable> Aspose::Slides::IShapeCollection::AddTable ( float  x,
float  y,
System::ArrayPtr< double columnWidths,
System::ArrayPtr< double rowHeights 
)
pure virtual

Creates a new Table and adds it to the end of the collection.

Parameters
xThe X-coordinate for a left side of shape's frame.
yThe Y-coordinate for a top side of shape's frame.
columnWidthsArray of doubles which represents widths of columns in the table.
rowHeightsArray of doubles which represents heights of rows in the table.
Returns
Created Table object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddVideoFrame() [1/2]

virtual System::SharedPtr<IVideoFrame> Aspose::Slides::IShapeCollection::AddVideoFrame ( float  x,
float  y,
float  width,
float  height,
System::String  fname 
)
pure virtual

Adds a new video frame to the end of a collection.

Parameters
xX coordinate of a new video frame.
yY coordinate of a new video frame.
widthWidth of a new video frame.
heightHeight of a new video frame.
fnameVideo file name.
Returns
Created VideoFrame object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddVideoFrame() [2/2]

virtual System::SharedPtr<IVideoFrame> Aspose::Slides::IShapeCollection::AddVideoFrame ( float  x,
float  y,
float  width,
float  height,
System::SharedPtr< IVideo video 
)
pure virtual

Adds a new video frame to the end of a collection.

Parameters
xX coordinate of a new video frame.
yY coordinate of a new video frame.
widthWidth of a new video frame.
heightHeight of a new video frame.
videoVideo.
Returns
Created VideoFrame object.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddZoomFrame() [1/2]

virtual System::SharedPtr<IZoomFrame> Aspose::Slides::IShapeCollection::AddZoomFrame ( float  x,
float  y,
float  width,
float  height,
System::SharedPtr< ISlide slide 
)
pure virtual

Adds a new Zoom object to the end of a collection.

This example demonstrates adding a Zoom object to the end of a collection (assume that there are at least two slides in the "Presentation.pptx" presentation):

System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"Presentation.pptx");
System::SharedPtr<IZoomFrame> zoomFrame = pres->get_Slides()->idx_get(0)->get_Shapes()->AddZoomFrame(150.0f, 20.0f, 50.0f, 50.0f, pres->get_Slides()->idx_get(1));
Parameters
xX coordinate of a new Zoom frame float.
yY coordinate of a new Zoom frame float.
widthWidth of a new Zoom frame float.
heightHeight of a new Zoom frame float.
slideThe slide object referenced by the Zoom frame ISlide.
Returns
Created Zoom object IZoomFrame.
Exceptions
System::ArgumentException Referenced slide does not belong to the current presentation.

Implemented in Aspose::Slides::ShapeCollection.

◆ AddZoomFrame() [2/2]

virtual System::SharedPtr<IZoomFrame> Aspose::Slides::IShapeCollection::AddZoomFrame ( float  x,
float  y,
float  width,
float  height,
System::SharedPtr< ISlide slide,
System::SharedPtr< IPPImage image 
)
pure virtual

Adds a new Zoom object to the end of a collection.

This example demonstrates adding a Zoom object to the end of a collection (assume that there are at least two slides in the "Presentation.pptx" presentation):

System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"Presentation.pptx");
System::SharedPtr<IPPImage> image = pres->get_Images()->AddImage(System::Drawing::Image::FromFile(u"image.png"));
System::SharedPtr<IZoomFrame> zoomFrame = pres->get_Slides()->idx_get(0)->get_Shapes()->AddZoomFrame(150.0f, 20.0f, 50.0f, 50.0f, pres->get_Slides()->idx_get(1), image);
Parameters
xX coordinate of a new Zoom frame float.
yY coordinate of a new Zoom frame float.
widthWidth of a new Zoom frame float.
heightHeight of a new Zoom frame float.
slideThe slide object referenced by the Zoom frame ISlide.
imageThe image for the referenced slide IPPImage
Returns
Created Zoom object IZoomFrame.
Exceptions
System::ArgumentException Referenced slide does not belong to the current presentation.

Implemented in Aspose::Slides::ShapeCollection.

◆ Clear()

virtual void Aspose::Slides::IShapeCollection::Clear ( )
pure virtual

Removes all shapes from the collection.

Implemented in Aspose::Slides::ShapeCollection.

◆ get_ParentGroup()

virtual System::SharedPtr<IGroupShape> Aspose::Slides::IShapeCollection::get_ParentGroup ( )
pure virtual

Returns parent GroupShape object for a shapes collection. Read-only IGroupShape.

Implemented in Aspose::Slides::ShapeCollection.

◆ idx_get()

virtual System::SharedPtr<IShape> Aspose::Slides::IShapeCollection::idx_get ( int32_t  index)
pure virtual

Gets the element at the specified index. Read-only IShape.

Implemented in Aspose::Slides::ShapeCollection.

◆ IndexOf()

virtual int32_t Aspose::Slides::IShapeCollection::IndexOf ( System::SharedPtr< IShape shape)
pure virtual

Returns the zero-based index of the first occurrence of a shape in the collection.

Parameters
shapeThe shape to locate in the collection.
Returns
The zero-based index of the first occurrence of shape within the collection, if found; otherwise, -1.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertAudioFrameCD()

virtual System::SharedPtr<IAudioFrame> Aspose::Slides::IShapeCollection::InsertAudioFrameCD ( int32_t  index,
float  x,
float  y,
float  width,
float  height 
)
pure virtual

Insert an AudioFrame with CD.

Parameters
indexThe zero-based index at which video frame should be inserted.
xX coordinate of a new audio frame.
yY coordinate of a new audio frame.
widthWidth of a new audio frame.
heightHeight of a new audio frame.
Returns
Created AudioFrame object.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertAudioFrameEmbedded() [1/2]

virtual System::SharedPtr<IAudioFrame> Aspose::Slides::IShapeCollection::InsertAudioFrameEmbedded ( int32_t  index,
float  x,
float  y,
float  width,
float  height,
System::SharedPtr< System::IO::Stream audio_stream 
)
pure virtual

Insert an AudioFrame with embedded audio file. Embedded audio file sound can be a WAV only. It adds new audio into Presentation.Audios list.

Parameters
indexThe zero-based index at which value should be inserted.
xX coordinate of a new audio frame.
yY coordinate of a new audio frame.
widthWidth of a new audio frame.
heightHeight of a new audio frame.
audio_streamAudio stream.
Returns
Created AudioFrame object.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertAudioFrameEmbedded() [2/2]

virtual System::SharedPtr<IAudioFrame> Aspose::Slides::IShapeCollection::InsertAudioFrameEmbedded ( int32_t  index,
float  x,
float  y,
float  width,
float  height,
System::SharedPtr< IAudio audio 
)
pure virtual

Insert an AudioFrame with embedded audio file. It uses audio file from Presentation.Audios list.

Parameters
indexThe zero-based index at which value should be inserted.
xX coordinate of a new audio frame.
yY coordinate of a new audio frame.
widthWidth of a new audio frame.
heightHeight of a new audio frame.
audioAudio from Presentation.Audios list.
Returns
Created AudioFrame object.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertAudioFrameLinked()

virtual System::SharedPtr<IAudioFrame> Aspose::Slides::IShapeCollection::InsertAudioFrameLinked ( int32_t  index,
float  x,
float  y,
float  width,
float  height,
System::String  fname 
)
pure virtual

Creates a new audio frame with linked audio file and inserts it to a collection at the specified index.

Parameters
indexThe zero-based index at which audio frame should be inserted.
xX coordinate of a new audio frame.
yY coordinate of a new audio frame.
widthWidth of a new audio frame.
heightHeight of a new audio frame.
fnameAudio file name.
Returns
Created AudioFrame object.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertAutoShape() [1/2]

virtual System::SharedPtr<IAutoShape> Aspose::Slides::IShapeCollection::InsertAutoShape ( int32_t  index,
ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height 
)
pure virtual

Creates a new AutoShape, tunes it from default template and inserts it to the collection at the specified index. Note: the type of the shape will be determined by the shapeType parameter.

Parameters
indexThe zero-based index at which value should be inserted.
shapeTypeAn ShapeType of shape.
xThe X-coordinate for a left side of shape's frame.
yThe Y-coordinate for a top side of shape's frame.
widthThe width of shape's frame.
heightThe height of shape's frame.
Returns
Created AutoShape object.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertAutoShape() [2/2]

virtual System::SharedPtr<IAutoShape> Aspose::Slides::IShapeCollection::InsertAutoShape ( int32_t  index,
ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height,
bool  createFromTemplate 
)
pure virtual

Creates a new AutoShape and inserts it to the collection at the specified index. Note: the type of the shape will be determined by the shapeType parameter.

Parameters
indexThe zero-based index at which value should be inserted.
shapeTypeAn ShapeType of shape.
xThe X-coordinate for a left side of shape's frame.
yThe Y-coordinate for a top side of shape's frame.
widthThe width of shape's frame.
heightThe height of shape's frame.
createFromTemplateIf true then new shape will be tuned from default template. Not empty name, simple style, text centered will be assined to the new shape. If false then all values of the properties of the new shape will have default values.
Returns
Created AutoShape object.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertChart() [1/2]

virtual System::SharedPtr<Charts::IChart> Aspose::Slides::IShapeCollection::InsertChart ( Charts::ChartType  type,
float  x,
float  y,
float  width,
float  height,
int32_t  index 
)
pure virtual

Creates a new Chart, initialize it with sample series data and settings and inserts it to the specified position in the collection.

Parameters
typeType of chart.
xX coordinate of a new chart.
yY coordinate of a new chart.
widthChart's width.
heightChart's height.
indexChart's position in the collection.
Returns
Created chart.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertChart() [2/2]

virtual System::SharedPtr<Charts::IChart> Aspose::Slides::IShapeCollection::InsertChart ( Charts::ChartType  type,
float  x,
float  y,
float  width,
float  height,
int32_t  index,
bool  initWithSample 
)
pure virtual

Creates a new Chart and inserts it to the specified position in the collection.

Parameters
typeType of chart.
xX coordinate of a new chart.
yY coordinate of a new chart.
widthChart's width.
heightChart's height.
indexChart's position in the collection.
initWithSampleIf true then new chart will be initialized with sample series data and settings. If false then new chart will have no series and minimum settings. In this case chart creation will be more fast.
Returns
Created chart.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertClone() [1/3]

virtual System::SharedPtr<IShape> Aspose::Slides::IShapeCollection::InsertClone ( int32_t  index,
System::SharedPtr< IShape sourceShape,
float  x,
float  y,
float  width,
float  height 
)
pure virtual

Inserts a copy of a specified shape to specified position of the collection.

Parameters
indexIndex of new shape.
sourceShapeShape to clone.
xX coordinate of a new shape.
yY coordinate of a new shape.
widthWidth of a new shape.
heightHeight of a new shape.
Returns
Inserted shape.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertClone() [2/3]

virtual System::SharedPtr<IShape> Aspose::Slides::IShapeCollection::InsertClone ( int32_t  index,
System::SharedPtr< IShape sourceShape,
float  x,
float  y 
)
pure virtual

Inserts a copy of a specified shape to specified position of the collection. Width and Height of the new shape are equal to Width and Height of the sourceShape .

Parameters
indexIndex of new shape.
sourceShapeShape to clone.
xX coordinate of a new shape.
yY coordinate of a new shape.
Returns
Inserted shape.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertClone() [3/3]

virtual System::SharedPtr<IShape> Aspose::Slides::IShapeCollection::InsertClone ( int32_t  index,
System::SharedPtr< IShape sourceShape 
)
pure virtual

Inserts a copy of a specified shape to specified position of the collection. X, Y, Width and Height of the new shape are equal to X, Y, Width and Height of the sourceShape .

Parameters
indexIndex of new shape.
sourceShapeShape to clone.
Returns
Inserted shape.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertConnector() [1/2]

virtual System::SharedPtr<IConnector> Aspose::Slides::IShapeCollection::InsertConnector ( int32_t  index,
ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height 
)
pure virtual

Creates a new Connector, tunes it from default template and inserts it to the collection at the specified index.

Parameters
indexThe zero-based index at which value should be inserted.
shapeTypeAn ShapeType of shape.
xThe X-coordinate for a left side of shape's frame.
yThe Y-coordinate for a top side of shape's frame.
widthThe width of shape's frame.
heightThe height of shape's frame.
Returns
Created Connector object.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertConnector() [2/2]

virtual System::SharedPtr<IConnector> Aspose::Slides::IShapeCollection::InsertConnector ( int32_t  index,
ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height,
bool  createFromTemplate 
)
pure virtual

Creates a new Connector and inserts it to the collection at the specified index.

Parameters
indexThe zero-based index at which value should be inserted.
shapeTypeAn ShapeType of shape.
xThe X-coordinate for a left side of shape's frame.
yThe Y-coordinate for a top side of shape's frame.
widthThe width of shape's frame.
heightThe height of shape's frame.
createFromTemplateIf true then new shape will be tuned from default template. Not empty name, simple style, text centered will be assined to the new shape. If false then all values of the properties of the new shape will have default values.
Returns
Created Connector object.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertGroupShape()

virtual System::SharedPtr<IGroupShape> Aspose::Slides::IShapeCollection::InsertGroupShape ( int32_t  index)
pure virtual

Creates a new GroupShape and inserts it to the collection at the specified index. GroupShape frame size and position will be fitted to content when new shape will be added into the GroupShape.

Parameters
indexThe zero-based index at which value should be inserted.
Returns
Created GroupShape object.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertOleObjectFrame() [1/2]

virtual System::SharedPtr<IOleObjectFrame> Aspose::Slides::IShapeCollection::InsertOleObjectFrame ( int32_t  index,
float  x,
float  y,
float  width,
float  height,
System::SharedPtr< IOleEmbeddedDataInfo dataInfo 
)
pure virtual

Creates a new OLE object and inserts it to a collection at the specified index.

Parameters
indexThe zero-based index at which OLE object should be inserted.
xX coordinate of a new OLE frame.
yY coordinate of a new OLE frame.
widthWidth of a new OLE frame.
heightHeight of a new OLE frame.
dataInfoEmbedded data info IOleEmbeddedDataInfo.
Returns
Created OLE object.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertOleObjectFrame() [2/2]

virtual System::SharedPtr<IOleObjectFrame> Aspose::Slides::IShapeCollection::InsertOleObjectFrame ( int32_t  index,
float  x,
float  y,
float  width,
float  height,
System::String  className,
System::String  path 
)
pure virtual

Creates a new OLE object and inserts it to a collection at the specified index.

Parameters
indexThe zero-based index at which OLE object should be inserted.
xX coordinate of a new OLE frame.
yY coordinate of a new OLE frame.
widthWidth of a new OLE frame.
heightHeight of a new OLE frame.
classNameName of an OLE class.
pathPath to the linked file.
Returns
Created OLE object.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertPictureFrame()

virtual System::SharedPtr<IPictureFrame> Aspose::Slides::IShapeCollection::InsertPictureFrame ( int32_t  index,
ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height,
System::SharedPtr< IPPImage image 
)
pure virtual

Creates a new PictureFrame and inserts it to the collection at the specified index.

Parameters
indexThe zero-based index at which value should be inserted.
shapeTypeThe shape contained in the set ShapeType of shapes, except all sorts of lines:ShapeType::Line,ShapeType::StraightConnector1,ShapeType::BentConnector2,ShapeType::BentConnector3,ShapeType::BentConnector4,ShapeType::BentConnector5,ShapeType::CurvedConnector2,ShapeType::CurvedConnector3,ShapeType::CurvedConnector4,ShapeType::CurvedConnector5.
xThe X-coordinate for a left side of shape's frame.
yThe Y-coordinate for a top side of shape's frame.
widthThe width of shape's frame.
heightThe height of shape's frame.
imageThe image of picture frame.
Returns
Created PictureFrame object.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertTable()

virtual System::SharedPtr<ITable> Aspose::Slides::IShapeCollection::InsertTable ( int32_t  index,
float  x,
float  y,
System::ArrayPtr< double columnWidths,
System::ArrayPtr< double rowHeights 
)
pure virtual

Creates a new Table and inserts it to the collection at the specified index.

Parameters
indexThe zero-based index at which value should be inserted.
xThe X-coordinate for a left side of shape's frame.
yThe Y-coordinate for a top side of shape's frame.
columnWidthsArray of doubles which represents widths of columns in the table.
rowHeightsArray of doubles which represents heights of rows in the table.
Returns
Created Table object.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertVideoFrame()

virtual System::SharedPtr<IVideoFrame> Aspose::Slides::IShapeCollection::InsertVideoFrame ( int32_t  index,
float  x,
float  y,
float  width,
float  height,
System::String  fname 
)
pure virtual

Creates a new video frame and inserts it to a collection at the specified index.

Parameters
indexThe zero-based index at which video frame should be inserted.
xX coordinate of a new video frame.
yY coordinate of a new video frame.
widthWidth of a new video frame.
heightHeight of a new video frame.
fnameVideo file name.
Returns
Created VideoFrame object.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertZoomFrame() [1/2]

virtual System::SharedPtr<IZoomFrame> Aspose::Slides::IShapeCollection::InsertZoomFrame ( int32_t  index,
float  x,
float  y,
float  width,
float  height,
System::SharedPtr< ISlide slide 
)
pure virtual

Creates a new Zoom object and inserts it to a collection at the specified index.

This example demonstrates creation and inserting a Zoom object at the specified index of a collection (assume that there are at least two slides in the "Presentation.pptx" presentation):

System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"Presentation.pptx");
System::SharedPtr<IZoomFrame> zoomFrame = pres->get_Slides()->idx_get(0)->get_Shapes()->InsertZoomFrame(2, 150.0f, 20.0f, 50.0f, 50.0f, pres->get_Slides()->idx_get(1));
Parameters
indexThe zero-based index at which Zoom frame should be inserted.
xX coordinate of a new Zoom frame float.
yY coordinate of a new Zoom frame float.
widthWidth of a new Zoom frame float.
heightHeight of a new Zoom frame float.
slideThe slide object referenced by the Zoom frame ISlide.
Returns
Created Zoom object IZoomFrame.
Exceptions
System::ArgumentException Referenced slide does not belong to the current presentation.

Implemented in Aspose::Slides::ShapeCollection.

◆ InsertZoomFrame() [2/2]

virtual System::SharedPtr<IZoomFrame> Aspose::Slides::IShapeCollection::InsertZoomFrame ( int32_t  index,
float  x,
float  y,
float  width,
float  height,
System::SharedPtr< ISlide slide,
System::SharedPtr< IPPImage image 
)
pure virtual

Creates a new Zoom object and inserts it to a collection at the specified index.

This example demonstrates creation and inserting a Zoom object at the specified index of a collection (assume that there are at least two slides in the "Presentation.pptx" presentation):

System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"Presentation.pptx");
System::SharedPtr<IPPImage> image = pres->get_Images()->AddImage(System::Drawing::Image::FromFile(u"image.png"));
System::SharedPtr<IZoomFrame> zoomFrame = pres->get_Slides()->idx_get(0)->get_Shapes()->InsertZoomFrame(2, 150.0f, 20.0f, 50.0f, 50.0f, pres->get_Slides()->idx_get(1), image);
Parameters
indexThe zero-based index at which Zoom frame should be inserted.
xX coordinate of a new Zoom frame float.
yY coordinate of a new Zoom frame float.
widthWidth of a new Zoom frame float.
heightHeight of a new Zoom frame float.
slideThe slide object referenced by the Zoom frame ISlide.
imageThe image for the referenced slide IPPImage
Returns
Created Zoom object IZoomFrame.
Exceptions
System::ArgumentException Referenced slide does not belong to the current presentation.

Implemented in Aspose::Slides::ShapeCollection.

◆ Remove()

virtual void Aspose::Slides::IShapeCollection::Remove ( System::SharedPtr< IShape shape)
pure virtual

Removes the first occurrence of a specific shape from the collection.

Parameters
shapeThe shape to remove from the collection.

Implemented in Aspose::Slides::ShapeCollection.

◆ RemoveAt()

virtual void Aspose::Slides::IShapeCollection::RemoveAt ( int32_t  index)
pure virtual

Removes the element at the specified index of the collection.

Parameters
indexThe zero-based index of the element to remove.

Implemented in Aspose::Slides::ShapeCollection.

◆ Reorder() [1/2]

virtual void Aspose::Slides::IShapeCollection::Reorder ( int32_t  index,
System::SharedPtr< IShape shape 
)
pure virtual

Moves a shape from the collection to the specified position.

Parameters
indexTarget index.
shapeShape to move.

Implemented in Aspose::Slides::ShapeCollection.

◆ Reorder() [2/2]

virtual void Aspose::Slides::IShapeCollection::Reorder ( int32_t  index,
const System::ArrayPtr< System::SharedPtr< IShape >> &  shapes 
)
pure virtual

Moves shapes from the collection to the specified position. Shapes will be placed starting from index in order they appear in list.

Parameters
indexTarget index.
shapesShapes to move.

Implemented in Aspose::Slides::ShapeCollection.

◆ ToArray() [1/2]

virtual System::ArrayPtr<System::SharedPtr<IShape> > Aspose::Slides::IShapeCollection::ToArray ( )
pure virtual

Creates and returns an array with all shapse in it.

Returns
Array of IShape

Implemented in Aspose::Slides::ShapeCollection.

◆ ToArray() [2/2]

virtual System::ArrayPtr<System::SharedPtr<IShape> > Aspose::Slides::IShapeCollection::ToArray ( int32_t  startIndex,
int32_t  count 
)
pure virtual

Creates and returns an array with all shapes from the specified range in it.

Parameters
startIndexAn index of a first shape to return.
countA number of shapes to return.
Returns
Array of IShape

Implemented in Aspose::Slides::ShapeCollection.