Interface ISmartArt
Represents the smart art graphic with different smart art types.
Namespace: Syncfusion.Presentation
Assembly: Syncfusion.Presentation.UWP.dll
Syntax
public interface ISmartArt
Properties
Background
Gets a IFill object that represents the SmartArt background.
Declaration
IFill Background { get; }
Property Value
Type |
---|
IFill |
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, 100, 50, 640, 426);
//Sets the background color for the smart art shape
smartArt.Background.SolidFill.Color = ColorObject.AliceBlue;
//Save the 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, 100, 50, 640, 426)
'Sets the background color for the smart art shape
smartArt.Background.SolidFill.Color = ColorObject.AliceBlue
'Save the Presentation
pptxDoc.Save("Sample.pptx")
'Close the Presentation
pptxDoc.Close()
Layout
Gets a SmartArtType value that represents the layout associated with the SmartArt. Read-only.
Declaration
SmartArtType Layout { get; }
Property Value
Type |
---|
SmartArtType |
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, 100, 50, 640, 426);
//Sets the background color for the smart art shape
smartArt.Background.SolidFill.Color = ColorObject.AliceBlue;
//Gets the smart art layout.
SmartArtType smartArtType = smartArt.Layout;
//Save the 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, 100, 50, 640, 426)
'Sets the background color for the smart art shape
smartArt.Background.SolidFill.Color = ColorObject.AliceBlue
'Gets the smart art layout.
Dim layoutType As SmartArtType = smartArt.Layout
'Save the Presentation
pptxDoc.Save("Sample.pptx")
'Close the Presentation
pptxDoc.Close()
LineFormat
Gets an ILineFormat object that represents the line and arrowhead properties of the SmartArt. Read only.
Declaration
ILineFormat LineFormat { get; }
Property Value
Type |
---|
ILineFormat |
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, 100, 50, 640, 426);
//Sets the line format color for the smart art shape
smartArt.LineFormat.Fill.SolidFill.Color = ColorObject.Blue;
//Save the 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, 100, 50, 640, 426)
'Sets the line format color for the smart art shape
smartArt.LineFormat.Fill.SolidFill.Color = ColorObject.Blue
'Save the Presentation
pptxDoc.Save("Sample.pptx")
'Close the Presentation
pptxDoc.Close()
Nodes
Gets a ISmartArtNodes object that contains all the nodes within the SmartArt. Read-only.
Declaration
ISmartArtNodes Nodes { get; }
Property Value
Type |
---|
ISmartArtNodes |
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, 100, 50, 640, 426);
//Gets the smart art node collection.
ISmartArtNodes nodes = smartArt.Nodes;
//Get the nodes count.
int count = nodes.Count;
//Save the 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, 100, 50, 640, 426)
'Gets the smart art node collection.
Dim nodes As ISmartArtNodes = smartArt.Nodes
'Gets the number of nodes.
Dim count As Integer = smartArt.Nodes.Count
'Save the Presentation
pptxDoc.Save("Sample.pptx")
'Close the Presentation
pptxDoc.Close()