TargetSection
ISectionZoomFrame.TargetSection property
Gets or sets the section object that the Section Zoom object links to. Read/write ISection.
public ISection TargetSection { get; set; }
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | The property is set to null. |
| ArgumentException | The specified section has no starting slide, or its starting slide belongs to a different presentation than the current target slide. This exception also occurs if the specified section is not a member of a presentation’s section collection. |
Examples
Next example demonstrates changing target section and creates new image for the section zoom object:
[C#]
using (Presentation pres = new Presentation())
{
ISectionZoomFrame sectionZoomFrame = pres.Slides[0].Shapes.AddSectionZoomFrame(150, 20, 50, 50, pres.Sections[1]);
sectionZoomFrame.TargetSection = pres.Sections[2];
}
See Also
- interface ISection
- interface ISectionZoomFrame
- namespace Aspose.Slides
- assembly Aspose.Slides