Aspose::Slides::ShapeCollection Class Referencefinal

Represents a collection of a shapes. More...

Inherits Aspose::Slides::IShapeCollection, and Aspose::Slides::IDOMObject.

Public Member Functions

int32_t get_Count ()
 Gets the number of elements actually contained in the collection. Read-only int32_t. More...
 
System::SharedPtr< IDOMObjectget_Parent_Immediate ()
 Returns Parent_Immediate object. Read-only IDOMObject. More...
 
System::SharedPtr< IGroupShapeget_ParentGroup ()
 Returns parent GroupShape object for a shapes collection. Read-only IGroupShape. More...
 
bool get_IsSynchronized ()
 Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only bool. More...
 
System::SharedPtr< System::Objectget_SyncRoot ()
 Returns a synchronization root. Read-only object. More...
 
System::SharedPtr< IShapeidx_get (int32_t index)
 Gets the element at the specified index. Read-only IShape. More...
 
System::SharedPtr< Charts::IChartAddChart (Charts::ChartType type, float x, float y, float width, float height)
 Creates a new Chart, initialize it with sample series data and settings and adds it to the end of the collection. More...
 
System::SharedPtr< Charts::IChartAddChart (Charts::ChartType type, float x, float y, float width, float height, bool initWithSample)
 Creates a new Chart and adds it to the end of the collection. More...
 
System::SharedPtr< SmartArt::ISmartArtAddSmartArt (float x, float y, float width, float height, SmartArt::SmartArtLayoutType layoutType)
 Add SmartArt diagram. More...
 
System::SharedPtr< Charts::IChartInsertChart (Charts::ChartType type, float x, float y, float width, float height, int32_t index)
 Creates a new Chart, initialize it with sample series data and settings and inserts it to the specified position in the collection. More...
 
System::SharedPtr< Charts::IChartInsertChart (Charts::ChartType type, float x, float y, float width, float height, int32_t index, bool initWithSample)
 Creates a new Chart and inserts it to the specified position in the collection. More...
 
System::SharedPtr< IOleObjectFrameAddOleObjectFrame (float x, float y, float width, float height, System::SharedPtr< IOleEmbeddedDataInfo > dataInfo)
 Adds a new OLE object to the end of a collection. More...
 
System::SharedPtr< IOleObjectFrameAddOleObjectFrame (float x, float y, float width, float height, System::String className, System::ArrayPtr< uint8_t > objectData)
 Adds a new OLE object to the end of a collection. More...
 
System::SharedPtr< IOleObjectFrameAddOleObjectFrame (float x, float y, float width, float height, System::String className, System::String path)
 Adds a new OLE object to the end of a collection. More...
 
System::SharedPtr< IOleObjectFrameInsertOleObjectFrame (int32_t index, float x, float y, float width, float height, System::SharedPtr< IOleEmbeddedDataInfo > dataInfo)
 Creates a new OLE object and inserts it to a collection at the specified index. More...
 
System::SharedPtr< IOleObjectFrameInsertOleObjectFrame (int32_t index, float x, float y, float width, float height, System::String className, System::ArrayPtr< uint8_t > objectData)
 Creates a new OLE object and inserts it to a collection at the specified index. More...
 
System::SharedPtr< IOleObjectFrameInsertOleObjectFrame (int32_t index, float x, float y, float width, float height, System::String className, System::String path)
 Creates a new OLE object and inserts it to a collection at the specified index. More...
 
System::SharedPtr< IVideoFrameAddVideoFrame (float x, float y, float width, float height, System::String fname)
 Adds a new video frame to the end of a collection. More...
 
System::SharedPtr< IVideoFrameAddVideoFrame (float x, float y, float width, float height, System::SharedPtr< IVideo > video)
 Adds a new video frame to the end of a collection. More...
 
System::SharedPtr< IVideoFrameInsertVideoFrame (int32_t index, float x, float y, float width, float height, System::String fname)
 Creates a new video frame and inserts it to a collection at the specified index. More...
 
System::SharedPtr< IAudioFrameAddAudioFrameCD (float x, float y, float width, float height)
 Adds an AudioFrame with CD to the end of collection. More...
 
System::SharedPtr< IAudioFrameInsertAudioFrameCD (int32_t index, float x, float y, float width, float height)
 Insert an AudioFrame with CD. More...
 
System::SharedPtr< IAudioFrameAddAudioFrameLinked (float x, float y, float width, float height, System::String fname)
 Adds a new audio frame with linked audio file to the end of a collection. More...
 
System::SharedPtr< IAudioFrameInsertAudioFrameLinked (int32_t index, float x, float y, float width, float height, System::String fname)
 Creates a new audio frame with linked audio file and inserts it to a collection at the specified index. More...
 
System::SharedPtr< IAudioFrameAddAudioFrameEmbedded (float x, float y, float width, float height, System::SharedPtr< System::IO::Stream > audio_stream)
 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...
 
System::SharedPtr< IAudioFrameInsertAudioFrameEmbedded (int32_t index, float x, float y, float width, float height, System::SharedPtr< System::IO::Stream > audio_stream)
 Insert an AudioFrame with embedded audio file. Embedded audio file sound can be a WAV only. More...
 
System::SharedPtr< IAudioFrameAddAudioFrameEmbedded (float x, float y, float width, float height, System::SharedPtr< IAudio > audio)
 Adds a new audio frame with embedded audio file to the end of a collection. It uses audio file from Presentation.Audios list. More...
 
System::SharedPtr< IAudioFrameInsertAudioFrameEmbedded (int32_t index, float x, float y, float width, float height, System::SharedPtr< IAudio > audio)
 Insert an AudioFrame with embedded audio file. It uses audio file from Presentation.Audios list. More...
 
int32_t IndexOf (System::SharedPtr< IShape > shape)
 Returns the zero-based index of the first occurrence of a shape in the collection. More...
 
System::ArrayPtr< System::SharedPtr< IShape > > ToArray ()
 Creates and returns an array with all shapse in it. More...
 
System::ArrayPtr< System::SharedPtr< IShape > > ToArray (int32_t startIndex, int32_t count)
 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.
More...
 
void Reorder (int32_t index, System::SharedPtr< IShape > shape)
 Moves a shape from the collection to the specified position. More...
 
void Reorder (int32_t index, const System::ArrayPtr< System::SharedPtr< IShape >> &shapes)
 Moves shapes from the collection to the specified position. Shapes will be placed starting from index in order they appear in list. More...
 
System::SharedPtr< IAutoShapeAddAutoShape (ShapeType shapeType, float x, float y, float width, float height)
 Creates a new AutoShape, tunes it from default template and adds it to the end of the collection. More...
 
System::SharedPtr< IAutoShapeAddAutoShape (ShapeType shapeType, float x, float y, float width, float height, bool createFromTemplate)
 Creates a new AutoShape and adds it to the end of the collection. More...
 
System::SharedPtr< IAutoShapeInsertAutoShape (int32_t index, ShapeType shapeType, float x, float y, float width, float height)
 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...
 
System::SharedPtr< IAutoShapeInsertAutoShape (int32_t index, ShapeType shapeType, float x, float y, float width, float height, bool createFromTemplate)
 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...
 
System::SharedPtr< IGroupShapeAddGroupShape ()
 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...
 
System::SharedPtr< IGroupShapeAddGroupShape (System::SharedPtr< ISvgImage > svgImage, float x, float y, float width, float height)
 Creates a new GroupShape, fills it with converted shapes from SVG and adds it to the end of the collection. More...
 
System::SharedPtr< IGroupShapeInsertGroupShape (int32_t index)
 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...
 
System::SharedPtr< IConnectorAddConnector (ShapeType shapeType, float x, float y, float width, float height)
 Creates a new Connector, tunes it from default template and adds it to the end of the collection. More...
 
System::SharedPtr< IConnectorAddConnector (ShapeType shapeType, float x, float y, float width, float height, bool createFromTemplate)
 Creates a new Connector and adds it to the end of the collection. More...
 
System::SharedPtr< IConnectorInsertConnector (int32_t index, ShapeType shapeType, float x, float y, float width, float height)
 Creates a new Connector, tunes it from default template and inserts it to the collection at the specified index. More...
 
System::SharedPtr< IConnectorInsertConnector (int32_t index, ShapeType shapeType, float x, float y, float width, float height, bool createFromTemplate)
 Creates a new Connector and inserts it to the collection at the specified index. More...
 
System::SharedPtr< IPictureFrameAddPictureFrame (ShapeType shapeType, float x, float y, float width, float height, System::SharedPtr< IPPImage > image)
 Creates a new PictureFrame and adds it to the end of the collection. More...
 
System::SharedPtr< IPictureFrameInsertPictureFrame (int32_t index, ShapeType shapeType, float x, float y, float width, float height, System::SharedPtr< IPPImage > image)
 Creates a new PictureFrame and inserts it to the collection at the specified index. More...
 
System::SharedPtr< ITableAddTable (float x, float y, System::ArrayPtr< double > columnWidths, System::ArrayPtr< double > rowHeights)
 Creates a new Table and adds it to the end of the collection. More...
 
System::SharedPtr< ITableInsertTable (int32_t index, float x, float y, System::ArrayPtr< double > columnWidths, System::ArrayPtr< double > rowHeights)
 Creates a new Table and inserts it to the collection at the specified index. More...
 
void RemoveAt (int32_t index)
 Removes the element at the specified index of the collection. More...
 
void Remove (System::SharedPtr< IShape > shape)
 Removes the first occurrence of a specific shape from the collection. More...
 
void Clear ()
 Removes all shapes from the collection. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< IShape > > > GetEnumerator ()
 Returns an enumerator that iterates through the collection. More...
 
System::SharedPtr< IShapeAddClone (System::SharedPtr< IShape > sourceShape, float x, float y, float width, float height)
 Adds a copy of a specified shape to the end of the collection. More...
 
System::SharedPtr< IShapeAddClone (System::SharedPtr< IShape > sourceShape, float x, float y)
 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...
 
System::SharedPtr< IShapeAddClone (System::SharedPtr< IShape > sourceShape)
 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...
 
System::SharedPtr< IShapeInsertClone (int32_t index, System::SharedPtr< IShape > sourceShape, float x, float y, float width, float height)
 Inserts a copy of a specified shape to specified position of the collection. More...
 
System::SharedPtr< IShapeInsertClone (int32_t index, System::SharedPtr< IShape > sourceShape, float x, float y)
 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...
 
System::SharedPtr< IShapeInsertClone (int32_t index, System::SharedPtr< IShape > sourceShape)
 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...
 
void CopyTo (System::ArrayPtr< System::SharedPtr< IShape >> array, int32_t index)
 
- Public Member Functions inherited from Aspose::Slides::IGenericCollection< System::SharedPtr< Aspose::Slides::IShape > >
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::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 refernce 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 int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () ASPOSE_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 (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Protected Member Functions

System::SharedPtr< GroupShapeget_ParentGroupInternal ()
 
 ShapeCollection (System::SharedPtr< GroupShape > parentImmediate)
 
void Add (System::SharedPtr< Shape > value)
 
void Insert (int32_t index, System::SharedPtr< Shape > value)
 
System::SharedPtr< ShapeAddRawShape ()
 
System::SharedPtr< Charts::ChartCreateTemplatedChart (Charts::ChartType type, bool initWithSample)
 Creates a new Chart and adds it to the end of the collection. More...
 
System::SharedPtr< Charts::ChartAddRawChart (Charts::ChartType type)
 
System::SharedPtr< Ink::InkDocument > AddRawInk ()
 
System::SharedPtr< SmartArt::SmartArtAddRawSmartArt ()
 
System::SharedPtr< SmartArt::ISmartArtInsertSmartArt (int32_t index, float x, float y, float width, float height, SmartArt::SmartArtLayoutType layoutType)
 
System::SharedPtr< SmartArt::SmartArtCreateTemplatedSmartArtObject (SmartArt::SmartArtLayoutType layoutType)
 
System::SharedPtr< OleObjectFrameCreateTemplatedOleObjectFrame (float width, float height, System::String className, System::ArrayPtr< uint8_t > objData)
 
System::SharedPtr< OleObjectFrameCreateTemplatedOleObjectFrame (float width, float height, System::SharedPtr< IOleEmbeddedDataInfo > dataInfo)
 
System::SharedPtr< OleObjectFrameCreateTemplatedOleObjectFrame (float width, float height, System::String className, System::String path)
 
System::SharedPtr< OleObjectFrameCreateTemplatedOleObjectFrame (float width, float height, System::String className)
 
System::SharedPtr< OleObjectFrameAddRawOleObjectFrame ()
 
System::SharedPtr< VideoFrameCreateTemplatedVideoFrame (System::String fname)
 
System::SharedPtr< VideoFrameAddRawVideoFrame ()
 
System::SharedPtr< VideoFrameCreateTemplatedVideoFrame (System::SharedPtr< IVideo > video)
 
System::SharedPtr< VideoFrameAddRawVideoFrame (System::SharedPtr< IVideo > video)
 
System::SharedPtr< PictureFrameCreateTemplatedPictureFrame (ShapeType preset, System::SharedPtr< IPPImage > image)
 
System::SharedPtr< AudioFrameCreateTemplatedAudioFrameCD ()
 
System::SharedPtr< AudioFrameAddRawAudioFrameCD ()
 
System::SharedPtr< AudioFrameCreateTemplatedAudioFrameLinked (System::String fname)
 
System::SharedPtr< AudioFrameAddRawAudioFrameLinked (System::String fname)
 
System::SharedPtr< AudioFrameCreateTemplatedAudioFrameEmbedded (System::SharedPtr< System::IO::Stream > audio_stream)
 
System::SharedPtr< AudioFrameCreateTemplatedAudioFrameEmbedded (System::SharedPtr< IAudio > audio)
 
System::SharedPtr< AudioFrameAddRawAudioFrameEmbedded (System::SharedPtr< IAudio > audio)
 
System::SharedPtr< LegacyDiagramAddRawLegacyDiagram ()
 
System::SharedPtr< AutoShapeAddBlankNonGroupableShape ()
 
System::SharedPtr< AutoShapeCreateTemplatedAutoShape (ShapeType preset, bool createFromTemplate)
 
System::SharedPtr< ConnectorCreateTemplatedConnector (ShapeType preset, bool createFromTemplate)
 
System::SharedPtr< TableCreateTemplatedTable (System::ArrayPtr< double > columnWidths, System::ArrayPtr< double > rowHeights, double &width, double &height)
 
System::SharedPtr< AutoShapeAddRawAutoShape ()
 
System::SharedPtr< GroupShapeAddRawGroupShape ()
 
System::SharedPtr< GroupShapeCreateTemplatedGroupShape ()
 
System::SharedPtr< GraphicalObjectAddRawGraphicalObject ()
 
System::SharedPtr< ConnectorAddRawConnector ()
 
System::SharedPtr< PictureFrameAddRawPictureFrame ()
 
System::SharedPtr< TableAddRawTable ()
 
System::SharedPtr< TableAddRawTable (System::ArrayPtr< double > columnWidths, System::ArrayPtr< double > rowHeights)
 

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...
 
- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. 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 ()
 Impleemnts C# typeof(System.Object) construct. More...
 

Detailed Description

Represents a collection of a shapes.

Constructor & Destructor Documentation

◆ ShapeCollection()

Aspose::Slides::ShapeCollection::ShapeCollection ( System::SharedPtr< GroupShape parentImmediate)
protected

Member Function Documentation

◆ Add()

void Aspose::Slides::ShapeCollection::Add ( System::SharedPtr< Shape value)
protected

◆ AddAudioFrameCD()

System::SharedPtr<IAudioFrame> Aspose::Slides::ShapeCollection::AddAudioFrameCD ( float  x,
float  y,
float  width,
float  height 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddAudioFrameEmbedded() [1/2]

System::SharedPtr<IAudioFrame> Aspose::Slides::ShapeCollection::AddAudioFrameEmbedded ( float  x,
float  y,
float  width,
float  height,
System::SharedPtr< System::IO::Stream audio_stream 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddAudioFrameEmbedded() [2/2]

System::SharedPtr<IAudioFrame> Aspose::Slides::ShapeCollection::AddAudioFrameEmbedded ( float  x,
float  y,
float  width,
float  height,
System::SharedPtr< IAudio audio 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddAudioFrameLinked()

System::SharedPtr<IAudioFrame> Aspose::Slides::ShapeCollection::AddAudioFrameLinked ( float  x,
float  y,
float  width,
float  height,
System::String  fname 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddAutoShape() [1/2]

System::SharedPtr<IAutoShape> Aspose::Slides::ShapeCollection::AddAutoShape ( ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddAutoShape() [2/2]

System::SharedPtr<IAutoShape> Aspose::Slides::ShapeCollection::AddAutoShape ( ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height,
bool  createFromTemplate 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddBlankNonGroupableShape()

System::SharedPtr<AutoShape> Aspose::Slides::ShapeCollection::AddBlankNonGroupableShape ( )
protected

◆ AddChart() [1/2]

System::SharedPtr<Charts::IChart> Aspose::Slides::ShapeCollection::AddChart ( Charts::ChartType  type,
float  x,
float  y,
float  width,
float  height 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddChart() [2/2]

System::SharedPtr<Charts::IChart> Aspose::Slides::ShapeCollection::AddChart ( Charts::ChartType  type,
float  x,
float  y,
float  width,
float  height,
bool  initWithSample 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddClone() [1/3]

System::SharedPtr<IShape> Aspose::Slides::ShapeCollection::AddClone ( System::SharedPtr< IShape sourceShape,
float  x,
float  y,
float  width,
float  height 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddClone() [2/3]

System::SharedPtr<IShape> Aspose::Slides::ShapeCollection::AddClone ( System::SharedPtr< IShape sourceShape,
float  x,
float  y 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddClone() [3/3]

System::SharedPtr<IShape> Aspose::Slides::ShapeCollection::AddClone ( System::SharedPtr< IShape sourceShape)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddConnector() [1/2]

System::SharedPtr<IConnector> Aspose::Slides::ShapeCollection::AddConnector ( ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddConnector() [2/2]

System::SharedPtr<IConnector> Aspose::Slides::ShapeCollection::AddConnector ( ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height,
bool  createFromTemplate 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddGroupShape() [1/2]

System::SharedPtr<IGroupShape> Aspose::Slides::ShapeCollection::AddGroupShape ( )
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddGroupShape() [2/2]

System::SharedPtr<IGroupShape> Aspose::Slides::ShapeCollection::AddGroupShape ( System::SharedPtr< ISvgImage svgImage,
float  x,
float  y,
float  width,
float  height 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddOleObjectFrame() [1/3]

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

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

This example demonstrates adding an OLE object to the end of a collection:

ArrayPtr<uint8_t> fileData = IO::File::ReadAllBytes(u"test.zip");
auto dataInfo = MakeObject<OleEmbeddedDataInfo>(fileData, u"zip");
auto oleObjectFrame = slide->get_Shapes()->AddOleObjectFrame(150.0f, 20.0f, 50.0f, 50.0f, dataInfo);
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddOleObjectFrame() [2/3]

System::SharedPtr<IOleObjectFrame> Aspose::Slides::ShapeCollection::AddOleObjectFrame ( float  x,
float  y,
float  width,
float  height,
System::String  className,
System::ArrayPtr< uint8_t >  objectData 
)
virtual

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

Deprecated:
Use method AddOleObjectFrame(float x, float y, float width, float height, IObjectData objectData). The method will be removed after release of version 20.05.
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.
objectDataOLE object's data.
Returns
Created OLE object.

Implements Aspose::Slides::IShapeCollection.

◆ AddOleObjectFrame() [3/3]

System::SharedPtr<IOleObjectFrame> Aspose::Slides::ShapeCollection::AddOleObjectFrame ( float  x,
float  y,
float  width,
float  height,
System::String  className,
System::String  path 
)
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.

The path is stored in the presentation as is. If a relative path is specified the corresponding file will be inaccessible when opening the presentation from a different directory.

Returns
Created OLE object.

Implements Aspose::Slides::IShapeCollection.

◆ AddPictureFrame()

System::SharedPtr<IPictureFrame> Aspose::Slides::ShapeCollection::AddPictureFrame ( ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height,
System::SharedPtr< IPPImage image 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddRawAudioFrameCD()

System::SharedPtr<AudioFrame> Aspose::Slides::ShapeCollection::AddRawAudioFrameCD ( )
protected

◆ AddRawAudioFrameEmbedded()

System::SharedPtr<AudioFrame> Aspose::Slides::ShapeCollection::AddRawAudioFrameEmbedded ( System::SharedPtr< IAudio audio)
protected

◆ AddRawAudioFrameLinked()

System::SharedPtr<AudioFrame> Aspose::Slides::ShapeCollection::AddRawAudioFrameLinked ( System::String  fname)
protected

◆ AddRawAutoShape()

System::SharedPtr<AutoShape> Aspose::Slides::ShapeCollection::AddRawAutoShape ( )
protected

◆ AddRawChart()

System::SharedPtr<Charts::Chart> Aspose::Slides::ShapeCollection::AddRawChart ( Charts::ChartType  type)
protected

◆ AddRawConnector()

System::SharedPtr<Connector> Aspose::Slides::ShapeCollection::AddRawConnector ( )
protected

◆ AddRawGraphicalObject()

System::SharedPtr<GraphicalObject> Aspose::Slides::ShapeCollection::AddRawGraphicalObject ( )
protected

◆ AddRawGroupShape()

System::SharedPtr<GroupShape> Aspose::Slides::ShapeCollection::AddRawGroupShape ( )
protected

◆ AddRawInk()

System::SharedPtr<Ink::InkDocument> Aspose::Slides::ShapeCollection::AddRawInk ( )
protected

◆ AddRawLegacyDiagram()

System::SharedPtr<LegacyDiagram> Aspose::Slides::ShapeCollection::AddRawLegacyDiagram ( )
protected

◆ AddRawOleObjectFrame()

System::SharedPtr<OleObjectFrame> Aspose::Slides::ShapeCollection::AddRawOleObjectFrame ( )
protected

◆ AddRawPictureFrame()

System::SharedPtr<PictureFrame> Aspose::Slides::ShapeCollection::AddRawPictureFrame ( )
protected

◆ AddRawShape()

System::SharedPtr<Shape> Aspose::Slides::ShapeCollection::AddRawShape ( )
protected

◆ AddRawSmartArt()

System::SharedPtr<SmartArt::SmartArt> Aspose::Slides::ShapeCollection::AddRawSmartArt ( )
protected

◆ AddRawTable() [1/2]

System::SharedPtr<Table> Aspose::Slides::ShapeCollection::AddRawTable ( )
protected

◆ AddRawTable() [2/2]

System::SharedPtr<Table> Aspose::Slides::ShapeCollection::AddRawTable ( System::ArrayPtr< double >  columnWidths,
System::ArrayPtr< double >  rowHeights 
)
protected

◆ AddRawVideoFrame() [1/2]

System::SharedPtr<VideoFrame> Aspose::Slides::ShapeCollection::AddRawVideoFrame ( )
protected

◆ AddRawVideoFrame() [2/2]

System::SharedPtr<VideoFrame> Aspose::Slides::ShapeCollection::AddRawVideoFrame ( System::SharedPtr< IVideo video)
protected

◆ AddSmartArt()

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

Add SmartArt diagram.

auto pres = MakeObject<Presentation>();
auto slide = pres->get_Slides()->idx_get(0);
auto smart = slide->get_Shapes()->AddSmartArt(0, 0, 400, 400, SmartArt::SmartArtLayoutType::BasicBlockList);
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

Implements Aspose::Slides::IShapeCollection.

◆ AddTable()

System::SharedPtr<ITable> Aspose::Slides::ShapeCollection::AddTable ( float  x,
float  y,
System::ArrayPtr< double >  columnWidths,
System::ArrayPtr< double >  rowHeights 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddVideoFrame() [1/2]

System::SharedPtr<IVideoFrame> Aspose::Slides::ShapeCollection::AddVideoFrame ( float  x,
float  y,
float  width,
float  height,
System::String  fname 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ AddVideoFrame() [2/2]

System::SharedPtr<IVideoFrame> Aspose::Slides::ShapeCollection::AddVideoFrame ( float  x,
float  y,
float  width,
float  height,
System::SharedPtr< IVideo video 
)
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 to add.

///

Returns
Created VideoFrame object.

Implements Aspose::Slides::IShapeCollection.

◆ Clear()

void Aspose::Slides::ShapeCollection::Clear ( )
virtual

Removes all shapes from the collection.

Implements Aspose::Slides::IShapeCollection.

◆ CopyTo()

void Aspose::Slides::ShapeCollection::CopyTo ( System::ArrayPtr< System::SharedPtr< IShape >>  array,
int32_t  index 
)

◆ CreateTemplatedAudioFrameCD()

System::SharedPtr<AudioFrame> Aspose::Slides::ShapeCollection::CreateTemplatedAudioFrameCD ( )
protected

◆ CreateTemplatedAudioFrameEmbedded() [1/2]

System::SharedPtr<AudioFrame> Aspose::Slides::ShapeCollection::CreateTemplatedAudioFrameEmbedded ( System::SharedPtr< System::IO::Stream audio_stream)
protected

◆ CreateTemplatedAudioFrameEmbedded() [2/2]

System::SharedPtr<AudioFrame> Aspose::Slides::ShapeCollection::CreateTemplatedAudioFrameEmbedded ( System::SharedPtr< IAudio audio)
protected

◆ CreateTemplatedAudioFrameLinked()

System::SharedPtr<AudioFrame> Aspose::Slides::ShapeCollection::CreateTemplatedAudioFrameLinked ( System::String  fname)
protected

◆ CreateTemplatedAutoShape()

System::SharedPtr<AutoShape> Aspose::Slides::ShapeCollection::CreateTemplatedAutoShape ( ShapeType  preset,
bool  createFromTemplate 
)
protected
Parameters
presetShape type.
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.

◆ CreateTemplatedChart()

System::SharedPtr<Charts::Chart> Aspose::Slides::ShapeCollection::CreateTemplatedChart ( Charts::ChartType  type,
bool  initWithSample 
)
protected

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

Parameters
typeType of chart.
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.

◆ CreateTemplatedConnector()

System::SharedPtr<Connector> Aspose::Slides::ShapeCollection::CreateTemplatedConnector ( ShapeType  preset,
bool  createFromTemplate 
)
protected
Parameters
presetShape type.
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.

◆ CreateTemplatedGroupShape()

System::SharedPtr<GroupShape> Aspose::Slides::ShapeCollection::CreateTemplatedGroupShape ( )
protected

◆ CreateTemplatedOleObjectFrame() [1/4]

System::SharedPtr<OleObjectFrame> Aspose::Slides::ShapeCollection::CreateTemplatedOleObjectFrame ( float  width,
float  height,
System::String  className,
System::ArrayPtr< uint8_t >  objData 
)
protected

◆ CreateTemplatedOleObjectFrame() [2/4]

System::SharedPtr<OleObjectFrame> Aspose::Slides::ShapeCollection::CreateTemplatedOleObjectFrame ( float  width,
float  height,
System::SharedPtr< IOleEmbeddedDataInfo dataInfo 
)
protected

◆ CreateTemplatedOleObjectFrame() [3/4]

System::SharedPtr<OleObjectFrame> Aspose::Slides::ShapeCollection::CreateTemplatedOleObjectFrame ( float  width,
float  height,
System::String  className,
System::String  path 
)
protected

◆ CreateTemplatedOleObjectFrame() [4/4]

System::SharedPtr<OleObjectFrame> Aspose::Slides::ShapeCollection::CreateTemplatedOleObjectFrame ( float  width,
float  height,
System::String  className 
)
protected

◆ CreateTemplatedPictureFrame()

System::SharedPtr<PictureFrame> Aspose::Slides::ShapeCollection::CreateTemplatedPictureFrame ( ShapeType  preset,
System::SharedPtr< IPPImage image 
)
protected

◆ CreateTemplatedSmartArtObject()

System::SharedPtr<SmartArt::SmartArt> Aspose::Slides::ShapeCollection::CreateTemplatedSmartArtObject ( SmartArt::SmartArtLayoutType  layoutType)
protected

◆ CreateTemplatedTable()

System::SharedPtr<Table> Aspose::Slides::ShapeCollection::CreateTemplatedTable ( System::ArrayPtr< double >  columnWidths,
System::ArrayPtr< double >  rowHeights,
double &  width,
double &  height 
)
protected

◆ CreateTemplatedVideoFrame() [1/2]

System::SharedPtr<VideoFrame> Aspose::Slides::ShapeCollection::CreateTemplatedVideoFrame ( System::String  fname)
protected

◆ CreateTemplatedVideoFrame() [2/2]

System::SharedPtr<VideoFrame> Aspose::Slides::ShapeCollection::CreateTemplatedVideoFrame ( System::SharedPtr< IVideo video)
protected

◆ get_Count()

int32_t Aspose::Slides::ShapeCollection::get_Count ( )
virtual

Gets the number of elements actually contained in the collection. Read-only int32_t.

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

◆ get_IsSynchronized()

bool Aspose::Slides::ShapeCollection::get_IsSynchronized ( )
virtual

Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only bool.

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

◆ get_Parent_Immediate()

System::SharedPtr<IDOMObject> Aspose::Slides::ShapeCollection::get_Parent_Immediate ( )
virtual

Returns Parent_Immediate object. Read-only IDOMObject.

Implements Aspose::Slides::IDOMObject.

◆ get_ParentGroup()

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

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

Implements Aspose::Slides::IShapeCollection.

◆ get_ParentGroupInternal()

System::SharedPtr<GroupShape> Aspose::Slides::ShapeCollection::get_ParentGroupInternal ( )
protected

◆ get_SyncRoot()

System::SharedPtr<System::Object> Aspose::Slides::ShapeCollection::get_SyncRoot ( )
virtual

Returns a synchronization root. Read-only object.

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

◆ GetEnumerator()

System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<IShape> > > Aspose::Slides::ShapeCollection::GetEnumerator ( )
virtual

Returns an enumerator that iterates through the collection.

Returns
A T:System::Collections::Generic::IEnumerator`1 that can be used to iterate through the collection.

Implements System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Slides::IShape > >.

◆ idx_get()

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

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

Implements Aspose::Slides::IShapeCollection.

◆ IndexOf()

int32_t Aspose::Slides::ShapeCollection::IndexOf ( System::SharedPtr< IShape shape)
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.

Implements Aspose::Slides::IShapeCollection.

◆ Insert()

void Aspose::Slides::ShapeCollection::Insert ( int32_t  index,
System::SharedPtr< Shape value 
)
protected

◆ InsertAudioFrameCD()

System::SharedPtr<IAudioFrame> Aspose::Slides::ShapeCollection::InsertAudioFrameCD ( int32_t  index,
float  x,
float  y,
float  width,
float  height 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertAudioFrameEmbedded() [1/2]

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

Insert an AudioFrame with embedded audio file. Embedded audio file sound can be a WAV only.

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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertAudioFrameEmbedded() [2/2]

System::SharedPtr<IAudioFrame> Aspose::Slides::ShapeCollection::InsertAudioFrameEmbedded ( int32_t  index,
float  x,
float  y,
float  width,
float  height,
System::SharedPtr< IAudio audio 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertAudioFrameLinked()

System::SharedPtr<IAudioFrame> Aspose::Slides::ShapeCollection::InsertAudioFrameLinked ( int32_t  index,
float  x,
float  y,
float  width,
float  height,
System::String  fname 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertAutoShape() [1/2]

System::SharedPtr<IAutoShape> Aspose::Slides::ShapeCollection::InsertAutoShape ( int32_t  index,
ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertAutoShape() [2/2]

System::SharedPtr<IAutoShape> Aspose::Slides::ShapeCollection::InsertAutoShape ( int32_t  index,
ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height,
bool  createFromTemplate 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertChart() [1/2]

System::SharedPtr<Charts::IChart> Aspose::Slides::ShapeCollection::InsertChart ( Charts::ChartType  type,
float  x,
float  y,
float  width,
float  height,
int32_t  index 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertChart() [2/2]

System::SharedPtr<Charts::IChart> Aspose::Slides::ShapeCollection::InsertChart ( Charts::ChartType  type,
float  x,
float  y,
float  width,
float  height,
int32_t  index,
bool  initWithSample 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertClone() [1/3]

System::SharedPtr<IShape> Aspose::Slides::ShapeCollection::InsertClone ( int32_t  index,
System::SharedPtr< IShape sourceShape,
float  x,
float  y,
float  width,
float  height 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertClone() [2/3]

System::SharedPtr<IShape> Aspose::Slides::ShapeCollection::InsertClone ( int32_t  index,
System::SharedPtr< IShape sourceShape,
float  x,
float  y 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertClone() [3/3]

System::SharedPtr<IShape> Aspose::Slides::ShapeCollection::InsertClone ( int32_t  index,
System::SharedPtr< IShape sourceShape 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertConnector() [1/2]

System::SharedPtr<IConnector> Aspose::Slides::ShapeCollection::InsertConnector ( int32_t  index,
ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertConnector() [2/2]

System::SharedPtr<IConnector> Aspose::Slides::ShapeCollection::InsertConnector ( int32_t  index,
ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height,
bool  createFromTemplate 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertGroupShape()

System::SharedPtr<IGroupShape> Aspose::Slides::ShapeCollection::InsertGroupShape ( int32_t  index)
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertOleObjectFrame() [1/3]

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

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

This example demonstrates inserting an OLE object at the second index:

ArrayPtr<uint8_t> fileData = IO::File::ReadAllBytes(u"test.zip");
auto dataInfo = MakeObject<OleEmbeddedDataInfo>(fileData, u"zip");
auto oleObjectFrame = slide->get_Shapes()->InsertOleObjectFrame(2, 150.0f, 20.0f, 50.0f, 50.0f, dataInfo);
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertOleObjectFrame() [2/3]

System::SharedPtr<IOleObjectFrame> Aspose::Slides::ShapeCollection::InsertOleObjectFrame ( int32_t  index,
float  x,
float  y,
float  width,
float  height,
System::String  className,
System::ArrayPtr< uint8_t >  objectData 
)
virtual

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

Deprecated:
Use method InsertOleObjectFrame(int index, float x, float y, float width, float height, IObjectData objectData). The method will be removed after release of version 20.05.
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.
objectDataOLE object's data.
Returns
Created OLE object.

Implements Aspose::Slides::IShapeCollection.

◆ InsertOleObjectFrame() [3/3]

System::SharedPtr<IOleObjectFrame> Aspose::Slides::ShapeCollection::InsertOleObjectFrame ( int32_t  index,
float  x,
float  y,
float  width,
float  height,
System::String  className,
System::String  path 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertPictureFrame()

System::SharedPtr<IPictureFrame> Aspose::Slides::ShapeCollection::InsertPictureFrame ( int32_t  index,
ShapeType  shapeType,
float  x,
float  y,
float  width,
float  height,
System::SharedPtr< IPPImage image 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertSmartArt()

System::SharedPtr<SmartArt::ISmartArt> Aspose::Slides::ShapeCollection::InsertSmartArt ( int32_t  index,
float  x,
float  y,
float  width,
float  height,
SmartArt::SmartArtLayoutType  layoutType 
)
protected

◆ InsertTable()

System::SharedPtr<ITable> Aspose::Slides::ShapeCollection::InsertTable ( int32_t  index,
float  x,
float  y,
System::ArrayPtr< double >  columnWidths,
System::ArrayPtr< double >  rowHeights 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ InsertVideoFrame()

System::SharedPtr<IVideoFrame> Aspose::Slides::ShapeCollection::InsertVideoFrame ( int32_t  index,
float  x,
float  y,
float  width,
float  height,
System::String  fname 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ Remove()

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

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

Parameters
shapeThe shape to remove from the collection.

Implements Aspose::Slides::IShapeCollection.

◆ RemoveAt()

void Aspose::Slides::ShapeCollection::RemoveAt ( int32_t  index)
virtual

Removes the element at the specified index of the collection.

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

Implements Aspose::Slides::IShapeCollection.

◆ Reorder() [1/2]

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

Moves a shape from the collection to the specified position.

Parameters
indexTarget index.
shapeShape to move.

Implements Aspose::Slides::IShapeCollection.

◆ Reorder() [2/2]

void Aspose::Slides::ShapeCollection::Reorder ( int32_t  index,
const System::ArrayPtr< System::SharedPtr< IShape >> &  shapes 
)
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.

Implements Aspose::Slides::IShapeCollection.

◆ ToArray() [1/2]

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

Creates and returns an array with all shapse in it.

Returns
Array of Shape

Implements Aspose::Slides::IShapeCollection.

◆ ToArray() [2/2]

System::ArrayPtr<System::SharedPtr<IShape> > Aspose::Slides::ShapeCollection::ToArray ( int32_t  startIndex,
int32_t  count 
)
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 Shape

Implements Aspose::Slides::IShapeCollection.