menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface ISmartArtShapes - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface ISmartArtShapes

    Represents the collection of shapes within a SmartArt node.

    Inherited Members
    System.Collections.Generic.IEnumerable<Syncfusion.Presentation.ISmartArtShape>.GetEnumerator()
    Namespace: Syncfusion.Presentation
    Assembly: Syncfusion.Presentation.Base.dll
    Syntax
    public interface ISmartArtShapes : IEnumerable<ISmartArtShape>, IEnumerable

    Properties

    Item[Int32]

    Gets a ISmartArtShape instance at the specified index from the collection. Read-only.

    Declaration
    ISmartArtShape this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index

    Determines the index of the SmartArt shape.

    Property Value
    Type Description
    ISmartArtShape

    Returns an ISmartArtShape instance.

    Examples
     // Create an instance of PowerPoint Presentation
     IPresentation pptxDoc = Presentation.Create();
     //Add a blank slide to the Presentation
     ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank);
     //Add a BasicBlockList SmartArt to the slide at the specified size and position.
     ISmartArt smartArt = slide.Shapes.AddSmartArt(SmartArtType.BasicBlockList, 0, 0, 640, 426);
     //Gets the smart art shape collection from the node.
     ISmartArtShapes smartArts = smartArt.Nodes[0].Shapes;
     //Gets the first smart art shape from the collection.
     ISmartArtShape smartArtShape = smartArts[0];
     //Sets the fill color for the shape.
     smartArtShape.Fill.SolidFill.Color = ColorObject.DarkCyan; 
     //Save the PowerPoint Presentation.
     pptxDoc.Save("Sample.pptx");
     //Close the Presentation
     pptxDoc.Close();
     'Create an instance of PowerPoint Presentation
     Dim pptxDoc As IPresentation = Presentation.Create()
     'Add a blank slide to the Presentation
     Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank)
     'Add a BasicBlockList SmartArt to the slide at the specified size and position.
     Dim smartArt As ISmartArt = slide.Shapes.AddSmartArt(SmartArtType.BasicBlockList, 0, 0, 640, 426)
     'Gets the smart art shape collection from the node.
     Dim smartArts As ISmartArtShapes = smartArt.Nodes(0).Shapes
     'Gets the first smart art shape from the collection.
     Dim smartArtShape As ISmartArtShape = smartArts(0)
     'Sets the fill color for the shape.
     smartArtShape.Fill.SolidFill.Color = ColorObject.DarkCyan
     'Save the PowerPoint Presentation.
     pptxDoc.Save("Sample.pptx")
     'Close the Presentation
     pptxDoc.Close()

    Extension Methods

    EnumerableExtensions.Average<TSource>(IEnumerable<TSource>, Func<TSource, Int16>)
    EnumerableExtensions.Average<TSource>(IEnumerable<TSource>, Func<TSource, Nullable<Int16>>)
    EnumerableExtensions.Sum<TSource>(IEnumerable<TSource>, Func<TSource, Int16>)
    EnumerableExtensions.Sum<TSource>(IEnumerable<TSource>, Func<TSource, Nullable<Int16>>)
    EnumerableExtensions.Max<TSource>(IEnumerable<TSource>, Func<TSource, Int16>)
    EnumerableExtensions.Max<TSource>(IEnumerable<TSource>, Func<TSource, Nullable<Int16>>)
    EnumerableExtensions.Min<TSource>(IEnumerable<TSource>, Func<TSource, Int16>)
    EnumerableExtensions.Min<TSource>(IEnumerable<TSource>, Func<TSource, Nullable<Int16>>)
    EnumerableExtensions.OrderBy<T>(IEnumerable<T>, String, Func<String, Object, Object>)
    EnumerableExtensions.OrderByDescending<T>(IEnumerable<T>, String, Func<String, Object, Object>)
    EnumerableExtensions.OrderBy<T>(IEnumerable<T>, String, Func<String, Object, Object>, IComparer<Object>)
    EnumerableExtensions.OrderByDescending<T>(IEnumerable<T>, String, Func<String, Object, Object>, IComparer<Object>)
    EnumerableExtensions.GetElementType(IEnumerable)
    EnumerableExtensions.GetItemPropertyInfo(IEnumerable)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    FunctionalExtensions.IterateIndex<T>(IEnumerable<T>, Action<Int32, T>)
    FunctionalExtensions.IterateIndex<T>(IEnumerable<T>, Action<Int32, T>, Int32)
    FunctionalExtensions.Zip<TFirst, TSecond, TResult>(IEnumerable<TFirst>, IEnumerable<TSecond>, Func<TFirst, TSecond, TResult>)
    FunctionalExtensions.Fold<T, U>(IEnumerable<U>, Func<T, U, T>, T)
    FunctionalExtensions.FoldLeft<T, U>(IEnumerable<U>, Func<T, U, T>, T)
    FunctionalExtensions.FoldRight<T, U>(IEnumerable<U>, Func<T, U, T>, T)
    FunctionalExtensions.ToObservableCollection<T>(IEnumerable<T>)
    QueryableExtensions.OfQueryable(IEnumerable)
    QueryableExtensions.OfQueryable(IEnumerable, Type)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable, Type, List<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable<TElement>, List<SortDescriptor>, IEnumerable<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable<TElement>, List<SortDescriptor>, Dictionary<String, IComparer<Object>>, String[], IEnumerable<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable<TElement>, List<SortDescriptor>, Dictionary<String, IComparer<Object>>, List<String>, Func<TElement, Object>[])
    QueryableExtensions.GroupByMany<TElement>(IEnumerable<TElement>, List<SortDescriptor>, Func<TElement, Object>[])
    QueryableExtensions.GroupByMany<TElement>(IEnumerable<TElement>, Func<TElement, Object>[])
    QueryableExtensions.GroupByMany<TElement>(IEnumerable<TElement>, IEnumerable<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany(IEnumerable, Type, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Dictionary<String, IComparer<Object>>, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Func<String, Expression>, String[])
    PivotExtension.GroupByMany<TElement>(IEnumerable<TElement>, Int32, Func<TElement, Object>[])
    PivotExtension.GroupByMany<TElement>(IEnumerable<TElement>, IEnumerable<Func<TElement, Object>>)
    ChartExtensionUtils.DistinctBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved