Syncfusion.Presentation.Base Represents the behavior properties. Gets a instance at the specified index from the collection. Read-only. Determines the index of the effect. Returns an instance. // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IPropertyEffect) { // Assign the property effect values IPropertyEffect propertyEffect = (behavior as IPropertyEffect); IBehaviorProperties behaviorProperties = propertyEffect.Properties; AnimationPropertyType animationProperty = behaviorProperties[0]; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is property effect If (TypeOf behavior Is PropertyEffect) Then 'Assign the property effect values Dim propertyEffect As PropertyEffect = TryCast(behavior,PropertyEffect) Dim behaviorProperties As IBehaviorProperties = propertyEffect.Properties Dim animationProperty As AnimationPropertyType = behaviorProperties(0) Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the count of behaviour list // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Fly, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IPropertyEffect) { // Assign the property effect values IPropertyEffect propertyEffect = (behavior as IPropertyEffect); IBehaviorProperties behaviorProperties = propertyEffect.Properties; int behaviorsCount = behaviorProperties.Count; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Fly, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is property effect If (TypeOf behavior Is PropertyEffect) Then 'Assign the property effect values Dim propertyEffect As PropertyEffect = TryCast(behavior,PropertyEffect) Dim behaviorProperties As IBehaviorProperties = propertyEffect.Properties Dim behaviorsCount As Integer = behaviorProperties.Count Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Connector class to represent the connector Represents an object in the drawing layer, such as an AutoShape, text box or picture. Represents an individual item in a slide. Creates a copy of the instance. Returns the cloned instance //Create a new presentation. IPresentation pptxDoc = Presentation.Create(); //Add a slide to the presentation. ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide ISlideItem slideItem = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Clone the slide item. ISlideItem clonedSlideItem = slideItem.Clone(); //Add the slide item to the shape collection. slide.Shapes.Add(clonedSlideItem); //Modifying the top position value. clonedSlideItem.Top = 250; //Add text content to the cloned slide item. (clonedSlideItem as IShape).TextBody.Text = "Cloned slide item"; //Saves the Presentation to the file system. pptxDoc.Save("Result.pptx"); //Closes the Presentation. pptxDoc.Close(); 'Create a new 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 rectangle to the slide Dim slideItem As ISlideItem = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Clone the slide item. Dim clonedSlideItem As ISlideItem = slideItem.Clone() 'Add the slide item to the shape collection. slide.Shapes.Add(clonedSlideItem) 'Modifying the top position value. clonedSlideItem.Top = 250 'Add text content to the cloned slide item. TryCast(clonedSlideItem, IShape).TextBody.Text = "Cloned slide item" 'Save the presentation pptxDoc.Save("Result.pptx") 'Close the presentation pptxDoc.Close() Gets or sets the item description. The description of the shape. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance for SlideItem ISlideItem slideItem = slide.Shapes[0]; //Set the description for slide item slideItem.Description = "This is a SlideItem"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance for SlideItem Dim slideItem As ISlideItem = slide.Shapes(0) 'Set the description for slide item slideItem.Description = "This is a SlideItem" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the slide item type. Read-only. The type of the slide item. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance for SlideItem ISlideItem slideItem = slide.Shapes[0]; //Set the description for slide item slideItem.Description = "This is a SlideItem"; //Set the title slideItem.Title = "SlideItem"; //Get the type of slide item, it is read only SlideItemType type = slideItem.SlideItemType; //Add the slide item to shape collection slide.Shapes.Add(slideItem); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance for SlideItem Dim slideItem As ISlideItem = slide.Shapes(0) 'Set the description for slide item slideItem.Description = "This is a SlideItem" 'Set the title slideItem.Title = "SlideItem" 'Get the type of slide item, it is read only Dim type As SlideItemType = slideItem.SlideItemType 'Add the slide item to shape collection slide.Shapes.Add(slideItem) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets height. The Height value ranges from 0 to 169056, in points. The height of the shape. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance for SlideItem ISlideItem slideItem = slide.Shapes[0]; //Set the height slideItem.Height = 200; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance for SlideItem Dim slideItem As ISlideItem = slide.Shapes(0) 'Set the height slideItem.Height = 200 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the boolean value which indicates whether the shape is hidden or not. true if hidden; otherwise, false. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance for SlideItem ISlideItem slideItem = slide.Shapes[0]; //Hide the shape from slide slideItem.Hidden = true; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance for SlideItem Dim slideItem As ISlideItem = slide.Shapes(0) 'Hide the shape from slide slideItem.Hidden = True 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets left position. The Left value ranges from -169056 to 169056, in points. The left position of the shape. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance for SlideItem ISlideItem slideItem = slide.Shapes[0]; //Set the Left slideItem.Left = 120; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance for SlideItem Dim slideItem As ISlideItem = slide.Shapes(0) 'Set the Left slideItem.Left = 120 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets an instance which represents the line and arrowhead properties. Read only. The line format object of the shape. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance for SlideItem ISlideItem slideItem = slide.Shapes[0]; //Set the length of begin arrow head of line format slideItem.LineFormat.BeginArrowheadLength = ArrowheadLength.Long; //Set the dash style of line format slideItem.LineFormat.DashStyle = LineDashStyle.DashDotDot; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance for SlideItem Dim slideItem As ISlideItem = slide.Shapes(0) 'Set the length of begin arrow head of line format slideItem.LineFormat.BeginArrowheadLength = ArrowheadLength.[Long] 'Set the dash style of line format slideItem.LineFormat.DashStyle = LineDashStyle.DashDotDot 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the shape name. The name of the shape. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance for SlideItem ISlideItem slideItem = slide.Shapes[0]; //Set the shape name for the slide item slideItem.ShapeName = "SlideItem"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance for SlideItem Dim slideItem As ISlideItem = slide.Shapes(0) 'Set the shape name for the slide item slideItem.ShapeName = "SlideItem" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the shape title. The title of the shape. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance for SlideItem ISlideItem slideItem = slide.Shapes[0]; //Set the title slideItem.Title = "SlideItem"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance for SlideItem Dim slideItem As ISlideItem = slide.Shapes(0) 'Set the title slideItem.Title = "SlideItem" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets top position. The Top value ranges from -169056 to 169056, in points. The top position of the shape. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance for SlideItem ISlideItem slideItem = slide.Shapes[0]; //Set the Top slideItem.Top = 100; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance for SlideItem Dim slideItem As ISlideItem = slide.Shapes(0) 'Set the Top slideItem.Top = 110 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets width. The Width value ranges from 0 to 169056, in points. The width of the shape. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance for SlideItem ISlideItem slideItem = slide.Shapes[0]; //Set the Width slideItem.Width = 250; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance for SlideItem Dim slideItem As ISlideItem = slide.Shapes(0) 'Set the Width slideItem.Width = 300 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Sets the hyperlink to the shape. Represents the address of the target hyperlink Returns an instance. The target can be a document path, web url, target slide index (index is valid from 0 to slides count – 1) or an email_id. //Create a new PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 0, 0, 100, 100); //Set the hypelink to the rectangle shape.SetHyperlink("www.syncfusion.com"); //Save the presentation presentation.Save("Hyperlink.pptx"); //Close the Presentation presentation.Close(); 'Create a new PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 0, 0, 100, 100) 'Set the hypelink to the rectangle shape.SetHyperlink("www.syncfusion.com") 'Save the presentation presentation__1.Save("Hyperlink.pptx") 'Close the Presentation presentation__1.Close() Removes the hyperlink from the current instance. //Load a PowerPoint presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Get the first slide from the presentation ISlide slide = presentation.Slides[0]; //Get the shape which have the hyperlink IShape shape = (IShape)slide.Shapes[0]; //Remove the hyperlink from the shape shape.RemoveHyperlink(); //Save the presentation presentation.Save("Hyperlink.pptx"); //Close the Presentation presentation.Close(); 'Load a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Open("Sample.pptx") 'Get the first slide from the presentation Dim slide As ISlide = presentation__1.Slides(0) 'Get the shape which have the hyperlink Dim shape As IShape = DirectCast(slide.Shapes(0), IShape) 'Remove the hyperlink from the shape shape.RemoveHyperlink() 'Save the presentation presentation__1.Save("Hyperlink.pptx") 'Close the Presentation presentation__1.Close() Gets the type of the AutoShape instance. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Retrieve the autoShape AutoShapeType autoShape = shape.AutoShapeType; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Retrieve the autoShape Dim autoShape As AutoShapeType = shape.AutoShapeType 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the connection site count of the shape. Read-only. // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Get the connection site count of the shape int connectionSiteCount = shape.ConnectionSiteCount; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Get the connection site count of the shape Dim connectionSiteCount As int = shape.ConnectionSiteCount; ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close Gets an instance that represents the fill formatting options of the shape. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Set solid fill as fill type for the shape shape.Fill.FillType = FillType.Solid; //Set the solid fill color shape.Fill.SolidFill.Color = ColorObject.Lime; //Save the presentation presentation.Save("FillShape.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Set solid fill as fill type for the shape shape.Fill.FillType = FillType.Solid 'Set the solid fill color shape.Fill.SolidFill.Color = ColorObject.Lime 'Save the presentation presentation__1.Save("FillShape.pptx") 'Close the presentation presentation__1.Close() Gets an instance that represents the text in the shape. Read-only. //Create a new presentation IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance for shape's textBody ITextBody textBody = shape.TextBody; //Add text to text body textBody.Paragraphs.Add().AddTextPart("Hello World"); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance for shape's textBody Dim textBody As ITextBody = shape.TextBody 'Add text to text body textBody.Paragraphs.Add().AddTextPart("Hello World") 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Returns an instance that represents the hyperlink for the specified shape. //Load a PowerPoint presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Get the first slide from the presentation ISlide slide = presentation.Slides[0]; //Get the shape which have the hyperlink IShape shape = (IShape)slide.Shapes[0]; //Get the hyperlink from the shape IHyperLink hyperLink = shape.Hyperlink; //Get the action type of the hyperlink HyperLinkType hypelinkType = hyperLink.Action; //Get the target slide of the hyperlink ISlide targetSlide = hyperLink.TargetSlide; //Get the url of the hyperlink string url = hyperLink.Url; //Save the presentation presentation.Save("Hyperlink.pptx"); //Close the Presentation presentation.Close(); 'Load a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Open("Sample.pptx") 'Get the first slide from the presentation Dim slide As ISlide = presentation__1.Slides(0) 'Get the shape which have the hyperlink Dim shape As IShape = DirectCast(slide.Shapes(0), IShape) 'Get the hyperlink from the shape Dim hyperLink As IHyperLink = shape.Hyperlink 'Get the action type of the hyperlink Dim hypelinkType As HyperLinkType = hyperLink.Action 'Get the target slide of the hyperlink Dim targetSlide As ISlide = hyperLink.TargetSlide 'Get the url of the hyperlink Dim url As String = hyperLink.Url 'Save the presentation presentation__1.Save("Hyperlink.pptx") 'Close the Presentation presentation__1.Close() Gets an object that contains the properties that are unique to placeholders. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Title); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Retrieve the place holder IPlaceholderFormat placeHolder = (slide.Shapes[0] as IShape).PlaceholderFormat; //Set the name of the place holder placeHolder.Name = "My Placeholder"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Title) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Retrieve the place holder Dim placeHolder As IPlaceholderFormat = TryCast(slide.Shapes(0), IShape).PlaceholderFormat 'Set the name of the place holder placeHolder.Name = "My Placeholder" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the number of degrees the specified shape is rotated. The rotation value ranges from -3600 degrees to 3600 degrees. The rotation angle of the shape. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Set the rotation value to the shape instance. shape.Rotation = 300; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Set the rotation value to the shape instance. shape.Rotation = 300 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Checks whether the corresponding shape is predefined shape Returns true, if corresponding shape is Predefined Shape; Otherwise false. Checks whether the corresponding shape is Custom Shape Returns true, if corresponding shape is Custom Shape; Otherwise false. Gets the Autoshape type of the corresponding shape. Returns AutoShapeType, if corresponding shape contains AutoshapeType. Gets the ShapeGuide values of the corresponding shape. Returns ShapeGuide, if corresponding shape contains ShapeGuide. Gets the Path2DList of the corresponding shape. Returns Path2DList, if corresponding shape contains Path2DList. Get the spacing value between the columns Get the number of columns in the shape. Split a single column text body as multi column text body. Represents a paragraph collection. Represent a text body bounds. Gets minimum height between first line of all the columns. Represents a layouted column info collection. Represents a paragraph collection. Returns minimum height between first line of all the columns. Split a single column into multi columns by shifting X and Y position of lines. Represents a paragraph collection. Represent a text body bounds. Create a column in TextBody. Represents a paragraph collection of text body. Represent a height of the text body. Represent a paragraph index of column. Represent a line index of paragraph. Returns a created ColumnInfo object. Gets a single column width of TextBody. Represents a bounds of TextBody. Returs a single column width of TextBody. Check whether current shape is having more than one GraphicsPath or not. Returns true, if it has more than one graphics path; Otherwise false. Check whether the shape paths are fit with in the shape bounds or not. Returns true, if its graphics path fit with in the shape bounds; Otherwise false. Compares the current Shape object with given Shape object. The Shape object to compare with the current instance. True if the Shape objects are equal; otherwise, false. Compares the bounds of the current Shape object with given Shape object. The Shape object to compare with the current instance. True if the bounds of the Shape objects are equal; otherwise, false. Sets the hyperlink to the textpart. Represents the address of the target hyperlink Returns an instance. The target can be a document path, web url, target slide, email_id. Removes the hyperlink from the current instance. Checked whether the group shape contains Horizontal flip. Group Shape. True if the group shape contains flip.. Checked whether the group shape contains Vertical flip. Group Shape. True if the group shape contains flip.. Get Horizontal flip count. Group Shape. Flip count. Flip count. Get Vertical flip count. Group Shape. Flip count. Flip count. Creates the from points array. The points. The rectangle. Parse TextBox Graphics data Skip whitespaces and moves the reader to the next node. The xml reader Compares the current Shape object with given Shape object. The Shape object to compare with the current instance. True if the Shape objects are equal; otherwise, false. Returns an instance that represents the hyperlink for the specified shape. Gets or Sets the hidden property of shape based on animation. Returns true if the shape have a transparant fill or light color line fill Returns a IPlaceholderFormat object that contains the properties that are unique to placeholders. Gets or sets the number of degrees the specified shape is rotated. The rotation value ranges from -3600 degrees to 3600 degrees. The rotation angle of the shape. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Set the rotation value to the shape instance. shape.Rotation = 300; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Set the rotation value to the shape instance. shape.Rotation = 300 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the shape guide The shape guide. Represent the connector in presentation Connect the begin portion of the connector with specified shape and site index Represent the shape instance that we want to connect with begin portion Represent the site index of the specified shape to connnect with // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add a Rectangle shape on the slide IShape rectangle = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200); // Add a Oval shape on the slide IShape oval = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250); // Add connector on the slide IConnector connector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10); // Set the begin connection connector.BeginConnect(rectangle, 2); // Set the end connection connector.EndConnect(oval, 3); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add Rectangle shape on the slide Dim rectangle As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200) ' Add Oval shape on the slide Dim oval As IShape = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250) ' Add connector on the slide Dim connector As IConnector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10) ' Set the begin connection connector.BeginConnect(rectangle, 2) ' Set the end connection connector.EndConnect(oval, 3) ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close Disconnect the begin connection of the connector // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add a Rectangle shape on the slide IShape rectangle = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200); // Add a Oval shape on the slide IShape oval = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250); // Add connector on the slide IConnector connector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10); // Set the begin connection connector.BeginConnect(rectangle, 2); // Set the end connection connector.EndConnect(oval, 3); //Disconnect the begin connection of the connector connector.BeginDisconnect(); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add Rectangle shape on the slide Dim rectangle As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200) ' Add Oval shape on the slide Dim oval As IShape = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250) ' Add connector on the slide Dim connector As IConnector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10) ' Set the begin connection connector.BeginConnect(rectangle, 2) ' Set the end connection connector.EndConnect(oval, 3) ' Disconnect the begin connection of the connector connector.BeginDisconnect(); ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close Connect the end portion of the connector with specified shape and site index Represent the shape instance that we want to connect with end portion Represent the site index of the specified shape to connnect with // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add a Rectangle shape on the slide IShape rectangle = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200); // Add a Oval shape on the slide IShape oval = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250); // Add connector on the slide IConnector connector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10); // Set the begin connection connector.BeginConnect(rectangle, 2); // Set the end connection connector.EndConnect(oval, 3); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add Rectangle shape on the slide Dim rectangle As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200) ' Add Oval shape on the slide Dim oval As IShape = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250) ' Add connector on the slide Dim connector As IConnector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10) ' Set the begin connection connector.BeginConnect(rectangle, 2) ' Set the end connection connector.EndConnect(oval, 3) ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close Disconnect the end connection of the connector // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add a Rectangle shape on the slide IShape rectangle = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200); // Add a Oval shape on the slide IShape oval = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250); // Add connector on the slide IConnector connector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10); // Set the begin connection connector.BeginConnect(rectangle, 2); // Set the end connection connector.EndConnect(oval, 3); //Disconnect the end connection of the connector connector.EndDisconnect(); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add Rectangle shape on the slide Dim rectangle As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200) ' Add Oval shape on the slide Dim oval As IShape = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250) ' Add connector on the slide Dim connector As IConnector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10) ' Set the begin connection connector.BeginConnect(rectangle, 2) ' Set the end connection connector.EndConnect(oval, 3) ' Disconnect the end connection of the connector connector.EndDisconnect(); ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close Update the bounds of modified connector // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add a Rectangle shape on the slide IShape rectangle = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200); // Add a Oval shape on the slide IShape oval = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250); // Add connector on the slide IConnector connector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10); // Set the begin connection connector.BeginConnect(rectangle, 2); // Set the end connection connector.EndConnect(oval, 3); //Update the bounds of inserted connector immediately connector.Update(); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add Rectangle shape on the slide Dim rectangle As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200) ' Add Oval shape on the slide Dim oval As IShape = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250) ' Add connector on the slide Dim connector As IConnector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10) ' Set the begin connection connector.BeginConnect(rectangle, 2) ' Set the end connection connector.EndConnect(oval, 3) ' Update the bounds of inserted connector immediately connector.Update(); ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close Gets or sets the type of IConnector instance. // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add a Rectangle shape on the slide IShape rectangle = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 20, 250, 250); // Add a Oval shape on the slide IShape oval = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 200, 250, 250); // Add connector on the slide IConnector connector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10); // Set the begin connection connector.BeginConnect(rectangle, 3); // Set the end connection connector.EndConnect(oval, 3); //Change the type of the connector connector.Type = ConnectorType.Curve; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add Rectangle shape on the slide Dim rectangle As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 20, 250, 250) ' Add Oval shape on the slide Dim oval As IShape = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 200, 250, 250) ' Add connector on the slide Dim connector As IConnector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10) ' Set the begin connection connector.BeginConnect(rectangle, 3) ' Set the end connection connector.EndConnect(oval, 3) 'Change the type of the connector connector.Type = ConnectorType.Curve ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close Gets the begin connected shape instance , if the connector begin point is connected. Read-only. // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add a Rectangle shape on the slide IShape rectangle = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200); // Add a Oval shape on the slide IShape oval = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250); // Add connector on the slide IConnector connector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10); // Set the begin connection connector.BeginConnect(rectangle, 2); // Set the end connection connector.EndConnect(oval, 3); // Get the begin connected shape IShape beginShape = connector.BeginConnectedShape; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add Rectangle shape on the slide Dim rectangle As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200) ' Add Oval shape on the slide Dim oval As IShape = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250) ' Add connector on the slide Dim connector As IConnector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10) ' Set the begin connection connector.BeginConnect(rectangle, 2) ' Set the end connection connector.EndConnect(oval, 3) ' Get the begin connected shape Dim beginShape As IShape = connector.BeginConnectedShape ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close Gets the begin connected site index, if the connector begin point is connected. Read-only. // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add a Rectangle shape on the slide IShape rectangle = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200); // Add a Oval shape on the slide IShape oval = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250); // Add connector on the slide IConnector connector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10); // Set the begin connection connector.BeginConnect(rectangle, 2); // Set the end connection connector.EndConnect(oval, 3); // Get the begin connected site index int beginSiteIndex = connector.BeginConnectionSiteIndex; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add Rectangle shape on the slide Dim rectangle As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200) ' Add Oval shape on the slide Dim oval As IShape = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250) ' Add connector on the slide Dim connector As IConnector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10) ' Set the begin connection connector.BeginConnect(rectangle, 2) ' Set the end connection connector.EndConnect(oval, 3) ' Get the begin connected site index Dim beginSiteIndex As int = connector.BeginConnectionSiteIndex ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close Gets the end connected shape instance , if the connector end point is connected. Read-only. // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add a Rectangle shape on the slide IShape rectangle = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200); // Add a Oval shape on the slide IShape oval = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250); // Add connector on the slide IConnector connector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10); // Set the begin connection connector.BeginConnect(rectangle, 2); // Set the end connection connector.EndConnect(oval, 3); // Get the end connected shape IShape endShape = connector.EndConnectedShape; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add Rectangle shape on the slide Dim rectangle As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200) ' Add Oval shape on the slide Dim oval As IShape = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250) ' Add connector on the slide Dim connector As IConnector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10) ' Set the begin connection connector.BeginConnect(rectangle, 2) ' Set the end connection connector.EndConnect(oval, 3) ' Get the end connected shape Dim endShape As IShape = connector.EndConnectedShape ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close Gets the end connected site index, if the connector end point is connected. Read-only. // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add a Rectangle shape on the slide IShape rectangle = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200); // Add a Oval shape on the slide IShape oval = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250); // Add connector on the slide IConnector connector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10); // Set the begin connection connector.BeginConnect(rectangle, 2); // Set the end connection connector.EndConnect(oval, 3); // Get the end connected site index int endSiteIndex = connector.EndConnectionSiteIndex; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add Rectangle shape on the slide Dim rectangle As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 300, 250, 200) ' Add Oval shape on the slide Dim oval As IShape = slide.Shapes.AddShape(AutoShapeType.Oval, 600, 10, 250, 250) ' Add connector on the slide Dim connector As IConnector = slide.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 10, 10) ' Set the begin connection connector.BeginConnect(rectangle, 2) ' Set the end connection connector.EndConnect(oval, 3) ' Get the end connected site index Dim endSiteIndex As int = connector.EndConnectionSiteIndex ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close Compares the current Shape object with given Shape object. The Shape object to compare with the current instance. True if the Shape objects are equal; otherwise, false. Get the direction of the given port Corners of the rectangle Thickness to represent the margin thickness Segmets represent the type of connector IConnectorSegment Angle is chosen internally Absolute angle: 180 Degree Absolute angle: 270 Degree or -90 Degree Absolute angle: 0 degree Absolute angle: 90 degree Relative Angle: 0 degree Relative Angle: 90 degree Relative Angle: 180 degree Relative Angle: 270 degree or -90 degree Represents the color effect. Represents the behavior. Get the behavior Accumulate value // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is ISetEffect) { // Assign the set effect values ISetEffect setEffect = (behavior as ISetEffect); setEffect.Accumulate = null; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is set effect If (TypeOf behavior Is SetEffect) Then 'Assign the set effect values Dim setEffect As SetEffect = TryCast(behavior,SetEffect) setEffect.Accumulate = Nothing Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the behavior Additive value // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is ISetEffect) { // Assign the set effect values ISetEffect setEffect = (behavior as ISetEffect); setEffect.Additive = BehaviorAdditiveType.NotDefined; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is set effect If (TypeOf behavior Is SetEffect) Then 'Assign the set effect values Dim setEffect As SetEffect = TryCast(behavior,SetEffect) setEffect.Additive = BehaviorAdditiveType.NotDefined Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the properties values of behavior // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is ISetEffect) { // Assign the set effect values ISetEffect setEffect = (behavior as ISetEffect); IBehaviorProperties setProperties = setEffect.Properties; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is set effect If (TypeOf behavior Is SetEffect) Then 'Assign the set effect values Dim setEffect As SetEffect = TryCast(behavior,SetEffect) Dim setProperties As IBehaviorProperties = setEffect.Properties Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the list of timing values of behavior // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is ISetEffect) { // Assign the set effect values ISetEffect setEffect = (behavior as ISetEffect); ITiming setTiming = setEffect.Timing; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is set effect If (TypeOf behavior Is SetEffect) Then 'Assign the set effect values Dim setEffect As SetEffect = TryCast(behavior,SetEffect) Dim setTiming As ITiming = setEffect.Timing Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the from color value of animation // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IColorEffect) { // Assign the color effect values IColorEffect colorEffect = (behavior as IColorEffect); IColor fromColor = colorEffect.From; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is color effect If (TypeOf behavior Is ColorEffect) Then 'Assign the color effect values Dim colorEffect As ColorEffect = TryCast(behavior,ColorEffect) Dim fromColor As IColor = colorEffect.From Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the to color value of animation // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IColorEffect) { // Assign the color effect values IColorEffect colorEffect = (behavior as IColorEffect); IColor toColor = colorEffect.To; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is color effect If (TypeOf behavior Is ColorEffect) Then 'Assign the color effect values Dim colorEffect As ColorEffect = TryCast(behavior,ColorEffect) Dim toColor As IColor = colorEffect.[To] Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the color offset by value of animation // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IColorEffect) { // Assign the color effect values IColorEffect colorEffect = (behavior as IColorEffect); IColorOffset byOffSet = colorEffect.By; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is color effect If (TypeOf behavior Is ColorEffect) Then 'Assign the color effect values Dim colorEffect As ColorEffect = TryCast(behavior,ColorEffect) IColorOffset byOffSet = colorEffect.By Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the colorspace value // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IColorEffect) { // Assign the color effect values IColorEffect colorEffect = (behavior as IColorEffect); colorEffect.ColorSpace = ColorSpace.HSL; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is color effect If (TypeOf behavior Is ColorEffect) Then 'Assign the color effect values Dim colorEffect As ColorEffect = TryCast(behavior,ColorEffect) colorEffect.ColorSpace = ColorSpace.HSL Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the direction of color value // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IColorEffect) { // Assign the color effect values IColorEffect colorEffect = (behavior as IColorEffect); colorEffect.Direction = ColorDirection.ClockWise; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is color effect If (TypeOf behavior Is ColorEffect) Then 'Assign the color effect values Dim colorEffect As ColorEffect = TryCast(behavior,ColorEffect) colorEffect.Direction = ColorDirection.ClockWise; Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the command effect type of animation // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is ICommandEffect) { // Assign the command effect values ICommandEffect commandEffect = (behavior as ICommandEffect); ICommandEffectType commandEffectType = commandEffect.Type; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is command effect If (TypeOf behavior Is CommandEffect) Then 'Assign the command effect values Dim commandEffect As CommandEffect = TryCast(behavior,CommandEffect) Dim commandEffectType As CommandEffectType = commandEffect.Type Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the command string value of animation // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is ICommandEffect) { // Assign the command effect values ICommandEffect commandEffect = (behavior as ICommandEffect); string commandString = commandEffect.CommandString; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is command effect If (TypeOf behavior Is CommandEffect) Then 'Assign the command effect values Dim commandEffect As CommandEffect = TryCast(behavior,CommandEffect) Dim commandString As String = commandEffect.CommandString Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the shape target value // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].TimeLine.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is ICommandEffect) { // Assign the command effect values ICommandEffect commandEffect = (behavior as ICommandEffect); IShape shapeTarget = commandEffect.ShapeTarget; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is command effect If (TypeOf behavior Is CommandEffect) Then 'Assign the command effect values Dim commandEffect As CommandEffect = TryCast(behavior,CommandEffect) Dim shapeTarget As IShape = commandEffect.ShapeTarget Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the filter effect. Get the filter effect reveal type // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IFilterEffect) { // Assign the filter effect values IFilterEffect filterEffect = (behavior as IFilterEffect); filterEffect.Reveal = FilterEffectRevealType.In; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is filter effect If (TypeOf behavior Is FilterEffect) Then 'Assign the filter effect values Dim filterEffect As FilterEffect = TryCast(behavior,FilterEffect) filterEffect.Reveal = FilterEffectRevealType.[In] Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the type of filter effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IFilterEffect) { // Assign the filter effect values IFilterEffect filterEffect = (behavior as IFilterEffect); filterEffect.Type = FilterEffectType.Dissolve; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is filter effect If (TypeOf behavior Is FilterEffect) Then 'Assign the filter effect values Dim filterEffect As FilterEffect = TryCast(behavior,FilterEffect) filterEffect.Type = FilterEffectType.Dissolve Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the subtype of filter effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IFilterEffect) { // Assign the filter effect values IFilterEffect filterEffect = (behavior as IFilterEffect); filterEffect.Subtype = SubtypeFilterEffect.None; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is filter effect If (TypeOf behavior Is FilterEffect) Then 'Assign the filter effect values Dim filterEffect As FilterEffect = TryCast(behavior,FilterEffect) filterEffect.Subtype = SubtypeFilterEffect.None Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the motion effect. Get the from value of motion effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); PointF fromValue = motionEffect.From; fromValue.X = 400; fromValue.Y = 500; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is MotionEffect) Then 'Assign the motion effect values Dim motionEffect As MotionEffect = TryCast(behavior,MotionEffect) Dim fromValue As PointF = motionEffect.From fromValue.X = 400 fromValue.Y = 500 Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the To value of motion effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); PointF toValue = motionEffect.To; toValue.X = 400; toValue.Y = 500; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is MotionEffect) Then 'Assign the motion effect values Dim motionEffect As MotionEffect = TryCast(behavior,MotionEffect) Dim toValue As PointF = motionEffect.To toValue.X = 400 toValue.Y = 500 Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the By value of motion effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); PointF byValue = motionEffect.By; byValue.X = 400; byValue.Y = 500; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is MotionEffect) Then 'Assign the motion effect values Dim motionEffect As MotionEffect = TryCast(behavior,MotionEffect) Dim byValue As PointF = motionEffect.By byValue.X = 400 byValue.Y = 500 Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the rotation center value of motion effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); PointF rotationValue = motionEffect.RotationCenter; rotationValue.X = 400; rotationValue.Y = 500; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is MotionEffect) Then 'Assign the motion effect values Dim motionEffect As MotionEffect = TryCast(behavior,MotionEffect) Dim rotationValue As PointF = motionEffect.RotationCenter rotationValue.X = 400 rotationValue.Y = 500 Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the origin type of motion effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); motionEffect.Origin = MotionOriginType.Layout; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is MotionEffect) Then 'Assign the motion effect values Dim motionEffect As MotionEffect = TryCast(behavior,MotionEffect) motionEffect.Origin = MotionOriginType.Layout Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the path value of the motion effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); IMotionPath path = (motionEffect.Path as IMotionPath); path[0].CommandType = MotionCommandPathType.MoveTo; path[0].IsRelative = false; path[0].PointsType = MotionPathPointsType.Auto; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is MotionEffect) Then 'Assign the motion effect values Dim motionEffect As MotionEffect = TryCast(behavior,MotionEffect) Dim path As MotionPath = TryCast(motionEffect.Path, MotionPath) path(0).CommandType = MotionCommandPathType.MoveTo; path(0).IsRelative = false; path(0).PointsType = MotionPathPointsType.Auto; Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the path edit mode of motion effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); motionEffect.PathEditMode = MotionPathEditMode.Relative; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is MotionEffect) Then 'Assign the motion effect values Dim motionEffect As MotionEffect = TryCast(behavior,MotionEffect) motionEffect.PathEditMode = MotionPathEditMode.Relative Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the Angle value from the motion animation effect. // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); motionEffect.Angle = 30; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is MotionEffect) Then 'Assign the motion effect values Dim motionEffect As MotionEffect = TryCast(behavior,MotionEffect) motionEffect.Angle = 30 Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the property effect. Get the from value of property effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Flip, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IPropertyEffect) { // Assign the property effect values IPropertyEffect propertyEffect = (behavior as IPropertyEffect); propertyEffect.From = "(#ppt_x*2)"; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Flip, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is property effect If (TypeOf behavior Is PropertyEffect) Then 'Assign the property effect values Dim propertyEffect As PropertyEffect = TryCast(behavior,PropertyEffect) propertyEffect.From = "(#ppt_x*2)" Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the To value of property effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Flip, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IPropertyEffect) { // Assign the property effect values IPropertyEffect propertyEffect = (behavior as IPropertyEffect); propertyEffect.To = "1.5"; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Flip, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is property effect If (TypeOf behavior Is PropertyEffect) Then 'Assign the property effect values Dim propertyEffect As PropertyEffect = TryCast(behavior,PropertyEffect) propertyEffect.To = "1.5" Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the By value of property effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Flip, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IPropertyEffect) { // Assign the property effect values IPropertyEffect propertyEffect = (behavior as IPropertyEffect); propertyEffect.By = "(#ppt_w*2)"; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Flip, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is property effect If (TypeOf behavior Is PropertyEffect) Then 'Assign the property effect values Dim propertyEffect As PropertyEffect = TryCast(behavior,PropertyEffect) propertyEffect.By = "(#ppt_w*2)" Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the Value type of property effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Flip, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IPropertyEffect) { // Assign the property effect values IPropertyEffect propertyEffect = (behavior as IPropertyEffect); propertyEffect.ValueType = PropertyValueType.String; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Flip, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is property effect If (TypeOf behavior Is PropertyEffect) Then 'Assign the property effect values Dim propertEffect As PropertyEffect = TryCast(behavior,PropertyEffect) propertyEffect.ValueType = PropertyValueType.[String] Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the Calcmode value of property effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Fly, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IPropertyEffect) { // Assign the property effect values IPropertyEffect propertyEffect = (behavior as IPropertyEffect); propertyEffect.CalcMode = PropertyCalcModeType.Formula; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Fly, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is property effect If (TypeOf behavior Is PropertyEffect) Then 'Assign the property effect values Dim propertyEffect As PropertyEffect = TryCast(behavior,PropertyEffect) propertyEffect.CalcMode = PropertyCalcModeType.Formula Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the Points value of property effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Fly, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IPropertyEffect) { // Assign the property effect values IPropertyEffect propertyEffect = (behavior as IPropertyEffect); IAnimationPoints points = propertyEffect.Points; points[0].Formula = "0.5"; points[0].Time = 90; points[0].Value = "#ppt_x"; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Fly, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is property effect If (TypeOf behavior Is PropertyEffect) Then 'Assign the property effect values Dim propertyEffect As PropertyEffect = TryCast(behavior,PropertyEffect) Dim points As IAnimationPoints = propertyEffect.Points points(0).Formula = "0.5" points(0).Time = 90 points(0).Value = "#ppt_x" Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the rotation effect. Get the from value of rotation effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Teeter, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IRotationEffect) { // Assign the rotation effect values IRotationEffect rotationEffect = (behavior as IRotationEffect); rotationEffect.From = 10000; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Teeter, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is rotation effect If (TypeOf behavior Is RotationEffect) Then 'Assign the rotation effect values Dim rotationEffect As RotationEffect = TryCast(behavior,RotationEffect) rotationEffect.From = 10000 Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the To value of rotation effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Teeter, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IRotationEffect) { // Assign the rotation effect values IRotationEffect rotationEffect = (behavior as IRotationEffect); rotationEffect.To = 15000; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Teeter, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is rotation effect If (TypeOf behavior Is RotationEffect) Then 'Assign the rotation effect values Dim rotationEffect As RotationEffect = TryCast(behavior,RotationEffect) rotationEffect.To = 15000 Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the By value of rotation effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Teeter, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IRotationEffect) { // Assign the rotation effect values IRotationEffect rotationEffect = (behavior as IRotationEffect); rotationEffect.By = 20000; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Teeter, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is rotation effect If (TypeOf behavior Is RotationEffect) Then 'Assign the scale effect values Dim rotationEffect As RotationEffect = TryCast(behavior,RotationEffect) rotationEffect.By = 20000 Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the scale effect. Get the ZoomContent value of Scale effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IScaleEffect) { // Assign the scale effect values IScaleEffect scaleEffect = (behavior as IScaleEffect); scaleEffect.ZoomContent = false; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is scale effect If (TypeOf behavior Is ScaleEffect) Then 'Assign the scale effect values Dim scaleEffect As ScaleEffect = TryCast(behavior,ScaleEffect) scaleEffect.ZoomContent = False Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the From value of scale effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IScaleEffect) { // Assign the scale effect values IScaleEffect scaleEffect = (behavior as IScaleEffect); PointF point = new PointF(); point.X = 400; point.Y = 500; scaleEffect.From = point; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors If TypeOf behavior Is ScaleEffect Then 'Assign the scale effect values Dim scaleEffect As ScaleEffect = TryCast(behavior, ScaleEffect) Dim point As New PointF() point.X = 400 point.Y = 500 scaleEffect.From = point Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the To value of scale effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IScaleEffect) { // Assign the scale effect values IScaleEffect scaleEffect = (behavior as IScaleEffect); PointF point = new PointF(); point.X = 400; point.Y = 500; scaleEffect.To = point; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is scale effect If (TypeOf behavior Is ScaleEffect) Then 'Assign the scale effect values Dim scaleEffect As ScaleEffect = TryCast(behavior, ScaleEffect) Dim point As New PointF() point.X = 400 point.Y = 500 scaleEffect.[To] = point Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the By value of scale effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IScaleEffect) { // Assign the scale effect values IScaleEffect scaleEffect = (behavior as IScaleEffect); PointF point = new PointF(); point.X = 400; point.Y = 500; scaleEffect.By = point; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.GrowShrink, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is scale effect If (TypeOf behavior Is ScaleEffect) Then 'Assign the scale effect values Dim scaleEffect As ScaleEffect = TryCast(behavior, ScaleEffect) Dim point As New PointF() point.X = 400 point.Y = 500 scaleEffect.By = point Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the set effect. Get the To value of set effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is ISetEffect) { // Assign the set effect values ISetEffect setEffect = (behavior as ISetEffect); setEffect.To = "solid"; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is set effect If (TypeOf behavior Is SetEffect) Then 'Assign the set effect values Dim setEffect As SetEffect = TryCast(behavior,SetEffect) setEffect.[To] = "solid" Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the size and bounds of notes. Gets or sets the height, in percentage. Specifies a collection of sections in a presentation. Adds a new section at the last index position and returns the instance of the newly created section. Returns the instance. //Creates a PowerPoint presentation IPresentation presentation = Presentation.Create(); //Adds a section to the PowerPoint presentation ISection section = presentation.Sections.Add(); //Sets a name to the created section section.Name = "SectionDemo"; //Adds a slide to the created section ISlide slide = section.AddSlide(SlideLayoutType.Blank); //Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo"); //Saves the PowerPoint presentation presentation.Save("Section.pptx"); 'Creates a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Adds a section to the PowerPoint presentation Dim section As ISection = presentation__1.Sections.Add() 'Sets a name to the created section section.Name = "SectionDemo" 'Adds a slide to the created section Dim slide As ISlide = section.AddSlide(SlideLayoutType.Blank) 'Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo") 'Saves the PowerPoint presentation presentation__1.Save("Section.pptx") Removes all the sections in the presentation. //Creates a PowerPoint presentation IPresentation presentation = Presentation.Create(); //Adds a section to the PowerPoint presentation ISection section = presentation.Sections.Add(); //Adds a slide to the created section ISlide slide = section.AddSlide(SlideLayoutType.Blank); //Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo"); //Removes the sections presentation.Sections.Clear(); //Saves the PowerPoint presentation presentation.Save("Section.pptx"); 'Creates a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Adds a section to the PowerPoint presentation Dim section As ISection = presentation__1.Sections.Add() 'Adds a slide to the created section Dim slide As ISlide = section.AddSlide(SlideLayoutType.Blank) 'Removes the sections presentation.Sections.Clear() 'Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo") 'Saves the PowerPoint presentation presentation__1.Save("Section.pptx") Inserts an element into the section collection at the specified index. The zero-based index at which section should be inserted. The section instance to insert. //Creates a PowerPoint presentation IPresentation presentation = Presentation.Create(); //Adds a section to the PowerPoint presentation ISection section1 = presentation.Sections.Add(); //Adds a section to the PowerPoint presentation ISection section2 = presentation.Sections.Add(); //Adds a slide to the created section ISlide slide = section1.AddSlide(SlideLayoutType.Blank); //Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo"); //Insert a section at the specified index. presentation.Sections.Insert(0,section2); //Saves the PowerPoint presentation presentation.Save("Section.pptx"); 'Creates a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Adds a section to the PowerPoint presentation Dim section1 As ISection = presentation__1.Sections.Add() 'Adds a section to the PowerPoint presentation Dim section2 As ISection = presentation__1.Sections.Add() 'Adds a slide to the created section Dim slide As ISlide = section.AddSlide(SlideLayoutType.Blank) 'Insert a section at the specified index presentation.Sections.Insert(0,section2) 'Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo") 'Saves the PowerPoint presentation presentation__1.Save("Section.pptx") Removes the first occurrence of a specified section from the section collection. Represent the instance to be removed. //Creates a PowerPoint presentation IPresentation presentation = Presentation.Create(); //Adds a section to the PowerPoint presentation ISection section1 = presentation.Sections.Add(); //Adds a section to the PowerPoint presentation ISection section2 = presentation.Sections.Add(); //Adds a slide to the created section ISlide slide = section1.AddSlide(SlideLayoutType.Blank); //Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo"); //Remove the section. presentation.Sections.Remove(section2); //Saves the PowerPoint presentation presentation.Save("Section.pptx"); 'Creates a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Adds a section to the PowerPoint presentation Dim section1 As ISection = presentation__1.Sections.Add() 'Adds a section to the PowerPoint presentation Dim section2 As ISection = presentation__1.Sections.Add() 'Adds a slide to the created section Dim slide As ISlide = section.AddSlide(SlideLayoutType.Blank) 'Remove the section presentation.Sections.Remove(section2) 'Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo") 'Saves the PowerPoint presentation presentation__1.Save("Section.pptx") Removes the section at the specified index, from the section collection. Represents the index at which the section is to be removed. //Creates a PowerPoint presentation IPresentation presentation = Presentation.Create(); //Adds a section to the PowerPoint presentation ISection section1 = presentation.Sections.Add(); //Adds a section to the PowerPoint presentation ISection section2 = presentation.Sections.Add(); //Adds a slide to the created section ISlide slide = section1.AddSlide(SlideLayoutType.Blank); //Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo"); //Remove the section at the specified index. presentation.Sections.RemoveAt(1); //Saves the PowerPoint presentation presentation.Save("Section.pptx"); 'Creates a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Adds a section to the PowerPoint presentation Dim section1 As ISection = presentation__1.Sections.Add() 'Adds a section to the PowerPoint presentation Dim section2 As ISection = presentation__1.Sections.Add() 'Adds a slide to the created section Dim slide As ISlide = section.AddSlide(SlideLayoutType.Blank) 'Remove the section at the specified index presentation.Sections.RemoveAt(1) 'Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo") 'Saves the PowerPoint presentation presentation__1.Save("Section.pptx") Returns the number of instance in the section collection. Read-only. //Creates a PowerPoint presentation IPresentation presentation = Presentation.Create(); //Adds a section to the PowerPoint presentation ISection section = presentation.Sections.Add(); //Adds a slide to the created section ISlide slide = section.AddSlide(SlideLayoutType.Blank); //Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo"); //Get the count of the section in a presentation int count = presentation.Sections.Count; //Saves the PowerPoint presentation presentation.Save("Section.pptx"); 'Creates a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Adds a section to the PowerPoint presentation Dim section As ISection = presentation__1.Sections.Add() 'Adds a slide to the created section Dim slide As ISlide = section.AddSlide(SlideLayoutType.Blank) 'Get the count of the section in a presentation int count = presentation.Sections.Count 'Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo") 'Saves the PowerPoint presentation presentation__1.Save("Section.pptx") Gets the instance at the specified index in section collection. Read-only. The index to locate the section. Returns the section at the specified index in section collection. //Creates a PowerPoint presentation IPresentation presentation = Presentation.Create(); //Adds a section to the PowerPoint presentation ISection section1 = presentation.Sections.Add(); //Adds a section to the PowerPoint presentation presentation.Sections.Add(); //Adds a slide to the created section ISlide slide = section1.AddSlide(SlideLayoutType.Blank); //Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo"); //Get the section ISection section2 = presentation.Sections[1]; //Saves the PowerPoint presentation presentation.Save("Section.pptx"); 'Creates a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Adds a section to the PowerPoint presentation Dim section1 As ISection = presentation__1.Sections.Add() 'Adds a section to the PowerPoint presentation presentation__1.Sections.Add() 'Adds a slide to the created section Dim slide As ISlide = section.AddSlide(SlideLayoutType.Blank) 'Get the section Dim section2 As ISection = presentation.Sections(1) 'Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo") 'Saves the PowerPoint presentation presentation__1.Save("Section.pptx") Specifies a section in the presentation Moves the specified section to the specified index position within the presentation. The position at which the section is to be moved. //Creates a PowerPoint presentation IPresentation presentation = Presentation.Create(); //Adds a section to the PowerPoint presentation ISection section = presentation.Sections.Add(); //Adds a section to the PowerPoint presentation presentation.Sections.Add(); //Adds a section to the PowerPoint presentation presentation.Sections.Add(); //Sets a name to the created section section.Name = "SectionDemo"; //Adds a slide to the created section ISlide slide = section.AddSlide(SlideLayoutType.Blank); //Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo"); // Move the section at the specified index presentation.Sections[1].Move(2); //Saves the PowerPoint presentation presentation.Save("Section.pptx"); 'Creates a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Adds a section to the PowerPoint presentation Dim section As ISection = presentation__1.Sections.Add() 'Adds a section to the PowerPoint presentation presentation__1.Sections.Add() 'Adds a section to the PowerPoint presentation presentation__1.Sections.Add() 'Sets a name to the created section section.Name = "SectionDemo" 'Adds a slide to the created section Dim slide As ISlide = section.AddSlide(SlideLayoutType.Blank) 'Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo") 'Move the section at the specified index presentation.Sections(2).Move(3) 'Saves the PowerPoint presentation presentation__1.Save("Section.pptx") Creates a slide with the specified layout type and adds the new slide to the end of section. Specifies the slide layout type. Returns the newly created instance. //Creates a PowerPoint presentation IPresentation presentation = Presentation.Create(); //Adds a section to the PowerPoint presentation ISection section = presentation.Sections.Add(); //Sets a name to the created section section.Name = "SectionDemo"; //Adds a slide to the created section ISlide slide = section.AddSlide(SlideLayoutType.Blank); //Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo"); //Saves the PowerPoint presentation presentation.Save("Section.pptx"); 'Creates a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Adds a section to the PowerPoint presentation Dim section As ISection = presentation__1.Sections.Add() 'Sets a name to the created section section.Name = "SectionDemo" 'Adds a slide to the created section Dim slide As ISlide = section.AddSlide(SlideLayoutType.Blank) 'Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo") 'Saves the PowerPoint presentation presentation__1.Save("Section.pptx") Inserts an element into the slide collection at the specified index within the section. The zero-based index at which the section should be inserted. The section instance to be inserted. //Creates a PowerPoint presentation IPresentation presentation = Presentation.Create(); //Adds a section to the PowerPoint presentation ISection section = presentation.Sections.Add(); //Adds a slide to the created section ISlide slide1 = section.AddSlide(SlideLayoutType.Blank); //Adds a slide to the created section ISlide slide2 = section.AddSlide(SlideLayoutType.Blank); //Insert a slide at the specified index section.InsertSlide(0,slide2); //Adds a text box to the slide slide1.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo"); //Saves the PowerPoint presentation presentation.Save("Section.pptx"); 'Creates a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Adds a section to the PowerPoint presentation Dim section As ISection = presentation__1.Sections.Add() 'Sets a name to the created section section.Name = "SectionDemo" 'Adds a slide to the created section Dim slide1 As ISlide = section.AddSlide(SlideLayoutType.Blank) 'Adds a slide to the created section Dim slide2 As ISlide = section.AddSlide(SlideLayoutType.Blank) //Insert a slide at the specified index section.InsertSlide(0,slide2); 'Adds a text box to the slide slide1.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo") 'Saves the PowerPoint presentation presentation__1.Save("Section.pptx") Creates an independent copy of instance. Returns the instance. //Creates a PowerPoint presentation1 IPresentation presentation1 = Presentation.Create(); //Creates a PowerPoint presentation2 IPresentation presentation2 = Presentation.Create(); //Adds a section to the PowerPoint presentation ISection section = presentation1.Sections.Add(); //Adds a slide to the created section ISlide slide = section.AddSlide(SlideLayoutType.Blank); //Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo"); //Clones the slides in 3rd section ISlides slides = presentation1.Sections[0].Clone(); //Iterates the cloned slides and adds the slides to the destination presentation foreach (ISlide slide1 in slides) presentation2.Slides.Add(slide1); //Saves the PowerPoint presentation presentation2.Save("Section.pptx"); 'Creates a PowerPoint presentation1 Dim presentation1 As IPresentation = Presentation.Create() 'Creates a PowerPoint presentation2 Dim presentation2 As IPresentation = Presentation.Create() 'Adds a section to the PowerPoint presentation Dim section As ISection = presentation1.Sections.Add() 'Adds a slide to the created section Dim slide As ISlide = section.AddSlide(SlideLayoutType.Blank) 'Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo") 'Clones the slides in 3rd section Dim slides As ISlides = presentation.Sections(1).Clone() 'Iterates the cloned slides and adds the slides to the destination presentation For Each slide1 As ISlide In slides presentation2.Slides.Add(slide1) Next 'Saves the PowerPoint presentation presentation2.Save("Section.pptx") Gets or sets the name of the specified section. One or more sections may share a same name within the presentation. //Creates a PowerPoint presentation IPresentation presentation = Presentation.Create(); //Adds a section to the PowerPoint presentation ISection section = presentation.Sections.Add(); //Sets a name to the created section section.Name = "SectionDemo"; //Adds a slide to the created section ISlide slide = section.AddSlide(SlideLayoutType.Blank); //Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo"); //Saves the PowerPoint presentation presentation.Save("Section.pptx"); 'Creates a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Adds a section to the PowerPoint presentation Dim section As ISection = presentation__1.Sections.Add() 'Sets a name to the created section section.Name = "SectionDemo" 'Adds a slide to the created section Dim slide As ISlide = section.AddSlide(SlideLayoutType.Blank) 'Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo") 'Saves the PowerPoint presentation presentation__1.Save("Section.pptx") Gets the number of slides in the specified section. Read-only. //Creates a PowerPoint presentation IPresentation presentation = Presentation.Create(); //Adds a section to the PowerPoint presentation ISection section = presentation.Sections.Add(); //Sets a name to the created section section.Name = "SectionDemo"; //Adds a slide to the created section ISlide slide = section.AddSlide(SlideLayoutType.Blank); //Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo"); //Gets the number of slides in the specified section int slidesCount = section.SlidesCount; //Saves the PowerPoint presentation presentation.Save("Section.pptx"); 'Creates a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Adds a section to the PowerPoint presentation Dim section As ISection = presentation__1.Sections.Add() 'Sets a name to the created section section.Name = "SectionDemo" 'Adds a slide to the created section Dim slide As ISlide = section.AddSlide(SlideLayoutType.Blank) 'Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo") 'Gets the number of slides in the specified section Dim slidesCount As int = section.SlidesCount 'Saves the PowerPoint presentation presentation__1.Save("Section.pptx") Gets the slide collection of instance. Read-only. Returns the instance. //Creates a PowerPoint presentation IPresentation presentation = Presentation.Create(); //Adds a section to the PowerPoint presentation ISection section = presentation.Sections.Add(); //Sets a name to the created section section.Name = "SectionDemo"; //Adds a slide to the created section ISlide slide = section.AddSlide(SlideLayoutType.Blank); //Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo"); //Gets the collection of slides in the specified section ISlides slides = section.Slides; //Saves the PowerPoint presentation presentation.Save("Section.pptx"); 'Creates a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Adds a section to the PowerPoint presentation Dim section As ISection = presentation__1.Sections.Add() 'Sets a name to the created section section.Name = "SectionDemo" 'Adds a slide to the created section Dim slide As ISlide = section.AddSlide(SlideLayoutType.Blank) 'Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo") 'Gets the collection of slides in the specified section Dim slides As ISlides = section.Slides 'Saves the PowerPoint presentation presentation__1.Save("Section.pptx") Add the slide into current section. Remove the slide from current section. Represents the notes slide in a slide of the presentation. Represents a base slide in a presentation. Contains members which are common for slide, layout slide and master slide. Finds the text based on specified string, taking into the consideration of caseSensitive and wholeWord options. A text to find. Set to true to match the similar case text which specified in the parameter; otherwise false. Set to true to match the whole word text which specified in the parameter; otherwise false. The that contains the found text in the document. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with a text IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Hello World"); // Finds the text from the Presentation document ITextSelection textSelection = slide.Find("World", false, false); // Gets the found text containing text parts foreach (ITextPart textPart in textSelection.GetTextParts()) { //Sets Bold property textPart.Font.Bold = true; } //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Creates a presentation. Dim presentation As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) 'Add a new paragraph with a text Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Hello World") 'Finds the text from the Presentation document Dim textSelection As ITextSelection = slide.Find("World", False, False) 'Gets the text parts from the selection For Each textPart As ITextPart In textSelection.GetTextParts() textPart.Font.Bold = True Next presentation.Save("Output.pptx") presentation.Close() Finds the first occurrence of text that matches the specified Regex pattern. The used to find the text. The > that contains the found text in the document. //Opens an existing presentation. using (IPresentation pptxDoc = Presentation.Open("Input.pptx")) { // Create a regex pattern to find a text that starts with 'H' and ends with 'o'. Regex regex = new Regex("H.+?o"); //Find the first occurrence of a specified regular expression. ITextSelection textSelection = pptxDoc.Slides[0].Find(regex); //Gets the found text as single text part ITextPart textPart = textSelection.GetAsOneTextPart(); //Replace the text textPart.Text = "Replaced text"; //Saves the Presentation pptxDoc.Save("Output.pptx"); } 'Opens an existing presentation. Using pptxDoc As IPresentation = Presentation.Open("Input.pptx") ' Create a regex pattern to find a text that starts with 'H' and ends with 'o'. Dim regex As Regex = New Regex("H.+?o") 'Find the first occurrence of a specified regular expression. Dim textSelection As ITextSelection = pptxDoc.Slides(0).Find(regex) 'Gets the found text as single text part Dim textPart As ITextPart = textSelection.GetAsOneTextPart() 'Replace the text textPart.Text = "Replaced text" 'Saves the Presentation pptxDoc.Save("Output.pptx") End Using Finds and returns all entries of the specified string, taking into the consideration of caseSensitive and wholeWord options. A text to find. Set to true to match the similar case text which specified in the parameter; otherwise false. Set to true to match the whole word text which specified in the parameter; otherwise false. The collection that contains all the entries of the found text in the document. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with a text IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Hello World"); // Finds the text from the mentioned slide ITextSelection[] textSelections = slide.FindAll("World", false, false); foreach (ITextSelection textSelection in textSelections) { //Gets the found text as single text part ITextPart textPart = textSelection.GetAsOneTextPart(); //Replace the text textPart.Text = "Replaced text"; } //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Creates a presentation. Dim presentation As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) 'Add a new paragraph with a text Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Hello World") 'Finds the text from the mentioned slide Dim textSelections As ITextSelection() = slide.FindAll("World", False, False) 'Gets the found text as single text part and replace it For Each textSelection As ITextSelection In textSelections Dim textPart As ITextPart = textSelection.GetAsOneTextPart() textPart.Text = "Replaced text" Next presentation.Save("Output.pptx") presentation.Close() Finds all occurrences of text that match the specified Regex pattern. The used to find the text. The collection that contains all the entries of the found text in the document. //Opens an existing presentation. using (IPresentation pptxDoc = Presentation.Open("Input.pptx")) { // Create a regex pattern to find a text that starts with 'H' and ends with 'o'. Regex regex = new Regex("H.+?o"); //Finds all the occurrences of a specified regular expression. ITextSelection[] textSelections = pptxDoc.Slides[0].FindAll(regex); foreach (ITextSelection textSelection in textSelections) { //Gets the found text as single text part ITextPart textPart = textSelection.GetAsOneTextPart(); //Replace the text textPart.Text = "Replaced text"; } //Saves the Presentation pptxDoc.Save("Output.pptx"); } 'Opens an existing presentation. Using pptxDoc As IPresentation = Presentation.Open("Input.pptx") ' Create a regex pattern to find a text that starts with 'H' and ends with 'o'. Dim regex As Regex = New Regex("H.+?o") 'Finds all the occurrences of a specified regular expression. Dim textSelections As ITextSelection() = pptxDoc.Slides(0).FindAll(regex) For Each textSelection As ITextSelection In textSelections 'Gets the found text as single text part Dim textPart As ITextPart = textSelection.GetAsOneTextPart() 'Replace the text textPart.Text = "Replaced text" Next 'Saves the Presentation pptxDoc.Save("Output.pptx") End Using Gets or sets the name of a slide. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set the name of the slide slide.Name = "My Slide"; //Save the presentation presentation.Save("Slide.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Set the name of the slide slide.Name = "My Slide" 'Save the presentation presentation__1.Save("Slide.pptx") 'Close the presentation presentation__1.Close() Gets a collection that represents all the elements in the slide. Read-only. The collection can contain the drawings, shapes, pictures, text objects, titles, headers, footers, slide numbers, and date and time objects on a slide. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for shapes collection IShapes shapes = slide.Shapes; //Add auto shape - rectangle to slide IShape shape = shapes.AddShape(AutoShapeType.Rectangle,300,400,150,200); //Save the presentation presentation.Save("Shapes.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for shapes collection Dim shapes As IShapes = slide.Shapes 'Add auto shape - rectangle to slide Dim shape As IShape = shapes.AddShape(AutoShapeType.Rectangle, 300, 400, 150, 200) 'Save the presentation presentation__1.Save("Shapes.pptx") 'Close the presentation presentation__1.Close() Gets the background of a slide. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(); //Retrieve the background. IBackground background = slide.Background; //Retrieve the fill of the background. IFill fill = background.Fill; //Set the fill type as gradient. fill.FillType = FillType.Gradient; //Retrieve the gradient fill. IGradientFill gradientFill = fill.GradientFill; //Add the first gradient stop. gradientFill.GradientStops.Add(); //Add the second gradient stop. gradientFill.GradientStops.Add(); //Save the presentation. presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add() 'Retrieve the background. Dim background As IBackground = slide.Background 'Retrieve the fill of the background. Dim fill As IFill = background.Fill 'Set the fill type as gradient. fill.FillType = FillType.Gradient 'Retrieve the gradient fill. Dim gradientFill As IGradientFill = fill.GradientFill 'Add the first gradient stop. gradientFill.GradientStops.Add() 'Add the second gradient stop. gradientFill.GradientStops.Add() 'Save the presentation. presentation__1.Save("Output.pptx") 'Close the presentation. presentation__1.Close() Gets an instance that represents the GroupShape collection in a slide. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for group shapes, it is read only IGroupShapes groupShapes = slide.GroupShapes; //Add group shape to the collection IGroupShape groupShape1 = groupShapes.AddGroupShape(12, 12, 300, 350); IGroupShape groupShape2 = groupShapes.AddGroupShape(34, 50, 200, 100); IGroupShape groupShape3 = groupShapes.AddGroupShape(70, 30, 120, 100); //Save the presentation presentation.Save("GroupShapes.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for group shapes, it is read only Dim groupShapes As IGroupShapes = slide.GroupShapes 'Add group shape to the collection Dim groupShape1 As IGroupShape = groupShapes.AddGroupShape(12, 12, 300, 350) Dim groupShape2 As IGroupShape = groupShapes.AddGroupShape(34, 50, 200, 100) Dim groupShape3 As IGroupShape = groupShapes.AddGroupShape(70, 30, 120, 100) 'Save the presentation presentation__1.Save("GroupShapes.pptx") 'Close the presentation presentation__1.Close() Gets an instance that represents the collection of all pictures in a slide. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for shapes collection IShapes shapes = slide.Shapes; //Get the image from file path Image image = Image.FromFile("Image.gif"); // Add the image to the slide by specifying position and size shapes.AddPicture(new MemoryStream(image.ImageData), 300, 120, 70, 40); //Save the presentation presentation.Save("Picture.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Get the image from file path Dim image__2 As Image = Image.FromFile("Image.gif") ' Add the image to the slide by specifying position and size shapes.AddPicture(New MemoryStream(image__2.ImageData), 300, 120, 70, 40) 'Save the presentation presentation__1.Save("Picture.pptx") 'Close the presentation presentation__1.Close() Gets an collection that represents the tables in a slide. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold table collection ITables tables = slide.Tables; //Add table to the slide ITable table = tables.AddTable(2, 2, 100, 120, 300, 200); //Retrieve each cell and fill text content to the cell. ICell cell = table[0, 0]; cell.TextBody.AddParagraph("First Row and First Column"); cell = table[0, 1]; cell.TextBody.AddParagraph("First Row and Second Column"); cell = table[1, 0]; cell.TextBody.AddParagraph("Second Row and First Column"); cell = table[1, 1]; cell.TextBody.AddParagraph("Second Row and Second Column"); //Give simple description to table shape table.Description = "Table arrangement"; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold table collection Dim tables As ITables = slide.Tables 'Add table to the slide Dim table As ITable = tables.AddTable(2, 2, 100, 120, 300, 200) 'Retrieve each cell and fill text content to the cell. Dim cell As ICell = table(0, 0) cell.TextBody.AddParagraph("First Row and First Column") cell = table(0, 1) cell.TextBody.AddParagraph("First Row and Second Column") cell = table(1, 0) cell.TextBody.AddParagraph("Second Row and First Column") cell = table(1, 1) cell.TextBody.AddParagraph("Second Row and Second Column") 'Give simple description to table shape table.Description = "Table arrangement" 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Gets an collection that represents the charts in a slide. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Get the chart collection from slide IPresentationCharts charts = slide.Charts; //Add chart to slide IPresentationChart chart =charts.AddChart(400, 300, 100, 100); //Set the chart title chart.ChartTitle = "Chart"; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Get the chart collection from slide Dim charts As IPresentationCharts = slide.Charts 'Add chart to slide Dim chart As IPresentationChart = charts.AddChart(400, 300, 100, 100) 'Set the chart title chart.ChartTitle = "Chart" 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Gets the slide size for the presentation. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Retrieve the side size ISlideSize slideSize = slide.SlideSize; //Set slide orientation slideSize.SlideOrientation = SlideOrientation.Landscape; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Retrieve the side size Dim slideSize As ISlideSize = slide.SlideSize 'Set slide orientation slideSize.SlideOrientation = SlideOrientation.Landscape 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Get the timeline(Animation) of the slide // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Get the timeline(Animation) of the slide IAnimationTimeline timeLine = slide.Timeline; // Add animation effect on the slide with shape IEffect effect = timeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Get the timeline(Animation) of the slide Dim timeLine As IAnimationTimeLine = slide.TimeLine; 'Add animation effect on the slide with shape Dim effect As IEffect = timeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the slide transition for the presentation. Read-only. //Create a new presentation. IPresentation ppDoc = Presentation.Create(); //Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); //Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); //Get the slide transition value ISlideShowTransition transition = slide.SlideTransition; //Add slide transition for slide transition.TransitionEffect = TransitionEffect.Airplane; //Save the presentation file ppDoc.Save("Sample.pptx"); //Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Get the slide transition value Dim transition As ISlideShowTransition = slide.SlideTransition 'Add slide transition for slide transition.TransitionEffect = TransitionEffect.Airplane 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Gets a HeadersFooters for the specified slide. Returns an IHeadersFooters object that represents the HeaderFooter collection of a slide. Gets an instance that represents the text in the notes page. Read-only. Sets the slide name. Specifies the slide name. Gets the slide name. Returns string value that represents the slide name. Remove a animation effect of a specified shape. Represent the shape to remove. Check whether Pictures of current slide is referring a mentioned picture path or not. Represents a picture path to search. Returns true, if current slide picture used a input picture path; Otherwise false. Finds all the occurance of the given word from slide Array of text selection Finds all the occurance of the given word from slide using Regex pattern Array of text selection Find the first occurance of the given word Text selection Find the first occurance of the given word using Regex pattern Text selection Check whether the specified picture is used in some other elements such as Ole Object, Shape Fill, Smart Art Fill, Table Fill, Other picture. Represents the image path need to be check. Represents the base slide shape collections need to be checked. Returns true if the given image path is used in any of the shape collection elements, otherwise false Check whether the specified picture is used in some other slides such as other Slides, Layout slides, Master slides, Handout master, Notes master. Represents the image path need to be check. Returns true if any slide contains the picture otherwise false. Check whether the specified picture is used in the given base slide. Represents the base slide of the picture to be checked. Represents the picture image path need to be checked Returns true if the picture is used in the given base slide, otherwise false. Gets VmlShape count. Returns Vml shape count if slide has Vml shape else 0. Compares the current BaseSlide object with given BaseSlide object. The BaseSlide object to compare with the current instance. True if the BaseSlide objects are equal; otherwise, false. Gets a HeadersFooters of specified slide. Read-only. Returns an IHeadersFooters object that represents the HeaderFooter collection of a slide. Set the parent presentation for the notes slide. The parent presentation. Gets an instance that represents the text in the notes page. Read-only. Gets the list of dictionaries containing URI hyperlinks and their corresponding rectangle points. Represents the smart art graphic with different smart art types. Gets a object that contains all the nodes within the SmartArt. Read-only. // 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() Gets a value that represents the layout associated with the SmartArt. Read-only. // 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() Gets a object that represents the SmartArt background. // 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() Gets an object that represents the line and arrowhead properties of the SmartArt. Read only. // 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() Represents a single semantic node within the data model of a SmartArt graphic. Gets the child nodes associated with the SmartArt node. Read-only. // 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 SmartArt to the slide at the specified size and position. ISmartArt smartArt = slide.Shapes.AddSmartArt(SmartArtType.AlternatingHexagons, 10, 10, 640, 426); // Add a new node to the SmartArt. ISmartArtNode newNode = smartArt.Nodes.Add(); // Add a child node to the SmartArt node ISmartArtNode childNode = newNode.ChildNodes.Add(); // Set a text to newly added child node. childNode.TextBody.AddParagraph("Child node of the existing node."); //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 SmartArt to the slide at the specified size and position. Dim smartArt As ISmartArt = slide.Shapes.AddSmartArt(SmartArtType.AlternatingHexagons, 10, 10, 640, 426) 'Add a new node to the SmartArt. Dim newNode As ISmartArtNode = smartArt.Nodes.Add() 'Add a child node to the SmartArt node Dim childNode As ISmartArtNode = newNode.ChildNodes.Add() 'Set a text to newly added child node. childNode.TextBody.AddParagraph("Child node of the existing node.") 'Save the Presentation. pptxDoc.Save("Sample.pptx") 'Close the Presentation. pptxDoc.Close() Gets the shape collection associated with the SmartArt node. Read-only. // 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() Gets an instance that represents the text in the SmartArt node. Read-only. // 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 first node text body. ITextBody textBody = smartArt.Nodes[0].TextBody; //Sets the text to the text body. textBody.AddParagraph("First node text"); //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, 0, 0, 640, 426) 'Gets the first node text body. Dim textBody As ITextBody = smartArt.Nodes(0).TextBody 'Sets the text to the text body. textBody.AddParagraph("First node text") 'Save the Presentation pptxDoc.Save("Sample.pptx") 'Close the Presentation pptxDoc.Close() Gets the node level in the hierarchy. // 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 SmartArt to the slide at the specified size and position. ISmartArt smartArt = slide.Shapes.AddSmartArt(SmartArtType.AlternatingHexagons, 0, 0, 640, 426); // Add a new node to the SmartArt. ISmartArtNode newNode = smartArt.Nodes.Add(); // Add a child node to the SmartArt node ISmartArtNode childNode = newNode.ChildNodes.Add(); // Set a text to newly added child node. childNode.TextBody.AddParagraph("Child node of the existing node."); //Gets the level of the child node. int level = childNode.Level; //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 SmartArt to the slide at the specified size and position. Dim smartArt As ISmartArt = slide.Shapes.AddSmartArt(SmartArtType.AlternatingHexagons, 10, 10, 640, 426) 'Add a new node to the SmartArt. Dim newNode As ISmartArtNode = smartArt.Nodes.Add() 'Add a child node to the SmartArt node Dim childNode As ISmartArtNode = newNode.ChildNodes.Add() 'Set a text to newly added child node. childNode.TextBody.AddParagraph("Child node of the existing node.") 'Gets the level of the child node. Dim level As Integer = childNode.Level 'Save the Presentation. pptxDoc.Save("Sample.pptx") 'Close the Presentation. pptxDoc.Close() Gets the parent of the SmartArt node. // 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 SmartArt to the slide at the specified size and position. ISmartArt smartArt = slide.Shapes.AddSmartArt(SmartArtType.AlternatingHexagons, 0, 0, 640, 426); // Add a new node to the SmartArt. ISmartArtNode newNode = smartArt.Nodes.Add(); // Add a child node to the SmartArt node ISmartArtNode childNode = newNode.ChildNodes.Add(); //Gets the parent node for the child node. object parent = childNode.Parent; // Set a text to parent node. (parent as ISmartArtNode).TextBody.AddParagraph("Parent node for the child node."); //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 SmartArt to the slide at the specified size and position. Dim smartArt As ISmartArt = slide.Shapes.AddSmartArt(SmartArtType.AlternatingHexagons, 10, 10, 640, 426) 'Add a new node to the SmartArt. Dim newNode As ISmartArtNode = smartArt.Nodes.Add() 'Add a child node to the SmartArt node Dim childNode As ISmartArtNode = newNode.ChildNodes.Add() Dim parent As Object = childNode.Parent TryCast(parent, ISmartArtNode).TextBody.AddParagraph("Parent node for the child node.") 'Save the Presentation. pptxDoc.Save("Sample.pptx") 'Close the Presentation. pptxDoc.Close() Gets or sets a value indicating whether the SmartArt point is an assistant element. Returns true if the SmartArt point is an assistant element; otherwise, false. Setting this property to true will set the SmartArt point type to AssistantElement. Setting this property to false will set the SmartArt point type to Node. // 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 SmartArt to the slide at the specified size and position ISmartArt smartArt = slide.Shapes.AddSmartArt(SmartArtType.OrganizationChart, 0, 0, 640, 426.96); //Traverse through all nodes of the SmartArt. foreach (ISmartArtNode node in smartArt.Nodes) { //Check if the node is assistant or not. if (node.IsAssistant) //Set the assistant node to false. node.IsAssistant = false; } //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 SmartArt to the slide at the specified size and position Dim smartArt As ISmartArt = slide.Shapes.AddSmartArt(SmartArtType.OrganizationChart, 0, 0, 640, 426.96) 'Traverse through all nodes of the SmartArt. For Each node As ISmartArtNode In smartArt.Nodes 'Check if the node is assistant or not. If node.IsAssistant Then 'Set the assistant node to false. node.IsAssistant = False End If Next 'Save the Presentation. pptxDoc.Save("Sample.pptx") 'Close the Presentation. pptxDoc.Close() Represents a collection of nodes within a SmartArt diagram. Adds a new SmartArt node at the end of the SmartArt node collection. Returns an instance that represents the new SmartArt diagram. // 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 SmartArt to the slide at the specified size and position. ISmartArt smartArt = slide.Shapes.AddSmartArt(SmartArtType.AlternatingHexagons, 0, 0, 640, 426); // Add a new node to the SmartArt. ISmartArtNode newNode = smartArt.Nodes.Add(); // Set a text to newly added child node. newNode.TextBody.AddParagraph("Added new node to the smart art shape."); //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 SmartArt to the slide at the specified size and position. Dim smartArt As ISmartArt = slide.Shapes.AddSmartArt(SmartArtType.AlternatingHexagons, 10, 10, 640, 426) 'Add a new node to the SmartArt. Dim newNode As ISmartArtNode = smartArt.Nodes.Add() 'Set a text to newly added child node. newNode.TextBody.AddParagraph("Parent node for the child node.") 'Save the Presentation. pptxDoc.Save("Sample.pptx") 'Close the Presentation. pptxDoc.Close() Removes all the nodes from the SmartArt. // 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; //Clear the smart art nodes. smartArt.Nodes.Clear(); //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 'Clear the smart art nodes. smartArt.Nodes.Clear() 'Save the Presentation pptxDoc.Save("Sample.pptx") 'Close the Presentation pptxDoc.Close() Removes the node at the specified index of SmartArt node collection. The zero-based index of the element to be removed. // 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 first smart art node. ISmartArtNode node = smartArt.Nodes[0]; //Remove the smart art node from the node collection. smartArt.Nodes.RemoveAt(1); //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 first smart art node Dim node As ISmartArtNode = smartArt.Nodes(0) 'Remove the smart art node from the node collection. smartArt.Nodes.RemoveAt(1) 'Save the Presentation pptxDoc.Save("Sample.pptx") 'Close the Presentation pptxDoc.Close() Removes the first occurrence of a specified node from the SmartArt node collection. The SmartArt node to be removed from the collection. Returns true if the specified SmartArt node is removed from the node collection otherwise returns false. // 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 first smart art node. ISmartArtNode node = smartArt.Nodes[0]; //Remove the smart art node from the node collection. smartArt.Nodes.Remove(node); //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 first smart art node Dim node As ISmartArtNode = smartArt.Nodes(0) 'Remove the smart art node from the node collection. smartArt.Nodes.Remove(node) 'Save the Presentation pptxDoc.Save("Sample.pptx") 'Close the Presentation pptxDoc.Close() Returns the first occurrence of a specified node from the SmartArt node collection. The instance to locate in the collection. Returns the zero-based index of the first occurrence of SmartArt node within the collection, if found; otherwise, �1. // 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 SmartArt to the slide at the specified size and position. ISmartArt smartArt = slide.Shapes.AddSmartArt(SmartArtType.AlternatingHexagons, 0, 0, 640, 426); // Add a new node to the SmartArt. ISmartArtNode newNode = smartArt.Nodes.Add(); // Set a text to newly added child node. newNode.TextBody.AddParagraph("Added new node to the smart art shape."); //Gets the index of new node. int index = smartArt.Nodes.IndexOf(newNode); //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 SmartArt to the slide at the specified size and position. Dim smartArt As ISmartArt = slide.Shapes.AddSmartArt(SmartArtType.AlternatingHexagons, 10, 10, 640, 426) 'Add a new node to the SmartArt. Dim newNode As ISmartArtNode = smartArt.Nodes.Add() 'Set a text to newly added child node. newNode.TextBody.AddParagraph("Added new node to the smart art shape.") 'Gets the index of new node. Dim index As Integer = smartArt.Nodes.IndexOf(newNode) 'Save the Presentation. pptxDoc.Save("Sample.pptx") 'Close the Presentation. pptxDoc.Close() Gets the number of nodes contained in the SmartArt node collection. Read-only. // 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 number of nodes int count = smartArt.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, 0, 0, 640, 426) 'Gets the number of nodes. Dim count As Integer = smartArt.Nodes.Count 'Save the Presentation pptxDoc.Save("Sample.pptx") 'Close the Presentation pptxDoc.Close() Gets a node at the specified index of a SmartArt node collection. Read-only. Determines the index of the SmartArt node. Returns an instance. // 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 first smart art node ISmartArtNode node = smartArt.Nodes[0]; //Sets the text to the node. node.TextBody.AddParagraph("First node text"); //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, 0, 0, 640, 426) 'Gets the first smart art node Dim node As ISmartArtNode = smartArt.Nodes(0) 'Sets the text to the node. node.TextBody.AddParagraph("First node text") 'Save the Presentation pptxDoc.Save("Sample.pptx") 'Close the Presentation pptxDoc.Close() Represents the collection of shapes within a SmartArt node. Represents the collection of shapes within a SmartArt node. Gets a instance at the specified index from the collection. Read-only. Determines the index of the SmartArt shape. Returns an instance. // 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() Determines whether an element is in the List. Represent the item to find. Returns true, if item is found; Otherwise, false. Gets a instance at the specified index from the collection. Read-only. Determines the index of the SmartArt shape. Returns an instance. Represents a shape within the SmartArt node. Gets a extra smart art shape point. Represents the current SmartArtType. Represents the SmartArt point collecion. Returns the SmartArtPoint. Represent a top relation of drawing.xml file. Sets the hyperlink for SmartArtPoint Set the textbody for SmartArtPoint Textbody to be set. Returns the SmartArt id Returns the SmartArt name Returns an instance that represents the hyperlink for the specified SmartArtPoint. Represents the smart art graphic with different smart art types. Sets the BaseSlide parent to the current SmartArt and its members. Represents the parent BaseSlide instance which needs to be assigned to the current SmartArt instance and its members. Compares the current Shape object with given Shape object. The Shape object to compare with the current instance. True if the Shape objects are equal; otherwise, false. Gets a object that represents the SmartArt background. Gets a value that represents the layout associated with the SmartArt. Read-only. Gets a object that contains all the nodes within the SmartArt. Read-only. Represents a single semantic node within the data model of a SmartArt graphic. Gets the parent of the SmartArt node. Gets the child nodes associated with the SmartArt node. Read-only. Gets the node level in the hierarchy. Gets the shape collection associated with the SmartArt node. Read-only. Gets or sets a value indicating whether the SmartArt point is an assistant element. Returns true if the SmartArt point is an assistant element; otherwise, false. Setting this property to true will set the SmartArt point type to AssistantElement. Setting this property to false will set the SmartArt point type to Node. Gets an instance that represents the text in the SmartArt node. Read-only. Represents a collection of nodes within a SmartArt diagram. Returns the first occurrence of a specified node from the SmartArt node collection. The instance to locate in the collection. Returns the zero-based index of the first occurrence of SmartArt node within the collection, if found; otherwise, �1. Adds a new SmartArt node at the end of the SmartArt node collection. Returns an instance that represents the new SmartArt diagram. Removes all the nodes from the SmartArt. Removes the node at the specified index of SmartArt node collection. The zero-based index of the element to be removed. Removes the first occurrence of a specified node from the SmartArt node collection. The SmartArt node to be removed from the collection. Returns true if the specified SmartArt node is removed from the node collection otherwise returns false. Add extra smart art points on each PictureStrips SmartArt node, to add the picture on node. Represent the node to add. Gets the number of nodes contained in the SmartArt node collection. Read-only. Gets a node at the specified index of a SmartArt node collection. Read-only. Determines the index of the SmartArt node. Returns an instance. Represents a shape within the SmartArt node. Represents the comment in the slide. Gets or sets the left position of the comment in slide //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment); //Set the left position for the comment slide.Comments[1].Left = 0.50; //Get the left position of the comment double leftPosition = slide.Comments[1].Left; //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) 'Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment) 'Set the left position for the comment slide.Comments(1).Left = 0.50 'Get the left position of the comment Dim leftPosition As double = slide.Comments(1).Left ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Gets or sets the top position of the comment in slide //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment); //Set the top position for the comment slide.Comments[1].Top = 0.50; //Get the top position of the comment double topPosition = slide.Comments[1].Top; //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) 'Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment) 'Set the top position for the comment slide.Comments(1).Top = 0.50 'Get the top position of the comment Dim topPosition As double = slide.Comments(1).Top ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Gets or sets the author name of the comment //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment); //Set the author name for the comment slide.Comments[1].AuthorName = "Manager"; //Get the author name of the comment string authorName = slide.Comments[1].AuthorName; //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) 'Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment) 'Set the author name for the comment slide.Comments(1).AuthorName = "Manager" 'Get the author name of the comment Dim authorName As string = slide.Comments(1).AuthorName ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Gets or sets the comment author initials //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment); //Set the initial for the comment author. slide.Comments[1].Initials = "M"; //Get the initial of the comment author string authorInitial = slide.Comments[1].Initials; //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) 'Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment) 'Set the initial for the comment author slide.Comments(1).Initials = "M" 'Get the initial of the comment author Dim authorInitial As string = slide.Comments(1).Initials ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Gets or sets the comment text //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment); //Set the text of the comment slide.Comments[1].Text = "How can i convert a slide to image or PDF?"; //Get the text of the comment string commentText = slide.Comments[1].Text; //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) 'Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment) 'Set the text of the comment slide.Comments(1).Text = "How can i convert a slide to image or PDF?" 'Get the text of the comment Dim commentText As string = slide.Comments(1).Text ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Gets or sets the created or modified date and time of the comment //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment); //Set the date and time of the comment DateTime date = new DateTime(2017, 1, 18); slide.Comments[1].DateTime = date ; //Get the date and time of the comment DateTime date1 = slide.Comments[1].DateTime; //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) 'Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment) 'Set the date and time of the comment Dim time As DateTime = New DateTime(2017, 1, 18) slide.Comments(1).DateTime = time 'Get the date and time of the comment Dim commentDatetime As DateTime = slide.Comments(1).DateTime ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Returns a boolean value that indicates the comment is a parent comment or a reply comment //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment); //Get the text of the the bool value that indicates whether a comment has reply or not bool hasReply = slide.Comments[0].HasChild; //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) 'Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment) 'Get the bool value that indicates whether a comment has reply or not Dim hasReply As Boolean = slide.Comments(0).HasChild ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Returns the parent comment otherwise returns null if there is no parent comment Returns an instance of parent comment //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment); //Get the parent comment IComment parentComment = slide.Comments[1].Parent; //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) 'Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment) 'Get the parent comment Dim parentComment As IComment = slide.Comments(1).Parent ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Represents the comment collection. Adds a comment for an author in the slide. left poisiton of the comment in slide top position of comment in slide name of the comment author initial of the author specifies the comment specifies the date time of the comment added The comment gets added in the slide Returns the instance of added comment. //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Adds a reply for an author to a specific comment. name of the comment author initial of the author specifies the comment specifies the date time of the reply added specifies the parent comment The reply is made to a comment added in the slide Returns the instance of added comment. //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment); //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) 'Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment) ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Removes the comment at the specified index, from the comment collection. The zero-based index of the element to be removed. //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment); //Remove the comment at the specified index slide.Comments.RemoveAt(1); //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) 'Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment) 'Remove the comment at the specified index slide.Comments.RemoveAt(1) ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Removes the first occurrence of a specified comment from the comment collection. The comment to be removed from the collection. //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment); //Remove the comment at the specified index from the comment collection slide.Comments.Remove(comment); //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) 'Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment) 'Remove the comment at the specified index from the comment collection slide.Comments.Remove(comment) ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Returns the zero-based index of the first occurrence of the instance within the comment collection. The instance to locate in the collection. Returns the zero-based index of the first occurrence of comment within the collection, if found; otherwise, –1. //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment); //Get the index of the comment from the comment collection int index = slide.Comments.IndexOf(comment); //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) 'Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment) 'Get the index of the comment from the comment collection Dim index As Integer = slide.Comments.IndexOf(comment) ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Inserts the specified comment into the comment collection at specified index. The zero-based index at which the comment should be inserted. The comment instance to insert. //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment1 = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment IComment comment2 = slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment1); //Insert the comment at the specified index in comment collection slide.Comments.Insert(0 , comment2); //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment1 As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) 'Author2 add reply to a parent comment Dim comment2 As IComment = slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment1) 'Insert the comment at the specified index in comment collection slide.Comments.Insert(0,comment2) ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Removes all the comments in the slide. //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment1 = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment IComment comment2 = slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment1); //Clear the comment from the slide slide.Comments.Clear(); //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment1 As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) 'Author2 add reply to a parent comment Dim comment2 As IComment = slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment1) 'Clear the comment from the slide slide.Comments.Clear() ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Gets the instance at the specified index in comment collection. Read-only. The index to locate the comment. Returns the instance at the specified index in comment collection. //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment); //Get the comment IComment comment1 = slide.Comments[1]; //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) 'Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment) 'Get the comment Dim comment1 As IComment = slide.Comments(1) ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Gets the number of elements in the comment collection. Read-only. The total count of the comments. //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment); //Get the count comment int count = slide.Comments.Count; //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now) 'Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment) 'Get the count of the comment Dim count As Integer = slide.Comments.Count ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Represents the background of a slide. Gets an instance that contains fill formatting properties. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide background IBackground background = slide.Background; //Set the fill type for background as Pattern fill background.Fill.FillType = FillType.Pattern; //Set the pattern background.Fill.PatternFill.Pattern = PatternFillType.DashedHorizontal; //set the fore color of pattern background.Fill.PatternFill.ForeColor = ColorObject.Lavender; //Set the back color of pattern background.Fill.PatternFill.BackColor = ColorObject.Brown; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide background Dim background As IBackground = slide.Background 'Set the fill type for background as Pattern fill background.Fill.FillType = FillType.Pattern 'Set the pattern background.Fill.PatternFill.Pattern = PatternFillType.DashedHorizontal 'set the fore color of pattern background.Fill.PatternFill.ForeColor = ColorObject.Lavender 'Set the back color of pattern background.Fill.PatternFill.BackColor = ColorObject.Brown 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Compares the current Background object with given Background object. The Background object to compare with the current instance. True if the Background objects are equal; otherwise, false. Represents the collection of charts. Represents a collection of instance in a slide. Adds a chart to the shape collection with the specified bounds. Represents the left position, in points. The Left value ranges from -169056 to 169056. Represents the top position, in points. The Top value ranges from -169056 to 169056. Represents the width, in points. The Width value ranges from 0 to 169056. Represents the height, in points. The Height value ranges from 0 to 169056. Returns an instance. //Create a new presentation IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold chart collection IPresentationCharts charts = slide.Charts; //Add chart to slide IPresentationChart chart =charts.AddChart(300, 100, 300, 300); //Set the fore color of the chart area. chart.ChartArea.Fill.ForeColor = Color.AliceBlue; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold chart collection Dim charts As IPresentationCharts = slide.Charts 'Add chart to slide Dim chart As IPresentationChart = charts.AddChart(300, 100, 300, 300) 'Set the fore color of the chart area. chart.ChartArea.Fill.ForeColor = Color.AliceBlue 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Creates a chart for the data in specified excel document and adds the chart to the shape collection. Excel document stream having the data for chart[Only the "*.xlsx" format is supported]. Worksheet number of the excel document. Data range in the worksheet for the chart to be created. Position and size of the chart, in points. Returns an instance. //Creates a Presentation instance IPresentation pptxDoc = Presentation.Create(); //Adds a blank slide to the Presentation ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Gets the excel file as stream FileStream excelStream = new FileStream("Book1.xlsx", FileMode.Open); //Adds a chart to the slide with a data range from excel worksheet – excel workbook, worksheet number, Data range, position, and size. IPresentationChart chart = slide.Charts.AddChart(excelStream, 1, "A1:D4", new RectangleF(100, 10, 700, 500)); //Save the presentation pptxDoc.Save("Output.pptx"); //Closes the Presentation pptxDoc.Close(); 'Creates a Presentation instance Dim pptxDoc As IPresentation = Presentation.Create() 'Adds a blank slide to the Presentation Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Gets the excel file as stream Dim excelStream As New MemoryStream(File.ReadAllBytes("Book1.xlsx")) 'Adds a chart to the slide with a data range from excel worksheet – excel workbook, worksheet number, Data range, position, and size. Dim chart As IPresentationChart = slide.Charts.AddChart(excelStream, 1, "A1:D4", New RectangleF(100, 10, 700, 500)) 'Saves the Presentation pptxDoc.Save("output.pptx") 'Closes the Presentation pptxDoc.Close() Returns the zero-based index of the first occurrence of the instance within the collection. The IPresentationChart instance to locate in the collection. Returns the zero-based index of the first occurrence of object within the entire collection, if found; otherwise, –1. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold chart collection IPresentationCharts charts = slide.Charts; //Add chart to slide IPresentationChart chart =charts.AddChart(300, 100, 300, 300); //Set the fore color of the chart area. chart.ChartArea.Fill.ForeColor = Color.AliceBlue; //Get the index of specific chart int index = charts.IndexOf(chart); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold chart collection Dim charts As IPresentationCharts = slide.Charts 'Add chart to slide Dim chart As IPresentationChart = charts.AddChart(300, 100, 300, 300) 'Set the fore color of the chart area. chart.ChartArea.Fill.ForeColor = Color.AliceBlue 'Get the index of specific chart Dim index As Integer = shapes.IndexOf(chart) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the element at the specified index of the chart collection. The zero-based index of the element to be removed. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold chart collection IPresentationCharts charts = slide.Charts; //Add chart to slide IPresentationChart chart = charts.AddChart(100, 300, 200, 200); //Set the fore color of the chart area. chart.ChartArea.Fill.ForeColor = Color.LightBlue; //Add chart to slide IPresentationChart chart2 = charts.AddChart(300, 300, 200, 200); //Set the fore color of the chart area. chart2.ChartArea.Fill.ForeColor = Color.AliceBlue; //Remove chart specific index charts.RemoveAt(0); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold chart collection Dim charts As IPresentationCharts = slide.Charts 'Add chart to slide Dim chart As IPresentationChart = charts.AddChart(100, 300, 200, 200) 'Set the fore color of the chart area. chart.ChartArea.Fill.ForeColor = Color.LightBlue 'Add chart to slide Dim chart2 As IPresentationChart = charts.AddChart(300, 300, 200, 200) 'Set the fore color of the chart area. chart2.ChartArea.Fill.ForeColor = Color.AliceBlue 'Remove chart specific index chart.RemoveAt(0) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets a single instance from the collection. Read-only. Index from the collection. Returns the particular chart based on the index. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold chart collection IPresentationCharts charts = slide.Charts; //Add chart to slide charts.AddChart(300, 100, 300, 300); //Retrieve the chart at index 0 IPresentationChart chart = charts[0]; //Set the fore color of the chart area. chart.ChartArea.Fill.ForeColor = Color.AliceBlue; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold chart collection Dim charts As IPresentationCharts = slide.Charts 'Add chart to slide charts.AddChart(300, 100, 300, 300) 'Retrieve the chart at index 0 Dim chart As IPresentationChart = charts(0) 'Set the fore color of the chart area. chart.ChartArea.Fill.ForeColor = Color.AliceBlue 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the number of elements in the chart collection. Read-only. The total count of the charts in the chart collection. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold chart collection IPresentationCharts charts = slide.Charts; //Add chart to slide IPresentationChart chart =charts.AddChart(300, 100, 300, 300); //Set the fore color of the chart area. chart.ChartArea.Fill.ForeColor = Color.AliceBlue; //Get the count for chart collection int count = charts.Count; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold chart collection Dim charts As IPresentationCharts = slide.Charts 'Add chart to slide Dim chart As IPresentationChart = charts.AddChart(300, 100, 300, 300) 'Set the fore color of the chart area. chart.ChartArea.Fill.ForeColor = Color.AliceBlue 'Get the count for chart collection Dim count As Integer = charts.Count 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Adds a chart to the slide. The left position of the chart from left edge of the slide, in points The top position of the chart from top edge of the slide, in points Width of the chart, in points Height of the chart, in points Returns a chart object. Adds a chart to the slide. Excel document stream that has the data for chart,excel document should be in "*.xlsx" format Worksheet number of the excel document. Data range in the worksheet for which the chart to be created. Size and Position of chart in the slide. Returns a chart object. Adds a chart to the slide. Chart data in 2-dimensional array format. The left position of the chart from left edge of the slide, in points The left position of the chart from left edge of the slide, in points The width of the chart, in points The height of the chart, in points. Returns a chart object. Adds a chart to the slide. IEnumerable object with desired data The left position of the chart from left edge of the shape, in points The top position of the chart from top edge of the shape, in points The width of the chart, in points The height of the chart, in points. Returns a chart object. Returns the zero-based index of the first occurrence of the specified chart Represents a chart from the collection. The zero-based index position of the chart, if found otherwise -1. Removes the chart at the specified index of the chart collection The zero-based index of the chart to remove. Returns an enumerator that iterates through the chart collection. An IEnumerator object that can be used to iterate through the chart collection. Gets the chart at the specified index. Index of the chart. Gets the number of elements contained in the chart collection. Represents the charts in the presentation Replaces the chart data with the worksheet data. Optional Boolean. Set to true to update all the formulas in the Excel sheet. The default value is false. //Open a presentation containing charts IPresentation presentation = Presentation.Open("Template.pptx"); //Get the slide from presentation ISlide slide = presentation.Slides[0]; //Get the chart from slide IPresentationChart chart = slide.Charts[0]; //Refresh the chart to set worksheet data to current chart chart.Refresh(true); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Open a presentation containing charts Dim presentation As IPresentation = Presentation.Open("Template.pptx") 'Get the slide from presentation Dim slide As ISlide = presentation.Slides(0) 'Get the chart from slide Dim chart As IPresentationChart = slide.Charts(0) 'Refresh the chart to set worksheet data to current chart chart.Refresh(True) 'Save the presentation presentation.Save("Sample.pptx") 'Close the presentation presentation.Close() Converts the chart to image and saves the image in the specified stream. The stream to save the image. //Open the presentation IPresentation presentation = Presentation.Open("Template.pptx"); //Initialize the ChartToImageConverter class; this is mandatory presentation.ChartToImageConverter = new ChartToImageConverter(); //Set the scaling mode for quality presentation.ChartToImageConverter.ScalingMode = Syncfusion.OfficeChart.ScalingMode.Best; //Get the first slide ISlide slide = presentation.Slides[0]; //Get the chart in slide IPresentationChart chart = slide.Shapes[0] as IPresentationChart; //Create a stream instance to store the image MemoryStream stream = new MemoryStream(); //Save the image to stream chart.SaveAsImage(stream); //Save the stream to a file using (FileStream fileStream = File.Create("ChartImage.png", (int)stream.Length)) fileStream.Write(stream.ToArray(), 0, stream.ToArray().Length); //Close the stream stream.Close(); //Save the Presentation presentation.Save("output.pptx"); //Close the presentation presentation.Close(); 'Open the presentation Dim presentation As IPresentation = Presentation.Open("Template.pptx") 'Initialize the ChartToImageConverter class; this is mandatory presentation.ChartToImageConverter = New ChartToImageConverter() 'Set the scaling mode for quality presentation.ChartToImageConverter.ScalingMode = Syncfusion.OfficeChart.ScalingMode.Best 'Get the first slide Dim slide As ISlide = presentation.Slides(0) 'Get the chart in slide Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IOfficeChart) 'Create a stream instance to store the image Dim stream As New MemoryStream() 'Save the image to stream chart.SaveAsImage(stream) 'Save the stream to a file Using fileStream As FileStream = File.Create("ChartImage.png", CInt(stream.Length)) fileStream.Write(stream.ToArray(), 0, stream.ToArray().Length) End Using 'Close the stream stream.Close() 'Save the Presentation presentation.Save("output.pptx") 'Close the presentation presentation.Close() Sets the chart data with the specified two dimensional object array. Represents the two dimensional chart data //Create a new PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to slide IPresentationChart chart = slide.Charts.AddChart(100, 100, 300, 200); //Create an instance of object array object[][] chartData = { new object[3], new object[4] }; //Invoke setChartData method by passing object array chart.SetChartData(chartData); //Set the chart title chart.ChartTitle = "Chart"; //Save the Presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new PowerPoint presentation Dim presentation As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to slide Dim chart As IPresentationChart = slide.Charts.AddChart(100, 100, 300, 200) 'Create an instance of object array Dim chartData As Object()() = {New Object(2) {}, New Object(3) {}} 'Invoke setChartData method by passing object array chart.SetChartData(chartData) 'Set the chart title chart.ChartTitle = "Chart" 'Save the Presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Sets the chart data with the specified two dimensional object array, row index and column index. Represents the two dimensional chart data Row of the first cell where array should be imported. Column of the first cell where array should be imported. //Create a new PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to slide IPresentationChart chart = slide.Charts.AddChart(100, 100, 300, 300); //Create an instance of object array object[][] dataRange = { new object[5], new object[5] }; //Invoke set data Range method chart.SetDataRange(dataRange, 1, 3); //Save the Presentation presentation.Save("output.pptx"); //Close the presentation presentation.Close(); 'Create a new PowerPoint presentation Dim presentation As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to slide Dim chart As IPresentationChart= slide.Charts.AddChart(100, 100, 300, 300) 'Create an instance of object array Dim dataRange As Object()() = {New Object(4) {}, New Object(4) {}} 'Invoke set data Range method chart.SetDataRange(dataRange, 1, 3) 'Save the Presentation presentation.Save("output.pptx") 'Close the presentation presentation.Close() Gets or sets the Chart Type. Initiate series, ranges and update the ChartType. //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 700, 500); //Specify the chart title chart.ChartTitle = "Sales Analysis"; //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Specify the chart type chart.ChartType = OfficeChartType.Column_Clustered; //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Set the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData[2, 1, 4, 1]; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 700, 500) 'Specify the chart title chart.ChartTitle = "Sales Analysis" 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Specify the chart type chart.ChartType = OfficeChartType.Column_Clustered 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Set the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData(2, 1, 4, 1) 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets a instance for this presentation chart. Read-only. This property can be used in to convert chart as an image. //Opens a Presentation IPresentation pptxDoc = Presentation.Open("Sample.pptx"); //Creates an instance of ChartToImageConverter pptxDoc.ChartToImageConverter = new ChartToImageConverter(); //Sets the scaling mode as best pptxDoc.ChartToImageConverter.ScalingMode = Syncfusion.OfficeChart.ScalingMode.Best; //Gets a slide from the Presentation ISlide slide = pptxDoc.Slides[0]; //Gets the presentation chart in slide IPresentationChart presentationChart = slide.Shapes[0] as IPresentationChart; //Gets the IOfficeChart instance IOfficeChart officeChart = presentationChart.OfficeChart; //Save the chart to image. MemoryStream memoryStream = new MemoryStream(); officeChart.SaveAsImage(memoryStream); //Closes the Presentation pptxDoc.Close(); 'Opens a Presentation Dim pptxDoc As IPresentation = Presentation.Open("Sample.pptx") 'Creates an instance of ChartToImageConverter pptxDoc.ChartToImageConverter = New ChartToImageConverter 'Sets the scaling mode as best pptxDoc.ChartToImageConverter.ScalingMode = Syncfusion.OfficeChart.ScalingMode.Best 'Gets a slide from the Presentation Dim slide As ISlide = pptxDoc.Slides(0) 'Gets the presentation chart in slide Dim presentationChart As IPresentationChart = CType(slide.Shapes(0), IPresentationChart) 'Gets the IOfficeChart instance Dim officeChart As IOfficeChart = presentationChart.OfficeChart 'Save the chart to image. Dim memoryStream As MemoryStream = New MemoryStream officeChart.SaveAsImage(memoryStream) 'Closes the Presentation pptxDoc.Close Gets or sets the DataRange for the chart series. IPresentation presentation = Presentation.Create(); ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to slide IPresentationChart chart = slide.Shapes.AddChart(100, 120, 500, 300); //Sets the data range of chart chart.DataRange = chart.ChartData[1, 2, 4, 3]; //Set data to the chart- RowIndex, columnIndex and data chart.ChartData.SetValue(1, 2, "2012"); chart.ChartData.SetValue(2, 2, 330); chart.ChartData.SetValue(3, 2, 490); chart.ChartData.SetValue(4, 2, 700); chart.ChartType = OfficeChartType.Area; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); Dim presentation As IPresentation = Presentation.Create() Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to slide Dim chart As IPresentationChart = slide.Shapes.AddChart(100, 120, 500, 300) 'Sets the data range of chart chart.DataRange = chart.ChartData(1, 2, 4, 3) 'Set data to the chart- RowIndex, columnIndex and data chart.ChartData.SetValue(1, 2, "2012") chart.ChartData.SetValue(2, 2, 330) chart.ChartData.SetValue(3, 2, 490) chart.ChartData.SetValue(4, 2, 700) chart.ChartType = OfficeChartType.Area 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets whether series in rows or not. True if series are in rows in DataRange; False otherwise. //Create an instance for PowerPoint IPresentation pptxDoc = Presentation.Create(); //Add a blank slide to Presentation ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Adds chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 700, 500); //Set the chart type as Scatter_Markers chart.ChartType = OfficeChartType.Scatter_Markers; //Assign data chart.DataRange = chart.ChartData[1, 1, 4, 2]; //Set data to the chart RowIndex, columnIndex, and data chart.ChartData.SetValue(1, 1, "X-Axis"); chart.ChartData.SetValue(1, 2, "Y-Axis"); chart.ChartData.SetValue(2, 1, 1); chart.ChartData.SetValue(3, 1, 5); chart.ChartData.SetValue(4, 1, 10); chart.ChartData.SetValue(2, 2, 10); chart.ChartData.SetValue(3, 2, 5); chart.ChartData.SetValue(4, 2, 1); //Set chart title chart.ChartTitle = "Scatter Markers Chart"; //Set legend chart.HasLegend = false; //Set Datalabels IOfficeChartSerie serie = chart.Series[0]; serie.DataPoints.DefaultDataPoint.DataLabels.IsValue = true; serie.DataPoints.DefaultDataPoint.DataLabels.IsCategoryName = true; //Set IsSeriesInRows chart.IsSeriesInRows = false; //Saves the Presentation pptxDoc.Save("Output.pptx"); //Closes the presentation pptxDoc.Close(); 'Create an instance for PowerPoint Dim pptxDoc As IPresentation = Presentation.Create() 'Add a blank slide to Presentation Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Adds chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 700, 500) 'Set the chart type as Scatter_Markers chart.ChartType = OfficeChartType.Scatter_Markers 'Assign data chart.DataRange = chart.ChartData(1, 1, 4, 2) 'Set data to the chart RowIndex, columnIndex, and data chart.ChartData.SetValue(1, 1, "X-Axis") chart.ChartData.SetValue(1, 2, "Y-Axis") chart.ChartData.SetValue(2, 1, 1) chart.ChartData.SetValue(3, 1, 5) chart.ChartData.SetValue(4, 1, 10) chart.ChartData.SetValue(2, 2, 10) chart.ChartData.SetValue(3, 2, 5) chart.ChartData.SetValue(4, 2, 1) 'Apply chart elements 'Set chart title chart.ChartTitle = "Scatter Markers Chart" 'Set legend chart.HasLegend = False 'Set Datalabels Dim serie As IOfficeChartSerie = chart.Series(0) serie.DataPoints.DefaultDataPoint.DataLabels.IsValue = True serie.DataPoints.DefaultDataPoint.DataLabels.IsCategoryName = True 'Set IsSeriesInRows chart.IsSeriesInRows = False 'Saves the Presentation pptxDoc.Save("Output.pptx") 'Closes the Presentation pptxDoc.Close() Gets or sets the Title of the chart. //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 700, 500); //Specify the chart title chart.ChartTitle = "Sales Analysis"; //Specify the chart type chart.ChartType = OfficeChartType.Column_Clustered; //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Set the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData[2, 1, 4, 1]; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 700, 500) 'Specify the chart title chart.ChartTitle = "Sales Analysis" 'Specify the chart type chart.ChartType = OfficeChartType.Column_Clustered 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Set the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData(2, 1, 4, 1) 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets title text area. Read-only. //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 700, 500); //Specify the chart title chart.ChartTitle = "Sales Analysis"; //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Set the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData[2, 1, 4, 1]; //Specify the chart type chart.ChartType = OfficeChartType.Surface_3D; //Get the chart title text area IOfficeChartTextArea textArea = chart.ChartTitleArea; //Set bold font style textArea.Bold = true; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 700, 500) 'Specify the chart title chart.ChartTitle = "Sales Analysis" 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Set the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData(2, 1, 4, 1) 'Specify the chart type chart.ChartType = OfficeChartType.Surface_3D 'Get the chart title text area Dim textArea As IOfficeChartTextArea = chart.ChartTitleArea 'Set the background mode of the title area textArea.BackgroundMode = OfficeChartBackgroundMode.Transparent 'Set bold font style textArea.Bold = True 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets the X coordinate of the upper-left corner of the chart in points (1/72 inch). //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 500, 300); //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Set the x - position of the chart chart.XPos = 300; //Set the y - position of the chart chart.YPos = 140; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Set the x - position of the chart chart.XPos = 300 'Set the y - position of the chart chart.YPos = 140 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets the Y coordinate of the upper-left corner of the chart in points (1/72 inch). //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 500, 300); //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Set the x - position of the chart chart.XPos = 300; //Set the y - position of the chart chart.YPos = 140; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Set the x - position of the chart chart.XPos = 300 'Set the y - position of the chart chart.YPos = 140 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets the Width of the chart in points (1/72 inch). //Open the presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Get the first slide ISlide slide = presentation.Slides[0]; //Get the chart in slide IPresentationChart chart = slide.Shapes[0] as IPresentationChart; //Modify the chart height chart.Height = 500; //Modify the chart width chart.Width = 700; //Change the title chart.ChartTitle = "New title"; //Change the serie name of first chart serie chart.Series[0].Name = "Modified serie name"; //Hiding the category labels chart.CategoryLabelLevel = OfficeCategoriesLabelLevel.CategoriesLabelLevelNone; //Show Data Table. chart.HasDataTable = true; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Open the presentation Dim presentation As IPresentation = Presentation.Open("Sample.pptx") 'Get the first slide Dim slide As ISlide = presentation.Slides(0) 'Get the chart in slide Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IOfficeChart) 'Modify the chart height chart.Height = 500 'Modify the chart width chart.Width = 700 'Change the title chart.ChartTitle = "New title" 'Change the serie name of first chart serie chart.Series(0).Name = "Modified serie name" 'Hiding the category labels chart.CategoryLabelLevel = OfficeCategoriesLabelLevel.CategoriesLabelLevelNone 'Show Data Table. chart.HasDataTable = True 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets the Height of the chart in points (1/72 inch). //Open the presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Get the first slide ISlide slide = presentation.Slides[0]; //Get the chart in slide IPresentationChart chart = slide.Shapes[0] as IPresentationChart; //Modify the chart height chart.Height = 500; //Modify the chart width chart.Width = 700; //Change the title chart.ChartTitle = "New title"; //Change the serie name of first chart serie chart.Series[0].Name = "Modified serie name"; //Hiding the category labels chart.CategoryLabelLevel = OfficeCategoriesLabelLevel.CategoriesLabelLevelNone; //Show Data Table. chart.HasDataTable = true; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Open the presentation Dim presentation As IPresentation = Presentation.Open("Sample.pptx") 'Get the first slide Dim slide As ISlide = presentation.Slides(0) 'Get the chart in slide Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IOfficeChart) 'Modify the chart height chart.Height = 500 'Modify the chart width chart.Width = 700 'Change the title chart.ChartTitle = "New title" 'Change the serie name of first chart serie chart.Series(0).Name = "Modified serie name" 'Hiding the category labels chart.CategoryLabelLevel = OfficeCategoriesLabelLevel.CategoriesLabelLevelNone 'Show Data Table. chart.HasDataTable = True 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets the collection of the all series of this chart. Read-only. //Open the presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Get the first slide ISlide slide = presentation.Slides[0]; //Get the chart in slide IPresentationChart chart = slide.Shapes[0] as IPresentationChart; //Modify the chart height chart.Height = 500; //Modify the chart width chart.Width = 700; //Change the title chart.ChartTitle = "New title"; //Change the serie name of first chart serie chart.Series[0].Name = "Modified serie name"; //Hiding the category labels chart.CategoryLabelLevel = OfficeCategoriesLabelLevel.CategoriesLabelLevelNone; //Show Data Table. chart.HasDataTable = true; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Open the presentation Dim presentation As IPresentation = Presentation.Open("Sample.pptx") 'Get the first slide Dim slide As ISlide = presentation.Slides(0) 'Get the chart in slide Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IOfficeChart) 'Modify the chart height chart.Height = 500 'Modify the chart width chart.Width = 700 'Change the title chart.ChartTitle = "New title" 'Change the serie name of first chart serie chart.Series(0).Name = "Modified serie name" 'Hiding the category labels chart.CategoryLabelLevel = OfficeCategoriesLabelLevel.CategoriesLabelLevelNone 'Show Data Table. chart.HasDataTable = True 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets the primary category axis. Read-only. //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 500, 300); //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Get the primary category axis IOfficeChartCategoryAxis primaryCategoryAxis = chart.PrimaryCategoryAxis; //Set the data range of the category axis primaryCategoryAxis.CategoryLabels = chart.ChartData[2, 1, 4, 1]; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Get the primary category axis Dim primaryCategoryAxis As IOfficeChartCategoryAxis = chart.PrimaryCategoryAxis 'Set the data range of the category axis primaryCategoryAxis.CategoryLabels = chart.ChartData(2, 1, 4, 1) 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets the primary value axis. Read-only. //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 500, 300); //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Get the primary value axis IOfficeChartValueAxis primaryValueAxis = chart.PrimaryValueAxis; //Set bold font style primaryValueAxis.Font.Bold = true; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Get the primary value axis Dim primaryValueAxis As IOfficeChartValueAxis = chart.PrimaryValueAxis 'Set bold font style primaryValueAxis.Font.Bold = True 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets the primary series axis. Read-only. //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 500, 300); //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Set the chart type chart.ChartType = OfficeChartType.Column_3D; //Get the primary serie axis IOfficeChartSeriesAxis primarySerieAxis = chart.PrimarySerieAxis; //Set the font style of serie axis primarySerieAxis.Font.Italic = true; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Set the chart type chart.ChartType = OfficeChartType.Column_3D 'Get the primary serie axis Dim primarySerieAxis As IOfficeChartSeriesAxis = chart.PrimarySerieAxis 'Set the font style of serie axis primarySerieAxis.Font.Italic = True 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets the secondary category axis. Read-only. //Open a presentation with Combinational chart type IPresentation presentation = Presentation.Open("Template.pptx"); ISlide slide = presentation.Slides[0]; //Get the chart from slide IPresentationChart chart = slide.Shapes[0] as IPresentationChart; //Get the secondary category axis IOfficeChartCategoryAxis secondaryCategoryAxis = chart.PrimaryCategoryAxis; //Set the minor grid lines secondaryCategoryAxis.HasMinorGridLines = true; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Open a presentation with Combinational chart type Dim presentation As IPresentation = Presentation.Open("Template.pptx") Dim slide As ISlide = presentation.Slides(0) 'Get the chart from slide Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IOfficeChart) 'Get the secondary category axis Dim secondaryCategoryAxis As IOfficeChartCategoryAxis = chart.PrimaryCategoryAxis 'Set the minor grid lines secondaryCategoryAxis.HasMinorGridLines = True 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets the secondary value axis. Read-only. //Open a presentation with Combinational chart type IPresentation presentation = Presentation.Open("Template.pptx"); ISlide slide = presentation.Slides[0]; //Get the chart from slide IPresentationChart chart = slide.Shapes[0] as IPresentationChart; //Get the secondary value axis IOfficeChartValueAxis secondaryValueAxis = chart.SecondaryValueAxis; //Set the tick label position secondaryValueAxis.TickLabelPosition = OfficeTickLabelPosition.TickLabelPosition_NextToAxis; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Open a presentation with Combinational chart type Dim presentation As IPresentation = Presentation.Open("Template.pptx") Dim slide As ISlide = presentation.Slides(0) 'Get the chart from slide Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IOfficeChart) 'Get the secondary value axis Dim secondaryValueAxis As IOfficeChartValueAxis = chart.SecondaryValueAxis 'Set the tick label position secondaryValueAxis.TickLabelPosition = OfficeTickLabelPosition.TickLabelPosition_NextToAxis 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets an object that represents the complete chart area for the chart. Read-only. //Create a new presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to slide IPresentationChart chart = slide.Shapes.AddChart(100, 100, 400, 300); //Set the chart data value chart.ChartData.SetValue(1, 2, "1"); chart.ChartData.SetValue(2, 1, "A"); chart.ChartData.SetValue(2, 2, 20); //Set chart data range chart.DataRange = chart.ChartData[2, 2, 4, 4]; //Set the chart type chart.ChartType = OfficeChartType.Column_Clustered; //Get the chart area IOfficeChartFrameFormat chartArea = chart.ChartArea; //Set the line pattern of chart border chartArea.Border.LinePattern = OfficeChartLinePattern.DashDotDot; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to slide Dim chart As IPresentationChart = slide.Shapes.AddChart(100, 100, 400, 300) 'Set the chart data value chart.ChartData.SetValue(1, 2, "1") chart.ChartData.SetValue(2, 1, "A") chart.ChartData.SetValue(2, 2, 20) 'Set chart data range chart.DataRange = chart.ChartData(2, 2, 4, 4) 'Set the chart type chart.ChartType = OfficeChartType.Column_Clustered 'Get the chart area Dim chartArea As IOfficeChartFrameFormat = chart.ChartArea 'Set the line pattern of chart border chartArea.Border.LinePattern = OfficeChartLinePattern.DashDotDot 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets plot area frame format. Read-only. IPresentation presentation = Presentation.Create(); ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to slide IPresentationChart chart = slide.Shapes.AddChart(100, 120, 500, 300); //Set the data range of chart chart.DataRange = chart.ChartData[1, 2, 4, 3]; //Set data to the chart- RowIndex, columnIndex and data chart.ChartData.SetValue(1, 2, "2012"); chart.ChartData.SetValue(2, 2, 330); chart.ChartData.SetValue(3, 2, 490); chart.ChartData.SetValue(4, 2, 700); chart.ChartType = OfficeChartType.Area; //Edge: Specifies that the width or Height will be interpreted as right or bottom of the chart element //Factor: Specifies that the width or Height will be interpreted as the width or height of the chart element chart.PlotArea.Layout.LeftMode = LayoutModes.auto; chart.PlotArea.Layout.TopMode = LayoutModes.factor; //Value in points should not be a negative value if LayoutMode is Edge //It can be a negative value if the LayoutMode is Factor. chart.ChartTitleArea.Layout.Left = 10; chart.ChartTitleArea.Layout.Top = 100; //Manually positioning chart plot area chart.PlotArea.Layout.LayoutTarget = LayoutTargets.outer; chart.PlotArea.Layout.LeftMode = LayoutModes.edge; chart.PlotArea.Layout.TopMode = LayoutModes.edge; //Manually positioning chart legend chart.Legend.Layout.LeftMode = LayoutModes.factor; chart.Legend.Layout.TopMode = LayoutModes.factor; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); Dim presentation As IPresentation = Presentation.Create() Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to slide Dim chart As IPresentationChart = slide.Shapes.AddChart(100, 120, 500, 300) 'Sets the data range of chart chart.DataRange = chart.ChartData(1, 2, 4, 3) 'Set data to the chart- RowIndex, columnIndex and data chart.ChartData.SetValue(1, 2, "2012") chart.ChartData.SetValue(2, 2, 330) chart.ChartData.SetValue(3, 2, 490) chart.ChartData.SetValue(4, 2, 700) chart.ChartType = OfficeChartType.Area 'Edge: Specifies that the width or Height will be interpreted as right or bottom of the chart element 'Factor: Specifies that the width or Height will be interpreted as the width or height of the chart element chart.PlotArea.Layout.LeftMode = LayoutModes.auto chart.PlotArea.Layout.TopMode = LayoutModes.factor 'Value in points should not be a negative value if LayoutMode is Edge 'It can be a negative value if the LayoutMode is Factor. chart.ChartTitleArea.Layout.Left = 10 chart.ChartTitleArea.Layout.Top = 100 'Manually positioning chart plot area chart.PlotArea.Layout.LayoutTarget = LayoutTargets.outer chart.PlotArea.Layout.LeftMode = LayoutModes.edge chart.PlotArea.Layout.TopMode = LayoutModes.edge 'Manually positioning chart legend chart.Legend.Layout.LeftMode = LayoutModes.factor chart.Legend.Layout.TopMode = LayoutModes.factor 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets the chart walls. Read-only. //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 500, 300); //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Set the chart type chart.ChartType = OfficeChartType.Column_3D; //Set the fill type of wall as pattern chart.Walls.Fill.FillType = OfficeFillType.Pattern; //set the back color of the pattern fill chart.Walls.Fill.BackColor = Color.AliceBlue; //Set the fore color of the pattern fill chart.Walls.Fill.ForeColor = Color.Brown; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Set the chart type chart.ChartType = OfficeChartType.Column_3D 'Set the fill type of wall as pattern chart.Walls.Fill.FillType = OfficeFillType.Pattern 'set the back color of the pattern fill chart.Walls.Fill.BackColor = Color.AliceBlue 'Set the fore color of the pattern fill chart.Walls.Fill.ForeColor = Color.Brown 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets the chart BackWall. Read-only. //Open the presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Get the first slide ISlide slide = presentation.Slides[0]; //Get the chart in slide IPresentationChart chart = slide.Shapes[0] as IPresentationChart; //Change the chart type to 3D chart.ChartType = OfficeChartType.Bar_Clustered_3D; //Set the rotation chart.Rotation = 80; //Set the shadow angle chart.SideWall.Shadow.Angle = 60; //Set the backwall border weight chart.BackWall.Border.LineWeight = OfficeChartLineWeight.Narrow; //Save the presentation presentation.Save("output.pptx"); //Close the presentation presentation.Close(); 'Open the presentation Dim presentation As IPresentation = Presentation.Open("Sample.pptx") 'Get the first slide Dim slide As ISlide = presentation.Slides(0) 'Get the chart in slide Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IOfficeChart) 'Change the chart type to 3D chart.ChartType = OfficeChartType.Bar_Clustered_3D 'Set the rotation chart.Rotation = 80 'Set the shadow angle chart.SideWall.Shadow.Angle = 60 'Set the backwall border weight chart.BackWall.Border.LineWeight = OfficeChartLineWeight.Narrow 'Save the presentation presentation.Save("output.pptx") 'Close the presentation presentation.Close() Gets the chart BackWall. Read-only. //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 700, 500); //Specify the chart title chart.ChartTitle = "Sales Analysis"; //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Set the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData[2, 1, 4, 1]; //Specify the chart type chart.ChartType = OfficeChartType.Surface_3D; //Get the back wall of the chart IOfficeChartWallOrFloor backWall = chart.BackWall; //Set the line properties of the back wall backWall.LineProperties.LineWeight = OfficeChartLineWeight.Narrow; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 700, 500) 'Specify the chart title chart.ChartTitle = "Sales Analysis" 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Set the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData(2, 1, 4, 1) 'Specify the chart type chart.ChartType = OfficeChartType.Surface_3D 'Get the back wall of the chart Dim backWall As IOfficeChartWallOrFloor = chart.BackWall 'Set the line properties of the back wall backWall.LineProperties.LineWeight = OfficeChartLineWeight.Narrow 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets the chart floor. Read-only. //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 500, 300); //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Set the chart type chart.ChartType = OfficeChartType.Column_3D; //Get the floor of chart IOfficeChartWallOrFloor floor = chart.Floor; //Set the filltype of floor as pattern fill floor.Fill.FillType = OfficeFillType.Pattern; //Set the back and fore color of the pattern fill floor.Fill.BackColor = Color.Blue; floor.Fill.ForeColor = Color.Brown; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Set the chart type chart.ChartType = OfficeChartType.Column_3D 'Get the floor of chart Dim floor As IOfficeChartWallOrFloor = chart.Floor 'Set the filltype of floor as pattern fill floor.Fill.FillType = OfficeFillType.Pattern 'Set the back and fore color of the pattern fill floor.Fill.BackColor = Color.Blue floor.Fill.ForeColor = Color.Brown 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets the charts dataTable object. IPresentation presentation = Presentation.Open("Template.pptx"); ISlide slide = presentation.Slides[0]; //Get the chart from slide IPresentationChart chart = slide.Shapes[0] as IPresentationChart; //Set the chart with data table chart.HasDataTable = true; //Get the data table, read only IOfficeChartDataTable dataTable = chart.DataTable; //set borders for data table dataTable.HasBorders = true; //Set the show serie keys dataTable.ShowSeriesKeys = true; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); Dim presentation As IPresentation = Presentation.Open("Template.pptx") Dim slide As ISlide = presentation.Slides(0) 'Get the chart from slide Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IOfficeChart) 'Set the chart with data table chart.HasDataTable = True 'Get the data table, read only Dim dataTable As IOfficeChartDataTable = chart.DataTable 'set borders for data table dataTable.HasBorders = True 'Set the show serie keys dataTable.ShowSeriesKeys = True 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets whether the chart has data table. //Open the presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Get the first slide ISlide slide = presentation.Slides[0]; //Get the chart in slide IPresentationChart chart = slide.Shapes[0] as IPresentationChart; //Modify the chart height chart.Height = 500; //Modify the chart width chart.Width = 700; //Change the title chart.ChartTitle = "New title"; //Change the serie name of first chart serie chart.Series[0].Name = "Modified serie name"; //Hiding the category labels chart.CategoryLabelLevel = OfficeCategoriesLabelLevel.CategoriesLabelLevelNone; //Show Data Table. chart.HasDataTable = true; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Open the presentation Dim presentation As IPresentation = Presentation.Open("Sample.pptx") 'Get the first slide Dim slide As ISlide = presentation.Slides(0) 'Get the chart in slide Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IOfficeChart) 'Modify the chart height chart.Height = 500 'Modify the chart width chart.Width = 700 'Change the title chart.ChartTitle = "New title" 'Change the serie name of first chart serie chart.Series(0).Name = "Modified serie name" 'Hiding the category labels chart.CategoryLabelLevel = OfficeCategoriesLabelLevel.CategoriesLabelLevelNone 'Show Data Table. chart.HasDataTable = True 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets the chart legend. IPresentation presentation = Presentation.Create(); ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to slide IPresentationChart chart = slide.Shapes.AddChart(100, 120, 500, 300); //Sets the data range of chart chart.DataRange = chart.ChartData[1, 2, 4, 3]; //Set data to the chart- RowIndex, columnIndex and data chart.ChartData.SetValue(1, 2, "2012"); chart.ChartData.SetValue(2, 2, 330); chart.ChartData.SetValue(3, 2, 490); chart.ChartData.SetValue(4, 2, 700); chart.ChartType = OfficeChartType.Area; //Edge: Specifies that the width or Height will be interpreted as right or bottom of the chart element //Factor: Specifies that the width or Height will be interpreted as the width or height of the chart element chart.PlotArea.Layout.LeftMode = LayoutModes.auto; chart.PlotArea.Layout.TopMode = LayoutModes.factor; //Value in points should not be a negative value if LayoutMode is Edge //It can be a negative value if the LayoutMode is Factor. chart.ChartTitleArea.Layout.Left = 10; chart.ChartTitleArea.Layout.Top = 100; //Manually positioning chart plot area chart.PlotArea.Layout.LayoutTarget = LayoutTargets.outer; chart.PlotArea.Layout.LeftMode = LayoutModes.edge; chart.PlotArea.Layout.TopMode = LayoutModes.edge; //Manually positioning chart legend chart.Legend.Layout.LeftMode = LayoutModes.factor; chart.Legend.Layout.TopMode = LayoutModes.factor; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); Dim presentation As IPresentation = Presentation.Create() Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to slide Dim chart As IPresentationChart = slide.Shapes.AddChart(100, 120, 500, 300) 'Sets the data range of chart chart.DataRange = chart.ChartData(1, 2, 4, 3) 'Set data to the chart- RowIndex, columnIndex and data chart.ChartData.SetValue(1, 2, "2012") chart.ChartData.SetValue(2, 2, 330) chart.ChartData.SetValue(3, 2, 490) chart.ChartData.SetValue(4, 2, 700) chart.ChartType = OfficeChartType.Area 'Edge: Specifies that the width or Height will be interpreted as right or bottom of the chart element 'Factor: Specifies that the width or Height will be interpreted as the width or height of the chart element chart.PlotArea.Layout.LeftMode = LayoutModes.auto chart.PlotArea.Layout.TopMode = LayoutModes.factor 'Value in points should not be a negative value if LayoutMode is Edge 'It can be a negative value if the LayoutMode is Factor. chart.ChartTitleArea.Layout.Left = 10 chart.ChartTitleArea.Layout.Top = 100 'Manually positioning chart plot area chart.PlotArea.Layout.LayoutTarget = LayoutTargets.outer chart.PlotArea.Layout.LeftMode = LayoutModes.edge chart.PlotArea.Layout.TopMode = LayoutModes.edge 'Manually positioning chart legend chart.Legend.Layout.LeftMode = LayoutModes.factor chart.Legend.Layout.TopMode = LayoutModes.factor 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets whether the chart has legends. //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 500, 300); //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Hide the legend chart.HasLegend = false; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Hide the legend chart.HasLegend = False 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets the rotation of the 3-D chart view (the rotation of the plot area around the z-axis, in degrees).(0 to 360 degrees). //Open the presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Get the first slide ISlide slide = presentation.Slides[0]; //Get the chart in slide IPresentationChart chart = slide.Shapes[0] as IPresentationChart; //Change the chart type to 3D chart.ChartType = OfficeChartType.Bar_Clustered_3D; //Set the rotation chart.Rotation = 80; //Set the shadow angle chart.SideWall.Shadow.Angle = 60; //Set the backwall border weight chart.BackWall.Border.LineWeight = OfficeChartLineWeight.Narrow; //Save the presentation presentation.Save("output.pptx"); //Close the presentation presentation.Close(); 'Open the presentation Dim presentation As IPresentation = Presentation.Open("Sample.pptx") 'Get the first slide Dim slide As ISlide = presentation.Slides(0) 'Get the chart in slide Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IOfficeChart) 'Change the chart type to 3D chart.ChartType = OfficeChartType.Bar_Clustered_3D 'Set the rotation chart.Rotation = 80 'Set the shadow angle chart.SideWall.Shadow.Angle = 60 'Set the backwall border weight chart.BackWall.Border.LineWeight = OfficeChartLineWeight.Narrow 'Save the presentation presentation.Save("output.pptx") 'Close the presentation presentation.Close() Gets or sets the elevation of the 3-D chart view, in degrees (–90 to 90 degrees). //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 500, 300); //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //set the chart type chart.ChartType = OfficeChartType.Column_3D; //Set the elevation of chart chart.Elevation = -50; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'set the chart type chart.ChartType = OfficeChartType.Column_3D 'Set the elevation of chart chart.Elevation = -50 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets the perspective for the 3-D chart view (0 to 100). //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 500, 300); //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //set the chart type chart.ChartType = OfficeChartType.Column_3D; //Set the perspective chart.Perspective = 100; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'set the chart type chart.ChartType = OfficeChartType.Column_3D 'Set the perspective of chart chart.Perspective = 100 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets the height of a 3-D chart as a percentage of the chart width (between 5 and 500 percent). IPresentation presentation = Presentation.Open("Template.pptx"); ISlide slide = presentation.Slides[0]; //Get the chart from slide IPresentationChart chart = slide.Shapes[0] as IPresentationChart; //set the chart type chart.ChartType = OfficeChartType.Column_3D; //Set the height percent chart.HeightPercent = 400; //Set the Depth percent chart.DepthPercent = 200; //Set the gap depth of data series chart.GapDepth = 400; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); Dim presentation As IPresentation = Presentation.Open("Template.pptx") Dim slide As ISlide = presentation.Slides(0) 'Get the chart from slide Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IOfficeChart) 'set the chart type chart.ChartType = OfficeChartType.Column_3D 'Set the height percent chart.HeightPercent = 400 'Set the Depth percent chart.DepthPercent = 200 'Set the gap depth of data series chart.GapDepth = 400 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets the depth of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent). IPresentation presentation = Presentation.Open("Template.pptx"); ISlide slide = presentation.Slides[0]; //Get the chart from slide IPresentationChart chart = slide.Shapes[0] as IPresentationChart; //set the chart type chart.ChartType = OfficeChartType.Column_3D; //Set the height percent chart.HeightPercent = 400; //Set the Depth percent chart.DepthPercent = 200; //Set the gap depth of data series chart.GapDepth = 400; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); Dim presentation As IPresentation = Presentation.Open("Template.pptx") Dim slide As ISlide = presentation.Slides(0) 'Get the chart from slide Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IOfficeChart) 'set the chart type chart.ChartType = OfficeChartType.Column_3D 'Set the height percent chart.HeightPercent = 400 'Set the Depth percent chart.DepthPercent = 200 'Set the gap depth of data series chart.GapDepth = 400 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets the distance between the data series in a 3-D chart, as a percentage of the marker width.( 0 - 500 ) IPresentation presentation = Presentation.Open("Template.pptx"); ISlide slide = presentation.Slides[0]; //Get the chart from slide IPresentationChart chart = slide.Shapes[0] as IPresentationChart; //set the chart type chart.ChartType = OfficeChartType.Column_3D; //Set the height percent chart.HeightPercent = 400; //Set the Depth percent chart.DepthPercent = 200; //Set the gap depth of data series chart.GapDepth = 400; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); Dim presentation As IPresentation = Presentation.Open("Template.pptx") Dim slide As ISlide = presentation.Slides(0) 'Get the chart from slide Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IOfficeChart) 'set the chart type chart.ChartType = OfficeChartType.Column_3D 'Set the height percent chart.HeightPercent = 400 'Set the Depth percent chart.DepthPercent = 200 'Set the gap depth of data series chart.GapDepth = 400 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets whether if the chart axes are at right angles, independent of chart rotation or elevation. //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 500, 300); //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Set the right angle axes chart.RightAngleAxes = true; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Set the right angle axes chart.RightAngleAxes = True 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets whether if Microsoft Excel scales a 3-D chart so that it's closer in size to the equivalent 2-D chart. //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 700, 500); //Specify the chart title chart.ChartTitle = "Sales Analysis"; //Specify the chart type chart.ChartType = OfficeChartType.Column_Clustered; //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Set the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData[2, 1, 4, 1]; //Set the right angle axes property of the chart chart.RightAngleAxes = true; //Set the auto scaling of chart chart.AutoScaling = true; //Save the presentation presentation.Save("sample.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Set the right angle axes chart.RightAngleAxes = True 'Set the auto scaling of chart chart.AutoScaling = True 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets if grid lines are drawn two-dimensionally on a 3-D chart. //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 500, 300); //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //set the chart type chart.ChartType = OfficeChartType.Column_3D; //Set the 2D gridlines for chart chart.WallsAndGridlines2D = true; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'set the chart type chart.ChartType = OfficeChartType.Column_3D 'Set the 2D gridlines for chart chart.WallsAndGridlines2D = True 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets the way that blank cells are plotted on a chart. IPresentation presentation = Presentation.Open("Template.pptx"); ISlide slide = presentation.Slides[0]; //Get the chart from slide IPresentationChart chart = slide.Shapes[0] as IPresentationChart; //set the chart type chart.ChartType = OfficeChartType.Column_3D; //Set the way blank cells to be plotted chart.DisplayBlanksAs = OfficeChartPlotEmpty.Interpolated; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); Dim presentation As IPresentation = Presentation.Open("Template.pptx") Dim slide As ISlide = presentation.Slides(0) 'Get the chart from slide Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IOfficeChart) 'set the chart type chart.ChartType = OfficeChartType.Column_3D 'Set the way blank cells to be plotted chart.DisplayBlanksAs = OfficeChartPlotEmpty.Interpolated 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets whether if only visible cells are plotted. False if both visible and hidden cells are plotted. IPresentation presentation = Presentation.Open("Template.pptx"); ISlide slide = presentation.Slides[0]; //Get the chart from slide IPresentationChart chart = slide.Shapes[0] as IPresentationChart; //set the chart type chart.ChartType = OfficeChartType.Column_3D; //Hide the plot visiblity of cells chart.PlotVisibleOnly = false; //Hide the chart size with sheet window chart.SizeWithWindow = false; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); Dim presentation As IPresentation = Presentation.Open("Template.pptx") Dim slide As ISlide = presentation.Slides(0) 'Get the chart from slide Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IOfficeChart) 'set the chart type chart.ChartType = OfficeChartType.Column_3D 'Hide the plot visiblity of cells chart.PlotVisibleOnly = False 'Hide the chart size with sheet window chart.SizeWithWindow = False 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets whether the chart size matches with the chart sheet window. True if Microsoft Excel resizes the chart to match the size of the chart sheet window. False if the chart size isn't attached to the window size. Applies only to chart sheets. IPresentation presentation = Presentation.Open("Template.pptx"); ISlide slide = presentation.Slides[0]; //Get the chart from slide IPresentationChart chart = slide.Shapes[0] as IPresentationChart; //set the chart type chart.ChartType = OfficeChartType.Column_3D; //Hide the plot visiblity of cells chart.PlotVisibleOnly = false; //Hide the chart size with sheet window chart.SizeWithWindow = false; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); Dim presentation As IPresentation = Presentation.Open("Template.pptx") Dim slide As ISlide = presentation.Slides(0) 'Get the chart from slide Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IOfficeChart) 'set the chart type chart.ChartType = OfficeChartType.Column_3D 'Hide the plot visiblity of cells chart.PlotVisibleOnly = False 'Hide the chart size with sheet window chart.SizeWithWindow = False 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets the collection of the all categories of this chart. Read-only. //Creates a Presentation instance IPresentation pptxDoc = Presentation.Create(); //Adds a blank slide to the Presentation ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Adds chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 700, 500); //Specifies the chart title chart.ChartTitle = "Sales Analysis"; //Sets chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Sets chart data - Row2 chart.ChartData.SetValue(2, 1, 2010); chart.ChartData.SetValue(2, 2, 60); chart.ChartData.SetValue(2, 3, 70); chart.ChartData.SetValue(2, 4, 80); //Sets chart data - Row3 chart.ChartData.SetValue(3, 1, 2011); chart.ChartData.SetValue(3, 2, 80); chart.ChartData.SetValue(3, 3, 70); chart.ChartData.SetValue(3, 4, 60); //Sets chart data - Row4 chart.ChartData.SetValue(4, 1, 2012); chart.ChartData.SetValue(4, 2, 60); chart.ChartData.SetValue(4, 3, 70); chart.ChartData.SetValue(4, 4, 80); //Creates a new chart series with the name IOfficeChartSerie seriesJan = chart.Series.Add("Jan"); //Sets the data range of chart series – start row, start column, end row, end column seriesJan.Values = chart.ChartData[2, 2, 4, 2]; //Creates a new chart series with the name IOfficeChartSerie seriesFeb = chart.Series.Add("Feb"); //Sets the data range of chart series – start row, start column, end row, end column seriesFeb.Values = chart.ChartData[2, 3, 4, 3]; //Creates a new chart series with the name IOfficeChartSerie seriesMarch = chart.Series.Add("March"); //Sets the data range of chart series – start row, start column, end row, end column seriesMarch.Values = chart.ChartData[2, 4, 4, 4]; //Sets the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData[2, 1, 4, 1]; //Specifies the chart type chart.ChartType = OfficeChartType.Column_Clustered; //Get the chart categories. IOfficeChartCategories chartCategories = chart.Categories; bool value = chartCategories.IsReadOnly; //Save the presentation pptxDoc.Save("Sample.pptx"); //Close the presentation pptxDoc.Close(); 'Creates a Presentation instance Dim pptxDoc As IPresentation = Presentation.Create() 'Adds a blank slide to the Presentation Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Adds chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 700, 500) 'Specifies the chart title chart.ChartTitle = "Sales Analysis" 'Sets chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Sets chart data - Row2 chart.ChartData.SetValue(2, 1, 2010) chart.ChartData.SetValue(2, 2, 60) chart.ChartData.SetValue(2, 3, 70) chart.ChartData.SetValue(2, 4, 80) 'Sets chart data - Row3 chart.ChartData.SetValue(3, 1, 2011) chart.ChartData.SetValue(3, 2, 80) chart.ChartData.SetValue(3, 3, 70) chart.ChartData.SetValue(3, 4, 60) 'Sets chart data - Row4 chart.ChartData.SetValue(4, 1, 2012) chart.ChartData.SetValue(4, 2, 60) chart.ChartData.SetValue(4, 3, 70) chart.ChartData.SetValue(4, 4, 80) 'Creates a new chart series with the name Dim seriesJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Sets the data range of chart series – start row, start column, end row, end column seriesJan.Values = chart.ChartData(2, 2, 4, 2) 'Creates a new chart series with the name Dim seriesFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Sets the data range of chart series – start row, start column, end row, end column seriesFeb.Values = chart.ChartData(2, 3, 4, 3) 'Creates a new chart series with the name Dim seriesMarch As IOfficeChartSerie = chart.Series.Add("March") 'Sets the data range of chart series – start row, start column, end row, end column seriesMarch.Values = chart.ChartData(2, 4, 4, 4) 'Sets the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData(2, 1, 4, 1) 'Specifies the chart type chart.ChartType = OfficeChartType.Column_Clustered 'Get the chart categories Dim chartCategories As IOfficeChartCategories = chart.Categories Dim value As Boolean = chartCategories.IsReadOnly 'Adds the third slide into the Presentation pptxDoc.Save("Sample.pptx") 'Closes the Presentation pptxDoc.Close() Gets or sets the series name filter option //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 500, 300); //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //set the serie name level chart.SeriesNameLevel = OfficeSeriesNameLevel.SeriesNameLevelNone; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'set the serie name level chart.SeriesNameLevel = OfficeSeriesNameLevel.SeriesNameLevelNone 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets the category name filter option //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 700, 500); //Specify the chart title chart.ChartTitle = "Sales Analysis"; //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Set the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData[2, 1, 4, 1]; //Specify the chart type chart.ChartType = OfficeChartType.Surface_3D; //Set the category label level chart.CategoryLabelLevel = OfficeCategoriesLabelLevel.CategoriesLabelLevelAll; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 700, 500) 'Specify the chart title chart.ChartTitle = "Sales Analysis" 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Set the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData(2, 1, 4, 1) 'Specify the chart type chart.ChartType = OfficeChartType.Surface_3D 'Set the category label level chart.CategoryLabelLevel = OfficeCategoriesLabelLevel.CategoriesLabelLevelAll 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets the chart data. Read-only. //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 700, 500); //Specify the chart title chart.ChartTitle = "Sales Analysis"; //Specify the chart type chart.ChartType = OfficeChartType.Column_Clustered; //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Set the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData[2, 1, 4, 1]; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 700, 500) 'Specify the chart title chart.ChartTitle = "Sales Analysis" 'Specify the chart type chart.ChartType = OfficeChartType.Column_Clustered 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Set the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData(2, 1, 4, 1) 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Gets or sets the Style of the chart. //Create a presentation instance IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add chart to the slide with position and size IPresentationChart chart = slide.Charts.AddChart(100, 10, 700, 500); //Specify the chart style chart.Style=30; //Specify the chart title chart.ChartTitle = "Sales Analysis"; //Specify the chart type chart.ChartType = OfficeChartType.Column_Clustered; //Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); //Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); //Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); //Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); //Create a new chart series with the name IOfficeChartSerie serieJan = chart.Series.Add("Jan"); //Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData[2, 2, 4, 2]; //Create a new chart series with the name IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); //Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData[2, 3, 4, 3]; //Create a new chart series with the name IOfficeChartSerie serieMarch = chart.Series.Add("March"); //Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData[2, 4, 4, 4]; //Set the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData[2, 1, 4, 1]; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 700, 500) 'Specify the chart style chart.Style=30; 'Specify the chart title chart.ChartTitle = "Sales Analysis" 'Specify the chart type chart.ChartType = OfficeChartType.Column_Clustered 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie – start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie – start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series – start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Set the data range of the category axis chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData(2, 1, 4, 1) 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() True if chart is parsed; otherwise False. Determines whether to use the excel data range for the chart. Determines whether the chart data range is set or not. Converts the chart to image and saves the image to the specified stream. The stream to save the image. Sets the chart data with the specified two dimensional data. Represents the two dimensional chart data Set data range for chart from the sheet. Worksheet number in the excel document that contains data for a chart. Data range in the worksheet from which the chart to be created. Sets the chart data with the specified two dimensional data,row and column index. Represents the two dimensional chart data Row of the first cell where array should be imported. Column of the first cell where array should be imported. Sets the chart data. IEnumerable object with desired data Row of the first cell where array should be imported. Column of the first cell where array should be imported. Replaces the chart data with the worksheet data. Optional Boolean. Set to true to update all the formulas in the Excel sheet. The default value is false. //Open a presentation containing charts IPresentation presentation = Presentation.Open("Template.pptx"); //Get the slide from presentation ISlide slide = presentation.Slides[0]; //Get the chart from slide IPresentationChart chart = slide.Charts[0]; //Refreshes the chart object according its excel data. chart.Refresh(true); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Open a presentation containing charts Dim presentation As IPresentation = Presentation.Open("Template.pptx") 'Get the slide from presentation Dim slide As ISlide = presentation.Slides(0) 'Get the chart from slide Dim chart As IPresentationChart = slide.Charts(0) 'Refreshes the chart object according its excel data. chart.Refresh(True) 'Save the presentation presentation.Save("Sample.pptx") 'Close the presentation presentation.Close() Returns the current chart object. Compares the current Shape object with given Shape object. The Shape object to compare with the current instance. True if the Shape objects are equal; otherwise, false. Gets a instance for this chart. Read-only. This property can be used in to convert chart as an image. Type of the chart. DataRange for the chart series. True if series are in rows in DataRange; False otherwise. Title of the chart. Returns object that describes chart title area. Read-only. Page setup for the chart. Read-only. X coordinate of the upper-left corner of the chart in points (1/72 inch). Y coordinate of the upper-left corner of the chart in points (1/72 inch). Collection of the all series of this chart. Read-only. Primary category axis. Read-only. Primary value axis. Read-only. Primary series axis. Read-only. Secondary category axis. Read-only. Secondary value axis. Read-only. Returns an object that represents the complete chart area for the chart. Read-only. Returns plot area frame format. Read-only. Represents chart walls. Read-only. Represents chart BackWall. Read-only. Represents chart BackWall. Read-only. Represents chart floor. Read-only. Represents charts dataTable object. True if the chart has a data table. Represents chart legend. True if the chart has a legend object. Returns or sets the rotation of the 3-D chart view (the rotation of the plot area around the z-axis, in degrees).(0 to 360 degrees). Returns or sets the elevation of the 3-D chart view, in degrees (–90 to +90 degrees). Returns or sets the perspective for the 3-D chart view (0 to 100). Returns or sets the height of a 3-D chart as a percentage of the chart width (between 5 and 500 percent). Returns or sets the depth of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent). Returns or sets the distance between the data series in a 3-D chart, as a percentage of the marker width.( 0 - 500 ) True if the chart axes are at right angles, independent of chart rotation or elevation. True if Microsoft Excel scales a 3-D chart so that it's closer in size to the equivalent 2-D chart. True if gridlines are drawn two-dimensionally on a 3-D chart.This is only for Binary file format. Indicates whether chart has plot area. Represents the way that blank cells are plotted on a chart. True if only visible cells are plotted. False if both visible and hidden cells are plotted.This is only for Binary file format. True if Microsoft Excel resizes the chart to match the size of the chart sheet window. False if the chart size isn't attached to the window size. Applies only to chart sheets. This is only for Binary file format. Gets or sets the type of the pivot chart. The type of the pivot chart. Gets or sets a value indicating whether [show all field buttons]. true if [show all field buttons]; otherwise, false. Gets or sets a value indicating whether [show value field buttons]. true if [show value field buttons]; otherwise, false. Gets or sets a value indicating whether [show axis field buttons]. true if [show axis field buttons]; otherwise, false. Gets or sets a value indicating whether [show legend field buttons]. true if [show legend field buttons]; otherwise, false. Gets or sets a value indicating whether [show report filter field buttons]. true if [show report filter field buttons]; otherwise, false. Collection of the all categories of this chart. Read-only. Represents the series name filter option Represents the category name filter option Represents the style of the chart Represents chart data. Read-only. Returns or sets whether to use the excel data range for chart. Determines whether Chart data range is set or not. True if chart is parsed; False otherwise. Represents the document properties in a MS Word document. Represents the built-in document properties. Gets or sets the title. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the Title. builtInDocumentProperties.Title = "Presentation Title"; //Save the presentation. presentation.Save("Title.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the Title builtInDocumentProperties.Title = "Presentation Title" 'Save the presentation. presentation__1.Save("Title.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the subject. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the Subject builtInDocumentProperties.Subject = "Subject"; //Save the presentation. presentation.Save("Subject.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the Subject builtInDocumentProperties.Subject = "Subject" 'Save the presentation. presentation__1.Save("Subject.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the author. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the Author builtInDocumentProperties.Author = "Author"; //Save the presentation. presentation.Save("Author.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the Author builtInDocumentProperties.Author = "Author" 'Save the presentation. presentation__1.Save("Author.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the keywords. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the keywords. builtInDocumentProperties.Keywords = "Keywords"; //Save the presentation. presentation.Save("Keywords.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the keywords. builtInDocumentProperties.Keywords = "Keywords" 'Save the presentation. presentation__1.Save("Keywords.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the comments. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the comments. builtInDocumentProperties.Comments = "Comments"; //Save the presentation. presentation.Save("Comments.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the comments. builtInDocumentProperties.Comments = "Comments" 'Save the presentation. presentation__1.Save("Comments.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the template. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the template. builtInDocumentProperties.Template = "Presentation Template"; //Save the presentation. presentation.Save("Template.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the template. builtInDocumentProperties.Template = "Presentation Template" 'Save the presentation. presentation__1.Save("Template.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the last author. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the last author. builtInDocumentProperties.LastAuthor = "Last Author"; //Save the presentation. presentation.Save("LastAuthor.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the last author. builtInDocumentProperties.LastAuthor = "Last Author" 'Save the presentation. presentation__1.Save("LastAuthor.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the revision number. This property is intended to store only valid numerical string. Any non-numerical string assigned to this property will not be accepted. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the revision number. builtInDocumentProperties.RevisionNumber = "200"; //Save the presentation. presentation.Save("RevisionNumber.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the revision number. builtInDocumentProperties.RevisionNumber = "200" 'Save the presentation. presentation__1.Save("RevisionNumber.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the edit time. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the edit time. builtInDocumentProperties.EditTime = TimeSpan.FromDays(22); //Save the presentation. presentation.Save("EditTime.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the edit time. builtInDocumentProperties.EditTime = TimeSpan.FromDays(22) 'Save the presentation. presentation__1.Save("EditTime.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the last printed. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the last printed. builtInDocumentProperties.LastPrinted = DateTime.Now; //Save the presentation. presentation.Save("LastPrinted.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the last printed. builtInDocumentProperties.LastPrinted = DateTime.Now 'Save the presentation. presentation__1.Save("LastPrinted.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the creation date. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the creation date. builtInDocumentProperties.CreationDate = DateTime.Today; //Save the presentation. presentation.Save("CreationDate.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the creation date. builtInDocumentProperties.CreationDate = DateTime.Today 'Save the presentation. presentation__1.Save("CreationDate.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the last save date. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the last save date. builtInDocumentProperties.LastSaveDate = DateTime.Today; //Save the presentation. presentation.Save("LastSaveDate.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the last save date. builtInDocumentProperties.LastSaveDate = DateTime.Today 'Save the presentation. presentation__1.Save("LastSaveDate.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the page count. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the page count. builtInDocumentProperties.PageCount = 300; //Save the presentation. presentation.Save("PageCount.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the page count. builtInDocumentProperties.PageCount = 300 'Save the presentation. presentation__1.Save("PageCount.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the word count. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the word count. builtInDocumentProperties.WordCount = 551; //Save the presentation. presentation.Save("WordCount.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the word count. builtInDocumentProperties.WordCount = 551 'Save the presentation. presentation__1.Save("WordCount.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the character count. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the character count. builtInDocumentProperties.CharCount = 10; //Save the presentation. presentation.Save("CharCount.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the character count. builtInDocumentProperties.CharCount = 10 'Save the presentation. presentation__1.Save("CharCount.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the category. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the category. builtInDocumentProperties.Category = "Category"; //Save the presentation. presentation.Save("Category.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the category. builtInDocumentProperties.Category = "Category" 'Save the presentation. presentation__1.Save("Category.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the target format (35mm, printer, video, and so on). //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the PresentationTarget builtInDocumentProperties.PresentationTarget = "Presentation Target"; //Save the presentation. presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the PresentationTarget builtInDocumentProperties.PresentationTarget = "Presentation Target" 'Save the presentation. presentation__1.Save("Output.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the byte count. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the byte count. builtInDocumentProperties.ByteCount = 20; //Save the presentation. presentation.Save("ByteCount.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the byte count. builtInDocumentProperties.ByteCount = 20 'Save the presentation. presentation__1.Save("ByteCount.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the line count. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the line count. builtInDocumentProperties.LineCount = 3; //Save the presentation. presentation.Save("LineCount.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the line count. builtInDocumentProperties.LineCount = 3 'Save the presentation. presentation__1.Save("LineCount.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the paragraph count. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the paragraph count. builtInDocumentProperties.ParagraphCount = 84; //Save the presentation. presentation.Save("ParagraphCount.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the paragraph count. builtInDocumentProperties.ParagraphCount = 84 'Save the presentation. presentation__1.Save("ParagraphCount.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the SlideCount. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the SlideCount. builtInDocumentProperties.SlideCount = 10; //Save the presentation. presentation.Save("SlideCount.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the SlideCount. builtInDocumentProperties.SlideCount = 10 'Save the presentation. presentation__1.Save("SlideCount.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the note count. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the note count. builtInDocumentProperties.NoteCount = 100; //Save the presentation. presentation.Save("NoteCount.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the note count. builtInDocumentProperties.NoteCount = 100 'Save the presentation. presentation__1.Save("NoteCount.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the hidden count. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the hidden count. builtInDocumentProperties.HiddenCount = 40; //Save the presentation. presentation.Save("NoteCount.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the hidden count. builtInDocumentProperties.HiddenCount = 40 'Save the presentation. presentation__1.Save("NoteCount.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the MultimediaClipCount. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the MultimediaClipCount. builtInDocumentProperties.MultimediaClipCount = 0; //Save the presentation. presentation.Save("MultimediaClipCount.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the MultimediaClipCount. builtInDocumentProperties.MultimediaClipCount = 0 'Save the presentation. presentation__1.Save("MultimediaClipCount.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the manager name. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the manager name. builtInDocumentProperties.Manager = "Manager"; //Save the presentation. presentation.Save("MultimediaClipCount.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the manager name. builtInDocumentProperties.Manager = "Manager" 'Save the presentation. presentation__1.Save("MultimediaClipCount.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the company name. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the company name. builtInDocumentProperties.Company = "Company"; //Save the presentation. presentation.Save("Company.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the company name. builtInDocumentProperties.Company = "Company" 'Save the presentation. presentation__1.Save("Company.pptx") 'Close the presentation. presentation__1.Close() Indicates whether the custom links are hampered by excessive noise, for all applications. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the LinksDirty builtInDocumentProperties.LinksDirty = true; //Save the presentation. presentation.Save("Company.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the LinksDirty builtInDocumentProperties.LinksDirty = true 'Save the presentation. presentation__1.Save("Company.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the application name. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the application name. builtInDocumentProperties.ApplicationName = "Application Name"; //Save the presentation. presentation.Save("ApplicationName.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the application name. builtInDocumentProperties.ApplicationName = "Application Name" 'Save the presentation. presentation__1.Save("ApplicationName.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the content status. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the content status. builtInDocumentProperties.ContentStatus = "Content Status"; //Save the presentation. presentation.Save("ContentStatus.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the content status. builtInDocumentProperties.ContentStatus = "Content Status" 'Save the presentation. presentation__1.Save("ContentStatus.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the language. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the language. builtInDocumentProperties.Language = "English"; //Save the presentation. presentation.Save("Language.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the language. builtInDocumentProperties.Language = "English" 'Save the presentation. presentation__1.Save("Language.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the version. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built in document properties from the presentation. IBuiltInDocumentProperties builtInDocumentProperties = presentation.BuiltInDocumentProperties; //Set the version. builtInDocumentProperties.Version = "1"; //Save the presentation. presentation.Save("Version.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built in document properties from the presentation. Dim builtInDocumentProperties As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the version. builtInDocumentProperties.Version = "1" 'Save the presentation. presentation__1.Save("Version.pptx") 'Close the presentation. presentation__1.Close() Guid for parsing/serialization summary properties. Guid for parsing/serialization document properties. Dictionary with document properties, key - property name/id, value - property object. Dictionary with summary document properties, key - property id, value - property object. Default constructor. Returns dictionary where property must be placed. Property id. Dictionary where property must be placed. Title document property. Subject document property. Author document property. Keywords document property. Comments document property. Template document property. LastAuthor document property. Revision number document property. This property is intended to store only valid numerical string. Any non-numerical string assigned to this property will not be accepted. EditTime document property. LastPrinted document property. CreationDate document property. LastSaveDate document property. PageCount document property. WordCount document property. CharCount document property. Indicates whether the file has Headpair tag. Category. Target format for presentation (35mm, printer, video, and so on). ByteCount. LineCount. ParCount. SlideCount. NoteCount. HiddenCount. MmclipCount. Set to True when scaling of the thumbnail is desired. If not set, cropping is desired. Manager. Company. Boolean value to indicate whether the custom links are hampered by excessive noise, for all applications. Clipboard format. Clipboard data. Createas copy of the current object. A copy of the current object. Saves clipboard data into stream. Stream to write data into. Size of the written data. Extracts data from the stream. Stream to get data from. Contains utility methods for object cloning. Clones int array. Array to clone Returns cloned array. Clones ushort array. Array to clone. Returns cloned array. Clones string array. Array to clone. Returns cloned array. Clones object array. Array to clone. Returns cloned array. Clones object that implements ICloneable interface. Object to clone. A clone of the object. Clones byte array. Array to clone. Return cloned array. Clone Dictionary. Dictionary to clone Returns a copy of the Dictionary. Clone Dictionary. Dictionary to clone Returns a copy of the Dictionary. Creates copy of the stream. Stream to copy. Created stream. Summary description for CustomDocumentProperties. Represents the custom document properties. Removes the property with specified name, from the document property collection. The name of the property to remove. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new custom document property customDocumentProperties.Add("PropertyA"); //Check if the item exist in document properties and remove if (customDocumentProperties.Contains("PropertyA")) customDocumentProperties.Remove("PropertyA"); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new custom document property customDocumentProperties.Add("PropertyA") 'Check if the item exist in document properties and remove If customDocumentProperties.Contains("PropertyA") Then customDocumentProperties.Remove("PropertyA") End If 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Determines whether the property with specified name is in the document property collection. The name of the document property to locate. true if property is present in the collection; otherwise, false. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new custom document property customDocumentProperties.Add("PropertyA"); //Check if the item exist in document properties if (customDocumentProperties.Contains("PropertyA")) //Sets a four byte signed integer value. customDocumentProperties["PropertyA"].Int32 = 256; //Save the presentation presentation.Save("Clear.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new custom document property customDocumentProperties.Add("PropertyA") 'Check if the item exist in document properties If customDocumentProperties.Contains("PropertyA") Then 'Sets a four byte signed integer value. customDocumentProperties("PropertyA").Int32 = 256 End If 'Save the presentation presentation__1.Save("Clear.pptx") 'Close the presentation presentation__1.Close() Adds a document property to the presentation with the specified name. The name of the document property. The instance //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new custom document property customDocumentProperties.Add("Property1"); //Set a Boolean value. customDocumentProperties["Property1"].Boolean = true; //Save the presentation presentation.Save("Output.pptx"); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new custom document property customDocumentProperties.Add("Property1") 'Set a Boolean value. customDocumentProperties("Property1").[Boolean] = True 'Save the presentation presentation__1.Save("Output.pptx") Removes all the document properties from the presentation. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new custom document property customDocumentProperties.Add("Property1"); //Set a Boolean value. customDocumentProperties["Property1"].Boolean = true; //Add a new custom document property customDocumentProperties.Add("Property2"); //Set a date time. customDocumentProperties["Property2"].DateTime = DateTime.Now; //Clear the properties customDocumentProperties.Clear(); //Save the presentation presentation.Save("Clear.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new custom document property customDocumentProperties.Add("Property1") 'Set a Boolean value. customDocumentProperties("Property1").[Boolean] = True 'Add a new custom document property customDocumentProperties.Add("Property2") 'Set a date time. customDocumentProperties("Property2").DateTime = DateTime.Now 'Clear the properties customDocumentProperties.Clear() 'Save the presentation presentation__1.Save("Clear.pptx") 'Close the presentation presentation__1.Close() Gets a instance with the specified name, from the document property collection. Read-only. The name of the document property to locate. Returns the element at the particular name. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new custom document property customDocumentProperties.Add("Property1"); //Set a Boolean value. customDocumentProperties["Property1"].Boolean = true; //Add a new custom document property customDocumentProperties.Add("Property2"); //Set a date time. customDocumentProperties["Property2"].DateTime = DateTime.Now; //Get the specific property, read only IDocumentProperty documentProp = customDocumentProperties["Property1"]; //Save the presentation presentation.Save("CustomProperty.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new custom document property customDocumentProperties.Add("Property1") 'Set a Boolean value. customDocumentProperties("Property1").[Boolean] = True 'Add a new custom document property customDocumentProperties.Add("Property2") 'Set a date time. customDocumentProperties("Property2").DateTime = DateTime.Now 'Get the specific property, read only Dim documentProp As IDocumentProperty = customDocumentProperties("Property1") 'Save the presentation presentation__1.Save("CustomProperty.pptx") 'Close the presentation presentation__1.Close() Gets a instance at the specified index of document property collection. Read-only. The zero-based index of the element. Returns the element at the particular index. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new custom document property customDocumentProperties.Add("Property1"); //Set a Boolean value. customDocumentProperties["Property1"].Boolean = true; //Add a new custom document property customDocumentProperties.Add("Property2"); //Set a date time. customDocumentProperties["Property2"].DateTime = DateTime.Now; //Get the property at specific index, read only IDocumentProperty documentProperty = customDocumentProperties[0]; //Save the presentation presentation.Save("CustomProperty.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new custom document property customDocumentProperties.Add("Property1") 'Set a Boolean value. customDocumentProperties("Property1").[Boolean] = True 'Add a new custom document property customDocumentProperties.Add("Property2") 'Set a date time. customDocumentProperties("Property2").DateTime = DateTime.Now 'Get the property at specific index, read only Dim documentProperty As IDocumentProperty = customDocumentProperties(0) 'Save the presentation presentation__1.Save("CustomProperty.pptx") 'Close the presentation presentation__1.Close() Gets the number of document properties in the presentation. Read-only. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new custom document property customDocumentProperties.Add("Property1"); //Set a Boolean value. customDocumentProperties["Property1"].Boolean = true; //Add a new custom document property customDocumentProperties.Add("Property2"); //Set a date time. customDocumentProperties["Property2"].DateTime = DateTime.Now; //Add a new custom document property customDocumentProperties.Add("Property3"); //Sets a four byte signed integer value. customDocumentProperties["Property3"].Int32 = 256; //Get the count of custom document properties, read only int count = customDocumentProperties.Count; //Save the presentation presentation.Save("Count.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new custom document property customDocumentProperties.Add("Property1") 'Set a Boolean value. customDocumentProperties("Property1").[Boolean] = True 'Add a new custom document property customDocumentProperties.Add("Property2") 'Set a date time. customDocumentProperties("Property2").DateTime = DateTime.Now 'Add a new custom document property customDocumentProperties.Add("Property3") 'Sets a four byte signed integer value. customDocumentProperties("Property3").Int32 = 256 'Get the count of custom document properties, read only Dim count As Integer = customDocumentProperties.Count 'Save the presentation presentation__1.Save("Count.pptx") 'Close the presentation presentation__1.Close() Custom guid string. Guid used for parsing/serialization of custom properties. Dictionary with document properties, key - property name/id, value - property value. Default constructor. Returns custom property by name. Custom property. Custom property. Returns the document property list of the custom document properties. Document property list. Removes specified object from the collection. Property name. Adds element to the collection. Property name to add. Newly created property. Checks whether collection contains property with specified name. Name to check. True if property is contained by collection; false otherwise. Returns single entry from the collection. Read-only. Returns single entry from the collection. Read-only. This class contains constants required for document properties parsing and serialization in Excel 2007 format. Core properties enable users to get and set well-known and common sets of property metadata within packages. Represents a categorization of the content of this package. Represents the date of creation of the resource. Represents an entity primarily responsible for making the content of the resource. Represents an explanation of the content of the resource. Represents a delimited set of keywords to support searching and indexing. Represents the user who performed the last modification. Represents the date and time of the last printing. Represents the date on which the resource was changed. Represents the topic of the content of the resource. Represents the name given to the resource. Represents Xsi attribute. Represents Xsi attribute value. Represents date time format structure. This element specifies the application properties of a document. This element specifies the name of the application that created this document. This element specifies the total number of characters in a document. This element specifies the name of a company associated with the document. MS Excel uses this Tag to represents the xml parts. In our XlsIO, this tag is used to find the document is generated by MS Excel. Tag to represents the file is generated by Essential Presentation. This element specifies the total number of lines in a document when last saved by a conforming producer if applicable. This element specifies the name of a supervisor associated with the document. This element specifies the total number of sound or video clips that are present in the document. This element specifies the number of slides in a presentation containing notes. This element specifies the total number of pages of a document if applicable. This element specifies the total number of paragraphs found in a document if applicable. This element specifies the intended format for a presentation document. This element specifies the total number of slides in a presentation document. This element specifies the name of an external document template containing format and style information used to create the current document. Total time that a document has been edited. The default time unit is minutes. This element specifies the total number of words contained in a document when last saved. This element specifies the base string used for evaluating relative hyperlinks in this document. Represents default Excel97-03 hyperlink base name. Parent element for the custom file properties part. This element specifies a single custom file property. Uniquely relates a custom property with an OLE property. Uniquely relates a custom property with an OLE property. Specifies the name of this custom file property. This element specifies a Boolean variant type. This element specifies a wide string variant type. This element specifies a string variant type. This element specifies a date variant type of type date-time as defined in RFC 3339. This element specifies a 4-byte signed integer variant type. This element specifies a 8-byte real number variant type. This element specifies an integer variant type. This element specifies a file-time variant type of type date-time. Represents the name of the link target attribute. Summary description for DocumentPropertyImpl. Represents the custom or built-in document property. Indicates whether the property is built-in or not. Read-only. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new document property. IDocumentProperty documentProperty = customDocumentProperties.Add("PropertyA"); //Set a Boolean value. documentProperty.Boolean = true; //Get boolean value to check if built-in property or not, it is read only bool value = documentProperty.IsBuiltIn; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new document property. Dim documentProperty As IDocumentProperty = customDocumentProperties.Add("PropertyA") 'Set a Boolean value. documentProperty.[Boolean] = True 'Get boolean value to check if built-in property or not, it is read only Dim value As Boolean = documentProperty.IsBuiltIn 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation. presentation__1.Close() Gets the property id for the built-in property. Read-only. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new document property. IDocumentProperty documentProperty = customDocumentProperties.Add("PropertyA"); //Set a Boolean value. documentProperty.Boolean = true; //Get the built-in property, it is read only BuiltInProperty builtinProp = documentProperty.BuiltInProperty; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new document property. Dim documentProperty As IDocumentProperty = customDocumentProperties.Add("PropertyA") 'Set a Boolean value. documentProperty.[Boolean] = True 'Get the built-in property, it is read only Dim builtinProp As BuiltInProperty = documentProperty.BuiltInProperty 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation. presentation__1.Close() Gets the property name. Read-only. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new document property. IDocumentProperty documentProperty = customDocumentProperties.Add("PropertyA"); //Set a Boolean value. documentProperty.Boolean = true; //Get the name of document property string name = documentProperty.Name; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new document property. Dim documentProperty As IDocumentProperty = customDocumentProperties.Add("PropertyA") 'Set a Boolean value. documentProperty.[Boolean] = True 'Get the name of document property Dim name As String = documentProperty.Name 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the property value. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new document property. IDocumentProperty documentProperty = customDocumentProperties.Add("PropertyA"); //Set the timespan value documentProperty.TimeSpan = TimeSpan.FromMinutes(20.30); //Set the value of document property documentProperty.Value = 100; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new document property. Dim documentProperty As IDocumentProperty = customDocumentProperties.Add("PropertyA") 'Set the timespan value documentProperty.TimeSpan = TimeSpan.FromMinutes(20.3) //Set the value of document property documentProperty.Value = 100; 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the boolean value. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new document property. IDocumentProperty documentProperty = customDocumentProperties.Add("PropertyA"); //Set a Boolean value. documentProperty.Boolean = true; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new document property. Dim documentProperty As IDocumentProperty = customDocumentProperties.Add("PropertyA") 'Set a Boolean value. documentProperty.[Boolean] = True 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the integer value. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new document property. IDocumentProperty documentProperty = customDocumentProperties.Add("PropertyA"); //Set the integer property documentProperty.Integer = 130; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new document property. Dim documentProperty As IDocumentProperty = customDocumentProperties.Add("PropertyA") 'Set integer property documentProperty.[Integer] = 130 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the 4-bytes signed integer value. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new document property. IDocumentProperty documentProperty = customDocumentProperties.Add("PropertyA"); //Set value for Int32 documentProperty.Int32 = 25; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new document property. Dim documentProperty As IDocumentProperty = customDocumentProperties.Add("PropertyA") 'Set value for Int32 documentProperty.Int32 = 25 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the double value. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new document property. IDocumentProperty documentProperty = customDocumentProperties.Add("PropertyA"); //Set a double value. documentProperty.Double = 345.00; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new document property. Dim documentProperty As IDocumentProperty = customDocumentProperties.Add("PropertyA") 'Set a double value. documentProperty.[Double] = 345.0 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the string value. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new document property. IDocumentProperty documentProperty = customDocumentProperties.Add("PropertyA"); //Set the text documentProperty.Text = "Document Property"; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new document property. Dim documentProperty As IDocumentProperty = customDocumentProperties.Add("PropertyA") 'Set the text documentProperty.Text = "Document Property" 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the DateTime value. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new document property. IDocumentProperty documentProperty = customDocumentProperties.Add("PropertyA"); //Set a date time. documentProperty.DateTime = DateTime.Now; //Save the presentation presentation.Save("DateTime.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new document property. Dim documentProperty As IDocumentProperty = customDocumentProperties.Add("PropertyA") 'Set a date time. documentProperty.DateTime = DateTime.Now 'Save the presentation presentation__1.Save("DateTime.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the TimeSpan value. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new document property. IDocumentProperty documentProperty = customDocumentProperties.Add("PropertyA"); //Set the timespan value documentProperty.TimeSpan = TimeSpan.FromMinutes(20.30); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new document property. Dim documentProperty As IDocumentProperty = customDocumentProperties.Add("PropertyA") 'Set the timespan value documentProperty.TimeSpan = TimeSpan.FromMinutes(20.3) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation. presentation__1.Close() Gets or sets the source of a linked custom document property. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new document property. IDocumentProperty documentProperty = customDocumentProperties.Add("PropertyA"); //Set the link source documentProperty.LinkSource = "www.google.com"; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new document property. Dim documentProperty As IDocumentProperty = customDocumentProperties.Add("PropertyA") 'Set the link source documentProperty.LinkSource = "www.google.com" 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation. presentation__1.Close() Gets or sets a boolean value indicates whether the property is linked to the content. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new document property. IDocumentProperty documentProperty = customDocumentProperties.Add("PropertyA"); //Set the link source documentProperty.LinkSource = "www.google.com"; //Set the link to content documentProperty.LinkToContent = true; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new document property. Dim documentProperty As IDocumentProperty = customDocumentProperties.Add("PropertyA") 'Set the link source documentProperty.LinkSource = "www.google.com" 'Set the link to content documentProperty.LinkToContent = True 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation. presentation__1.Close() Start index for Id2 PropVariant property. Start year for FILETIME structure. Property id. Property name. Property value. Property type. The source of a linked custom document property. String. True if the value of the custom document property is linked to the content of the container document. False if the value is static. Boolean. Default constructor. Initializes new instance of the class. Property name. Property value. Initializes new instance of the class. Property id. Property value. Detects type of the string. String value to check. Detected string type. Tries to detect and set property type. Creates a new object that is a copy of the current instance. A new object that is a copy of this instance. Creates copy of the internal value. Indicates whether property is built-in. Read-only. Returns / sets property id for built-in properties. Returns property name. Read-only. Gets / sets property value. Gets / sets boolean value. Gets / sets integer value. Gets / sets 4-bytes signed integer value. Gets / sets double value. Gets / sets string value. Gets / sets DateTime value. Gets / sets TimeSpan value. Gets / sets Blob value. Gets or sets clipboard data value. Gets / sets array of strings. Gets / sets array of objects. Supported object types are string and Int32. Gets / sets document property type. Returns or sets the source of a linked custom document property. String. True if the value of the custom document property is linked to the content of the container document. False if the value is static. Boolean. Internal name of the document property. Specifies the built-in document properties of the PowerPoint presentation. Specifies the Title of presentation. Specifies the Subject of presentation. Specifies the Author of presentation. Specifies the Keywords of presentation. Specifies the Comments of presentation. Specifies the Template of presentation. Specifies the Last Author of presentation. Specifies the Revision number of presentation. Specifies the Edit Time of presentation. Specifies the Last Printed property of presentation. Specifies the Creation Date of presentation. Specifies the Last Save Date of presentation. Specifies the Page Count of presentation. Specifies the Word Count of presentation. Specifies the Character Count of presentation. Specifies the Thumbnail of presentation. Specifies the Application Name of presentation. Specifies the Security of the presentation. Specifies the Category of presentation. Specifies the Target format for presentation (35mm, printer, video, and so on) id. Specifies the Byte Count of presentation. Specifies the Line Count of presentation. Specifies the Paragraph Count of presentation. Specifies the slide count of presentation. Specifies the note count of presentation. Specifies the hidden count of presentation. Specifies the multimedia clip count of presentation. Specifies the ScaleCrop of presentation. Specifies the heading pair of presentation. Specifies the document parts of presentation. Specifies the manager of presentation. Specifies the company of presentation. Specifies the dirty links of presentation. Enumeration with all supported property types. Indicates a Boolean value. Indicates an integer value. Indicates a 4-bytes signed integer value. Indicates a 2-bytes signed interger value. Indicates a 4-bytes unsigned interger value. Indicates a wide string terminated by a null. Indicates a string terminated by a null. Indicates a FILETIME value. Indicates length prefixed bytes. Indicates a simple, counted array. Indicates an object. Indicates a double value. Indicates an empty value. Indicates null value. Indicates clipboard data. Indicates an array of strings. Indicates an array of strings. Indicates an array of objects. Supported types are string and integer values. Size of the Int32 in bytes. Size of the Int162 in bytes. Size of the Double in bytes. Reads Int16 value from the stream. Stream to get data from. Temporary buffer to put extracted bytes into. Extracted Int32 value. Reads Int32 value from the stream. Stream to get data from. Temporary buffer to put extracted bytes into. Extracted Int32 value. Reads Double value from the stream. Stream to get data from. Temporary buffer to put extracted bytes into. Extracted Double value. Writes Int16 value from the stream. Stream to get data from. Value to write. Size of the written data. Writes Int32 value from the stream. Stream to write data into. Value to write. Size of the written data. Reads Double value from the stream. Stream to get data from. Temporary buffer to put extracted bytes into. Extracted Double value. Gets ASCII string from the stream starting from the current position. Stream to get data from. Approximate string size. Extracted string. Extracts unicode string from the stream. Gets ASCII string from the stream starting from the current position. Stream to get data from. Approximate string size. Extracted string. Writes unicode string into steram. Stream to write data into. Value to write. Size of the written data in bytes. Writes string into stream using specified encoding. Stream to write data into. Value to write. Encoding to use. Size of the written data in bytes. Adds padding if necessary. Removes last zero character from the string if it is present. Value to check. String after removal. Specifies the VarEnum. Specifies the VarEnum is vt_ array Specifies the VarEnum is vt_ BLOB Specifies the VarEnum is vt_ blo b_ object Specifies the VarEnum is vt_ bool Specifies the VarEnum is vt_ BSTR Specifies the VarEnum is vt_ byref Specifies the VarEnum is vt_ carray Specifies the VarEnum is vt_ cf Specifies the VarEnum is vt_ CLSID Specifies the VarEnum is vt_ cy Specifies the VarEnum is vt_ date Specifies the VarEnum is vt_ decimal Specifies the VarEnum is vt_ dispatch Specifies the VarEnum is vt_ empty Specifies the VarEnum is vt_ error Specifies the VarEnum is vt_ filetime Specifies the VarEnum is vt_ hresult Specifies the VarEnum is vt_ i1 Specifies the VarEnum is vt_ i2 Specifies the VarEnum is vt_ i4 Specifies the VarEnum is vt_ i8 Specifies the VarEnum is vt_ int Specifies the VarEnum is vt_ LPSTR Specifies the VarEnum is vt_ LPWSTR Specifies the VarEnum is vt_ null Specifies the VarEnum is vt_ PTR Specifies the VarEnum is vt_ r4 Specifies the VarEnum is vt_ r8 Specifies the VarEnum is vt_ record Specifies the VarEnum is vt_ safearray Specifies the VarEnum is vt_ storage Specifies the VarEnum is vt_ store d_ object Specifies the VarEnum is vt_ stream Specifies the VarEnum is vt_ streame d_ object Specifies the VarEnum is vt_ u i1 Specifies the VarEnum is vt_ u i2 Specifies the VarEnum is vt_ u i4 Specifies the VarEnum is vt_ u i8 Specifies the VarEnum is vt_ uint Specifies the VarEnum is vt_ unknown Specifies the VarEnum is vt_ userdefined Specifies the VarEnum is vt_ variant Specifies the VarEnum is vt_ vector Specifies the VarEnum is vt_ void Encryption namespace. Namespace definition for key encryptor password. Namespace definition for key encryptor certificate. Represents the internal constants for Presentation. Defines the none placeholder type. Hundredths of a point. Defines the default offset value for a picture fill. Defines the default scale value for the picture fill. Defines thousandths of a percentage. Defines the percentage value. Default smart art left value is used when the smartart is create from scratch. Default smart art top value is used when the smartart is create from scratch. Default smart art width is used when the smartart is create from scratch. Default smart art height is used when the smartart is create from scratch. Default rotation angle constants of a shape. Size of the Int32 value. Size of the Int64 value. Number of bits inside single byte value. Name of a namespace used by VML (marked by 'v' in MS PowerPoint 2007 documents). Name of a namespace used by VML (marked by 'o' in MS PowerPoint 2007 documents). Name of a namespace used by VML (marked by 'x' in MS PowerPoint 2007 documents). Namespace prefix used in vml shapes. Namespace prefix used in vml shapes. Root tag for vml shapes. Defines the maximum font scale value. Defines the minimum font scale value. Serailize the child elements of a extLst. Represent the xmlWritter Represent the relation id of the svg image Checks if a duplicate relation exists for the specified relation collection. The OleObject to check for duplicate relations. The target of the relation to check. True if a duplicate relation exists, otherwise false. Writes a custom data list of shape. Represents a XML writer. Represents a shape object. Length of compObject stream This MUST be a CompObjHeader structure. This MUST be a LengthPrefixedAnsiString structure that contains a display name of the linked object or embedded object This MUST be a ClipboardFormatOrAnsiString structure that contains the Clipboard Format of the linked object or embedded object. If the MarkerOrLength field of the ClipboardFormatOrAnsiString structure contains a value other than 0x00000000, 0xffffffff, or 0xfffffffe, the value MUST NOT be greater than 0x00000190. Otherwise the CompObjStream structure is invalid If present, this MUST be a LengthPrefixedAnsiString structure. If the Length field of the LengthPrefixedAnsiString contains a value of 0 or a value that is greater than 0x00000028, the remaining fields of the structure starting with the String field of the LengthPrefixedAnsiString MUST be ignored on processing. If this field is present and is NOT set to 0x71B239F4, the remaining fields of the structure MUST be ignored on processing This MUST be a LengthPrefixedUnicodeString structure that contains a display name of the linked object or embedded object. This MUST be a ClipboardFormatOrUnicodeString structure that contains a Clipboard Format of the linked object or embedded object. If the MarkerOrLength field of the ClipboardFormatOrUnicodeString structure contains a value other than 0x00000000, 0xffffffff, or 0xfffffffe, the value MUST NOT be more than 0x00000190. Otherwise, the CompObjStream structure is invalid This MUST be a LengthPrefixedUnicodeString. The String field of the LengthPrefixedUnicodeString can contain any arbitrary value and MUST be ignored on processing. Initializes a new instance of the class. The stream. Initializes a default instance of the class. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Length Saves data to STG stream. The stream. Writes the zero byte array. The stream. Length of the byte. Writes the length prefixed string. The stream. The data. Gets the size of the structure. The length. Gets the type of the object. The type of the object. Gets the type of the object. The type of the object. This can be set to any arbitrary value and MUST be ignored on processing. This can be set to any arbitrary value and MUST be ignored on processing. This can be set to any arbitrary value and MUST be ignored on processing. Initializes a new instance of the class. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Length Saves to STG stream. The stream. Gets the size of the structure. The length. This MUST be set to 0x00000001 or 0x00000002. If this field has a value of 1, the OLEStream structure MUST be for a linked object. If this field has a value of 0, then the OLEStream structure MUST be for an embedded object. This field contains an implementation-specific hint supplied by the application or by a higher-level protocol that creates the data structure. The hint MAY be ignored on processing of this data structure. This MUST be set to 0x00000000. Otherwise, the OLEStream structure is invalid. This MUST be set to the size, in bytes, of the ReservedMonikerStream field. If this field has a value 0x00000000, the ReservedMonikerStream field MUST NOT be present. This MUST be a MONIKERSTREAM structure that can contain any arbitrary value and MUST be ignored on processing. This MUST be set to the size, in bytes, of the RelativeSourceMonikerStream field. If this field has a value 0x00000000, the RelativeSourceMonikerStream field MUST NOT be present. This MUST be a MONIKERSTREAM structure that specifies the relative path to the linked object. This MUST be set to the size, in bytes, of the AbsoluteSourceMonikerStream field. This field MUST NOT contain the value 0x00000000. This MUST be a MONIKERSTREAM structure that specifies the full path to the linked object. This MUST be the LONG value -1 This MUST be the CLSID containing the object class GUID of the creating application. This MUST be a LengthPrefixedUnicodeString that can contain any arbitrary value and MUST be ignored on processing. This can contain any arbitrary value and MUST be ignored on processing. This MUST be a FILETIME that contains the time when the container application last updated the RemoteUpdateTime field. This MUST be a FILETIME that contains the time when the container application last checked the update time of the linked object. This MUST be a FILETIME that contains the time when the linked object was last updated. The type of the link; Path to linked file Initializes a new instance of the class. The stream. Initializes a default instance of the class. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Length Saves to compound stream. The stream. Gets the size of the structure. The length. Path to file Initializes a new instance of the class. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Length Gets the size of the structure. The length. Initializes a new instance of the class. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Length Gets the size of the structure. The length. Reads the int16. The data array. The offset. Reads the int32. The data array. The offset. Reads the int64. The data array. The offset. Reads the int16. The data array. The offset. Reads the int32. The data array. The offset. Reads the array of bytes. The data array. The length. The offset. Saves the specified int16 value in the data array. The arr data. The offset. Saves the specified uint16 value in the data array. The arr data. The offset. Saves the specified int32 value in the data array. The arr data. The offset. Saves the specified int64 value in the data array. The destination. The offset. The value. Saves the specified uint32 value in the data array. The arr data. The offset. Saves the bytes byte array. The destination array. The offset. The bytes. Copies the memory. The destination. The source. The length. Summary description for _Constants. Size of the File Character position. Number of bytes in single word value. Number of bytes in single int value. Number of bytes in formatted disk page. Number of bytes in single long value. To prevent creating instances of this class constructor was made private. Initializes a new instance of the class. The stream. Initializes a default instance of the class. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Length Saves the data to stream. The STG stream. Gets the size of the structure. The length. Contains empty color. Converts Int32 value into Color. Value to convert. Converted value. Represents the ARGB(alpha, red, green, blue) color. Represents the ARGB (alpha, red, green, blue) color. Converts the structure to 32-bit ARGB value. The 32-bit ARGB value of the structure. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide background IBackground background = slide.Background; //Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid; //Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89); //Create instance for color IColor color = background.Fill.SolidFill.Color; //Convert color to argb int argb = color.ToArgb(); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide background Dim background As IBackground = slide.Background 'Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid 'Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89) 'Create instance for color Dim color As IColor = background.Fill.SolidFill.Color 'Convert color to argb Dim argb As Integer = color.ToArgb() 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Gets or sets a value. The System.Drawing.Color. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide background IBackground background = slide.Background; //Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid; //Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89); //Create instance for color IColor color = background.Fill.SolidFill.Color; //Set the system color by specifying the rgb values color.SystemColor = Color.Red; //Save the presentation presentation.Save("SystemColor.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide background Dim background As IBackground = slide.Background 'Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid 'Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89) 'Create instance for color Dim color__2 As IColor = background.Fill.SolidFill.Color 'Set the system color by specifying the rgb values color__2.SystemColor = Color.Red 'Save the presentation presentation__1.Save("SystemColor.pptx") 'Close the presentation presentation__1.Close() Gets the alpha color value. Read-only. A. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide background IBackground background = slide.Background; //Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid; //Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89); //Create instance for color IColor color = background.Fill.SolidFill.Color; //Get the transparency value of color byte alpha = color.A; //Save the presentation presentation.Save("AlphaValue.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide background Dim background As IBackground = slide.Background 'Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid 'Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89) 'Create instance for color Dim color As IColor = background.Fill.SolidFill.Color 'Get the transparency value of color Dim alpha As Byte = color.A 'Save the presentation presentation__1.Save("AlphaValue.pptx") 'Close the presentation presentation__1.Close() Gets the blue color value. Read-only. The B. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide background IBackground background = slide.Background; //Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid; //Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89); //Create instance for color IColor color = background.Fill.SolidFill.Color; //Get the blue color byte blue = color.B; //Save the presentation presentation.Save("BlueColor.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide background Dim background As IBackground = slide.Background 'Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid 'Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89) 'Create instance for color Dim color As IColor = background.Fill.SolidFill.Color 'Get the blue color Dim blue As Byte = color.B 'Save the presentation presentation__1.Save("BlueColor.pptx") 'Close the presentation presentation__1.Close() Gets the green color value. Read-only. The G. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide background IBackground background = slide.Background; //Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid; //Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89); //Create instance for color IColor color = background.Fill.SolidFill.Color; //Get the green color value byte green = color.G; //Save the presentation presentation.Save("GreenColor.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide background Dim background As IBackground = slide.Background 'Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid 'Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89) 'Create instance for color Dim color As IColor = background.Fill.SolidFill.Color 'Get the green color value Dim green As Byte = color.G 'Save the presentation presentation__1.Save("GreenColor.pptx") 'Close the presentation presentation__1.Close() Specifies whether this structure is uninitialized. Read-only. true if this instance is empty; otherwise, false. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide background IBackground background = slide.Background; //Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid; //Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89); //Create instance for color IColor color = background.Fill.SolidFill.Color; //To check if it is a empty bool _isEmpty = color.IsEmpty; //Save the presentation presentation.Save("Empty.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide background Dim background As IBackground = slide.Background 'Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid 'Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89) 'Create instance for color Dim color As IColor = background.Fill.SolidFill.Color 'To check if it is a empty Dim _isEmpty As Boolean = color.IsEmpty 'Save the presentation presentation__1.Save("Empty.pptx") 'Close the presentation presentation__1.Close() Gets a value indicating whether the color object is a predefined color. Predefined colors are represented by the enumeration. Read-only. true if this instance is known color; otherwise, false. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide background IBackground background = slide.Background; //Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid; //Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89); //Create instance for color IColor color = background.Fill.SolidFill.Color; //To check if it is a known color bool _isKnownColor = color.IsKnownColor; //Save the presentation presentation.Save("KnownColor.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide background Dim background As IBackground = slide.Background 'Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid 'Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89) 'Create instance for color Dim color As IColor = background.Fill.SolidFill.Color 'To check if it is a known color Dim _isKnownColor As Boolean = color.IsKnownColor 'Save the presentation presentation__1.Save("KnownColor.pptx") 'Close the presentation presentation__1.Close() Gets a value indicating whether the color object is a named color or a member of the enumeration. Read-only. true if this instance is named color; otherwise, false. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide background IBackground background = slide.Background; //Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid; //Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89); //Create instance for color IColor color = background.Fill.SolidFill.Color; //To check if it is a named color bool _isNamedColor = color.IsNamedColor; //Save the presentation presentation.Save("NamedColor.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide background Dim background As IBackground = slide.Background 'Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid 'Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89) 'Create instance for color Dim color As IColor = background.Fill.SolidFill.Color 'To check if it is a known color Dim _isNamedColor As Boolean = color.IsNamedColor 'Save the presentation presentation__1.Save("NamedColor.pptx") 'Close the presentation presentation__1.Close() Gets a value indicating whether the color object is a system color. System colors are represented by elements of the enumeration. Read-only. true if this instance is system color; otherwise, false. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide background IBackground background = slide.Background; //Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid; //Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89); //Create instance for color IColor color = background.Fill.SolidFill.Color; //To check if it is a system color bool _isSystemColor = color.IsSystemColor; //Save the presentation presentation.Save("SystemColor.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide background Dim background As IBackground = slide.Background 'Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid 'Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89) 'Create instance for color Dim color As IColor = background.Fill.SolidFill.Color 'To check if it is a system color Dim _isSystemColor As Boolean = color.IsSystemColor 'Save the presentation presentation__1.Save("SystemColor.pptx") 'Close the presentation presentation__1.Close() Gets the red color value. Read-only. The R. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide background IBackground background = slide.Background; //Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid; //Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89); //Create instance for color IColor color = background.Fill.SolidFill.Color; //Get the red color value byte red = color.R; //Save the presentation presentation.Save("RedColor.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide background Dim background As IBackground = slide.Background 'Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid 'Set the color to slide background background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 23, 12, 89) 'Create instance for color Dim color As IColor = background.Fill.SolidFill.Color 'Get the red color value Dim red As Byte = color.R 'Save the presentation presentation__1.Save("RedColor.pptx") 'Close the presentation presentation__1.Close() Compares the current ColorObject with given ColorObject. The ColorObject to compare with the current instance. True if the ColorObjects are equal; otherwise, false. Represents a color that is null. Initialize the ColorObject type with KnowColor object Default Constructor for ColorObject. Creates an structure from a 32-bit ARGB value. A value specifying the 32-bit ARGB value. The structure this method creates. //Create a new presentation. IPresentation presentation = Presentation.Open("Template.pptx"); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set the color for solid fill slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(146880); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation As IPresentation = Presentation.Open("Template.pptx") 'Add a blank slide to the presentation. Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Set the color for solid fill slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(146880); 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Creates an structure from the four ARGB component (alpha, red, green, and blue) values. The alpha component. Valid values are 0 through 255. The red component. Valid values are 0 through 255. The green component. Valid values are 0 through 255. The blue component. Valid values are 0 through 255. The structure this method creates. //Create a new presentation. IPresentation presentation = Presentation.Open("Template.pptx"); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set the argb value for solid fill slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(90, 120, 120, 120); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation As IPresentation = Presentation.Open("Template.pptx") 'Add a blank slide to the presentation. Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Set the argb value for solid fill slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(90, 120, 120, 120); 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Creates an structure from the specified structure combined with the new alpha value. The alpha value for the new . Valid values are 0 through 255. The instance from which to create the new color. The structure this method creates. //Create a new presentation. IPresentation presentation = Presentation.Open("Template.pptx"); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set the color for solid fill slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(30, ColorObject.Red); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation As IPresentation = Presentation.Open("Template.pptx") 'Add a blank slide to the presentation. Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Set the color for solid fill slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(30, ColorObject.Red); 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Creates an structure from the specified RGB values (red, green, and blue). The alpha value is implicitly 255 (fully opaque). The red component value for the new . Valid values are 0 through 255. The green component value for the new . Valid values are 0 through 255. The blue component value for the new . Valid values are 0 through 255. The structure this method creates. //Create a new presentation. IPresentation presentation = Presentation.Open("Template.pptx"); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set the rgb value for solid fill slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 120, 120); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation As IPresentation = Presentation.Open("Template.pptx") 'Add a blank slide to the presentation. Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Set the rgb value for solid fill slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 120, 120); 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Creates an structure from the specified predefined color. An element of the enumeration. The structure this method creates. //Create a new presentation. IPresentation presentation = Presentation.Open("Template.pptx"); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set the color of solid Fill slide.Background.Fill.SolidFill.Color = ColorObject.FromKnownColor(System.Drawing.KnownColor.ActiveBorder); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation As IPresentation = Presentation.Open("Template.pptx") 'Add a blank slide to the presentation. Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Set the color of solid Fill slide.Background.Fill.SolidFill.Color = ColorObject.FromKnownColor(System.Drawing.KnownColor.ActiveBorder) 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() Returns the hue-saturation-brightness (HSB) brightness value for the specified structure. The brightness of this color. The brightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add shape to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100); //Set the fill type of shape shape.Fill.FillType = FillType.Pattern; //Set the back color of the pattern fill shape.Fill.PatternFill.BackColor = ColorObject.Red; //Create an instance for color object ColorObject colorObject = shape.Fill.PatternFill.BackColor as ColorObject; //Get the brightness of color, it is read only float brightness = colorObject.GetBrightness(); //Save the presentation presentation.Save("Output.pptx"); //close the presentation presentation.Close(); 'Create a new presentation. Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add shape to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100) 'Set the fill type of shape shape.Fill.FillType = FillType.Pattern 'Set the back color of the pattern fill shape.Fill.PatternFill.BackColor = ColorObject.Red 'Create an instance for color object Dim colorObject As ColorObject = TryCast(shape.Fill.PatternFill.BackColor, ColorObject) 'Get the brightness of color, it is read only Dim brightness As Single = colorObject.GetBrightness() 'Save the presentation presentation.Save("Output.pptx") 'close the presentation presentation.Close() Returns the hue-saturation-brightness (HSB) hue value, in degrees. The hue, in degrees, of the specified color. The hue is measured in degrees, ranging from 0.0 through 360.0, in HSB color space. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add shape to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100); //Set the fill type of shape shape.Fill.FillType = FillType.Pattern; //Set the back color of the pattern fill shape.Fill.PatternFill.BackColor = ColorObject.LightBlue; //Create an instance for color object ColorObject colorObject = shape.Fill.PatternFill.BackColor as ColorObject; //Get hue of color, read only float hue = colorObject.GetHue(); //Save the presentation presentation.Save("Output.pptx"); //close the presentation presentation.Close(); 'Create a new presentation. Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add shape to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100) 'Set the fill type of shape shape.Fill.FillType = FillType.Pattern 'Set the back color of the pattern fill shape.Fill.PatternFill.BackColor = ColorObject.LightBlue 'Create an instance for color object Dim colorObject As ColorObject = TryCast(shape.Fill.PatternFill.BackColor, ColorObject) 'Get the hue of color, it is read only Dim hue As Single = colorObject.GetHue() 'Save the presentation presentation.Save("Output.pptx") 'close the presentation presentation.Close() Returns the hue-saturation-brightness (HSB) saturation value. The saturation of the specified color. The saturation ranges from 0.0 through 1.0, where 0.0 is gray-scale and 1.0 is the most saturated. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add shape to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100); //Set the fill type of shape shape.Fill.FillType = FillType.Pattern; //Set the back color of the pattern fill shape.Fill.PatternFill.BackColor = ColorObject.LightBlue; //Create an instance for color object ColorObject colorObject = shape.Fill.PatternFill.BackColor as ColorObject; //Get the saturation of color, read only float saturation = colorObject.GetSaturation(); //Save the presentation presentation.Save("Output.pptx"); //close the presentation presentation.Close(); 'Create a new presentation. Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add shape to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100) 'Set the fill type of shape shape.Fill.FillType = FillType.Pattern 'Set the back color of the pattern fill shape.Fill.PatternFill.BackColor = ColorObject.LightBlue 'Create an instance for color object Dim colorObject As ColorObject = TryCast(shape.Fill.PatternFill.BackColor, ColorObject) 'Get the saturation of color, it is read only Dim saturation As Single = colorObject.GetSaturation() 'Save the presentation presentation.Save("Output.pptx") 'close the presentation presentation.Close() Gets the 32-bit ARGB value of this structure. The 32-bit Argb value of this color. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add shape to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100); //Set the fill type of shape shape.Fill.FillType = FillType.Pattern; //Set the back color of the pattern fill shape.Fill.PatternFill.BackColor = ColorObject.Red; //Create an instance for color object ColorObject colorObject = shape.Fill.PatternFill.BackColor as ColorObject; //Convert to the argb value int argb = colorObject.ToArgb(); //Save the presentation presentation.Save("Output.pptx"); //close the presentation presentation.Close(); 'Create a new presentation. Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add shape to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100) 'Set the fill type of shape shape.Fill.FillType = FillType.Pattern 'Set the back color of the pattern fill shape.Fill.PatternFill.BackColor = ColorObject.Red 'Create an instance for color object Dim colorObject As ColorObject = TryCast(shape.Fill.PatternFill.BackColor, ColorObject) 'Convert to the argb value Dim argb As Integer = colorObject.ToArgb() 'Save the presentation presentation.Save("Output.pptx") 'close the presentation presentation.Close() Gets the value of the structure. An element of the enumeration. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add shape to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100); //Set the fill type of shape shape.Fill.FillType = FillType.Pattern; //Set the pattern type shape.Fill.PatternFill.Pattern = PatternFillType.DarkDownwardDiagonal; //Set the back color of the pattern fill shape.Fill.PatternFill.BackColor = ColorObject.Red; //Create an instance for color object ColorObject colorObject = shape.Fill.PatternFill.BackColor as ColorObject; //Convert to known color System.Drawing.KnownColor knownColor = colorObject.ToKnownColor(); //Save the presentation presentation.Save("Output.pptx"); //close the presentation presentation.Close(); 'Create a new presentation. Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add shape to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100) 'Set the fill type of shape shape.Fill.FillType = FillType.Pattern 'Set the pattern type shape.Fill.PatternFill.Pattern = PatternFillType.DarkDownwardDiagonal 'Set the back color of the pattern fill shape.Fill.PatternFill.BackColor = ColorObject.Red 'Create an instance for color object Dim colorObject As ColorObject = TryCast(shape.Fill.PatternFill.BackColor, ColorObject) 'Convert to known color Dim knownColor As System.Drawing.KnownColor = colorObject.ToKnownColor() 'Save the presentation presentation.Save("Output.pptx") 'close the presentation presentation.Close() Gets a predefined object that has an ARGB value of #FFF0F8FF. Read-only. Gets a predefined object that has an ARGB value of #FFFAEBD7. Read-only. Gets a predefined object that has an ARGB value of #FF00FFFF. Read-only. Gets a predefined object that has an ARGB value of #FF7FFFD4. Read-only. Gets a predefined object that has an ARGB value of #FFF0FFFF. Read-only. Gets a predefined object that has an ARGB value of #FFF5F5DC. Read-only. Gets a predefined object that has an ARGB value of #FFFFE4C4. Read-only. Gets a predefined object that has an ARGB value of #FF000000. Read-only. Gets a predefined object that has an ARGB value of #FFFFEBCD. Read-only. Gets a predefined object that has an ARGB value of #FF0000FF. Read-only. Gets a predefined object that has an ARGB value of #FF8A2BE2. Read-only. Gets a predefined object that has an ARGB value of #FFA52A2A. Read-only. Gets a predefined object that has an ARGB value of #FFDEB887. Read-only. Gets a predefined object that has an ARGB value of #FF5F9EA0. Read-only. Gets a predefined object that has an ARGB value of #FF7FFF00. Read-only. Gets a predefined object that has an ARGB value of #FFD2691E. Read-only. Gets a predefined object that has an ARGB value of #FFFF7F50. Read-only. Gets a predefined object that has an ARGB value of #FF6495ED. Read-only. Gets a predefined object that has an ARGB value of #FFFFF8DC. Read-only. Gets a predefined object that has an ARGB value of #FFDC143C. Read-only. Gets a predefined object that has an ARGB value of #FF00FFFF. Read-only. Gets a predefined object that has an ARGB value of #FF00008B. Read-only. Gets a predefined object that has an ARGB value of #FF008B8B. Read-only. Gets a predefined object that has an ARGB value of #FFB8860B. Read-only. Gets a predefined object that has an ARGB value of #FFA9A9A9. Read-only. Gets a predefined object that has an ARGB value of #FF006400. Read-only. Gets a predefined object that has an ARGB value of #FFBDB76B. Read-only. Gets a predefined object that has an ARGB value of #FF8B008B. Read-only. Gets a predefined object that has an ARGB value of #FF556B2F. Read-only. Gets a predefined object that has an ARGB value of #FFFF8C00. Read-only. Gets a predefined object that has an ARGB value of #FF9932CC. Read-only. Gets a predefined object that has an ARGB value of #FF8B0000. Read-only. Gets a predefined object that has an ARGB value of #FFE9967A. Read-only. Gets a predefined object that has an ARGB value of #FF8FBC8F. Read-only. Gets a predefined object that has an ARGB value of #FF483D8B. Read-only. Gets a predefined object that has an ARGB value of #FF2F4F4F. Read-only. Gets a predefined object that has an ARGB value of #FF00CED1. Read-only. Gets a predefined object that has an ARGB value of #FF9400D3. Read-only. Gets a predefined object that has an ARGB value of #FFFF1493. Read-only. Gets a predefined object that has an ARGB value of #FF00BFFF. Read-only. Gets a predefined object that has an ARGB value of #FF696969. Read-only. Gets a predefined object that has an ARGB value of #FF1E90FF. Read-only. Gets a predefined object that has an ARGB value of #FFB22222. Read-only. Gets a predefined object that has an ARGB value of #FFFFFAF0. Read-only. Gets a predefined object that has an ARGB value of #FF228B22. Read-only. Gets a predefined object that has an ARGB value of #FFFF00FF. Read-only. Gets a predefined object that has an ARGB value of #FFDCDCDC. Read-only. Gets a predefined object that has an ARGB value of #FFF8F8FF. Read-only. Gets a predefined object that has an ARGB value of #FFFFD700. Read-only. Gets a predefined object that has an ARGB value of #FFDAA520. Read-only. Gets a predefined object that has an ARGB value of #FF808080. Read-only. Gets a predefined object that has an ARGB value of #FF008000. Read-only. Gets a predefined object that has an ARGB value of #FFADFF2F. Read-only. Gets a predefined object that has an ARGB value of #FFF0FFF0. Read-only. Gets a predefined object that has an ARGB value of #FFFF69B4. Read-only. Gets a predefined object that has an ARGB value of #FFCD5C5C. Read-only. Gets a predefined object that has an ARGB value of #FF4B0082. Read-only. Gets a predefined object that has an ARGB value of #FFFFFFF0. Read-only. Gets a predefined object that has an ARGB value of #FFF0E68C. Read-only. Gets a predefined object that has an ARGB value of #FFE6E6FA. Read-only. Gets a predefined object that has an ARGB value of #FFFFF0F5. Read-only. Gets a predefined object that has an ARGB value of #FF7CFC00. Read-only. Gets a predefined object that has an ARGB value of #FFFFFACD. Read-only. Gets a predefined object that has an ARGB value of #FFADD8E6. Read-only. Gets a predefined object that has an ARGB value of #FFF08080. Read-only. Gets a predefined object that has an ARGB value of #FFE0FFFF. Read-only. Gets a predefined object that has an ARGB value of #FFFAFAD2. Read-only. Gets a predefined object that has an ARGB value of #FFD3D3D3. Read-only. Gets a predefined object that has an ARGB value of #FF90EE90. Read-only. Gets a predefined object that has an ARGB value of #FFFFB6C1. Read-only. Gets a predefined object that has an ARGB value of #FFFFA07A. Read-only. Gets a predefined object that has an ARGB value of #FF20B2AA. Read-only. Gets a predefined object that has an ARGB value of #FF87CEFA. Read-only. Gets a predefined object that has an ARGB value of #FF778899. Read-only. Gets a predefined object that has an ARGB value of #FFB0C4DE. Read-only. Gets a predefined object that has an ARGB value of #FFFFFFE0. Read-only. Gets a predefined object that has an ARGB value of #FF00FF00. Read-only. Gets a predefined object that has an ARGB value of #FF32CD32. Read-only. Gets a predefined object that has an ARGB value of #FFFAF0E6. Read-only. Gets a predefined object that has an ARGB value of #FFFF00FF. Read-only. Gets a predefined object that has an ARGB value of #FF800000. Read-only. Gets a predefined object that has an ARGB value of #FF66CDAA. Read-only. Gets a predefined object that has an ARGB value of #FF0000CD. Read-only. Gets a predefined object that has an ARGB value of #FFBA55D3. Read-only. Gets a predefined object that has an ARGB value of #FF9370DB. Read-only. Gets a predefined object that has an ARGB value of #FF3CB371. Read-only. Gets a predefined object that has an ARGB value of #FF7B68EE. Read-only. Gets a predefined object that has an ARGB value of #FF00FA9A. Read-only. Gets a predefined object that has an ARGB value of #FF48D1CC. Read-only. Gets a predefined object that has an ARGB value of #FFC71585. Read-only. Gets a predefined object that has an ARGB value of #FF191970. Read-only. Gets a predefined object that has an ARGB value of #FFF5FFFA. Read-only. Gets a predefined object that has an ARGB value of #FFFFE4E1. Read-only. Gets a predefined object that has an ARGB value of #FFFFE4B5. Read-only. Gets a predefined object that has an ARGB value of #FFFFDEAD. Read-only. Gets a predefined object that has an ARGB value of #FF000080. Read-only. Gets a predefined object that has an ARGB value of #FFFDF5E6. Read-only. Gets a predefined object that has an ARGB value of #FF808000. Read-only. Gets a predefined object that has an ARGB value of #FF6B8E23. Read-only. Gets a predefined object that has an ARGB value of #FFFFA500. Read-only. Gets a predefined object that has an ARGB value of #FFFF4500. Read-only. Gets a predefined object that has an ARGB value of #FFDA70D6. Read-only. Gets a predefined object that has an ARGB value of #FFEEE8AA. Read-only. Gets a predefined object that has an ARGB value of #FF98FB98. Read-only. Gets a predefined object that has an ARGB value of #FFAFEEEE. Read-only. Gets a predefined object that has an ARGB value of #FFDB7093. Read-only. Gets a predefined object that has an ARGB value of #FFFFEFD5. Read-only. Gets a predefined object that has an ARGB value of #FFFFDAB9. Read-only. Gets a predefined object that has an ARGB value of #FFCD853F. Read-only. Gets a predefined object that has an ARGB value of #FFFFC0CB. Read-only. Gets a predefined object that has an ARGB value of #FFDDA0DD. Read-only. Gets a predefined object that has an ARGB value of #FFB0E0E6. Read-only. Gets a predefined object that has an ARGB value of #FF800080. Read-only. Gets a predefined object that has an ARGB value of #FFFF0000. Read-only. Gets a predefined object that has an ARGB value of #FFBC8F8F. Read-only. Gets a predefined object that has an ARGB value of #FF4169E1. Read-only. Gets a predefined object that has an ARGB value of #FF8B4513. Read-only. Gets a predefined object that has an ARGB value of #FFFA8072. Read-only. Gets a predefined object that has an ARGB value of #FFF4A460. Read-only. Gets a predefined object that has an ARGB value of #FF2E8B57. Read-only. Gets a predefined object that has an ARGB value of #FFFFF5EE. Read-only. Gets a predefined object that has an ARGB value of #FFA0522D. Read-only. Gets a predefined object that has an ARGB value of #FFC0C0C0. Read-only. Gets a predefined object that has an ARGB value of #FF87CEEB. Read-only. Gets a predefined object that has an ARGB value of #FF6A5ACD. Read-only. Gets a predefined object that has an ARGB value of #FF708090. Read-only. Gets a predefined object that has an ARGB value of #FFFFFAFA. Read-only. Gets a predefined object that has an ARGB value of #FF00FF7F. Read-only. Gets a predefined object that has an ARGB value of #FF4682B4. Read-only. Gets a predefined object that has an ARGB value of #FFD2B48C. Read-only. Gets a predefined object that has an ARGB value of #FF008080. Read-only. Gets a predefined object that has an ARGB value of #FFD8BFD8. Read-only. Gets a predefined object that has an ARGB value of #FFFF6347. Read-only. Gets a predefined transparent color. Read-only. Gets a predefined object that has an ARGB value of #FF40E0D0. Read-only. Gets a predefined object that has an ARGB value of #FFEE82EE. Read-only. Gets a predefined object that has an ARGB value of #FFF5DEB3. Read-only. Gets a predefined object that has an ARGB value of #FFFFFFFF. Read-only. Gets a predefined object that has an ARGB value of #FFF5F5F5. Read-only. Gets a predefined object that has an ARGB value of #FFFFFF00. Read-only. Gets a predefined object that has an ARGB value of #FF9ACD32. Read-only. Returns ThemeColorValue of the current color object. Gets the alpha color value. Read-only. Gets the blue color value. Read-only. Gets the green color value. Read-only. Specifies whether this structure is uninitialized. Read-only. Gets a value indicating whether the color object is a predefined color. Predefined colors are represented by the enumeration. Read-only. Gets a value indicating whether the color object is a named color or a member of the enumeration. Read-only. Gets a value indicating whether the color object is a system color. System colors are represented by elements of the enumeration. Read-only. Gets the red color value. Read-only. Gets or sets a value. Parse the hyperlink. Gets the color map values from layout slide The XML Reader The layout slide Gets the color map values from layout slide The XML Reader ColorObject instance to hold color values The layout slide Parse the scrgb color values. XML reader used to parse. ColorObject instance to hold color value Gets the scheme color of layout slide The XML Reader ColorObject instance to hold color value The layout slide Compares the current EffectList object with given EffectList object. The EffectList object to compare with the current instance. True if the EffectList objects are equal; otherwise, false. Compares the current EffectStyle object with given EffectStyle object. The EffectStyle object to compare with the current instance. True if the EffectStyle objects are equal; otherwise, false. Specifies the type of the connector Specifies the connector type is Straight line connector. Specifies the connector type is Elbow connector. Specifies the connector type is Curved connector. Specifies the length of the arrowhead at the end of a line. Specifies the ArrowheadLength is None Specifies the ArrowheadLength is Short Specifies the ArrowheadLength is Medium Specifies the ArrowheadLength is Long Specifies the style of the arrowhead at the end of a line. Specifies the ArrowheadStyle is None Specifies the ArrowheadStyle is Arrow Specifies the ArrowheadStyle is ArrowStealth Specifies the ArrowheadStyle is ArrowDiamond Specifies the ArrowheadStyle is ArrowOval Specifies the ArrowheadStyle is ArrowOpen Specifies the width of the arrowhead at the end of a line. Specifies the ArrowheadWidth is None Specifies the ArrowheadWidth is Narrow Specifies the ArrowheadWidth is Medium Specifies the ArrowheadWidth is Wide Specifies the shape type for an object. Specifies the AutoShapeType is Unknown Specifies the AutoShapeType is SwooshArrow Specifies the AutoShapeType is Line Specifies the AutoShapeType is ElbowConnector Specifies the AutoShapeType is CurvedConnector Specifies the AutoShapeType is BentConnector2 Specifies the AutoShapeType is StraightConnector Specifies the AutoShapeType is BentConnector4 Specifies the AutoShapeType is BentConnector5 Specifies the AutoShapeType is CurvedConnector2 Specifies the AutoShapeType is CurvedConnector4 Specifies the AutoShapeType is CurvedConnector5 Specifies the AutoShapeType is Rectangle Specifies the AutoShapeType is RoundedRectangle Specifies the AutoShapeType is SnipSingleCornerRectangle Specifies the AutoShapeType is SnipSameSideCornerRectangle Specifies the AutoShapeType is SnipDiagonalCornerRectangle Specifies the AutoShapeType is SnipAndRoundSingleCornerRectangle Specifies the AutoShapeType is RoundSingleCornerRectangle Specifies the AutoShapeType is RoundSameSideCornerRectangle Specifies the AutoShapeType is RoundDiagonalCornerRectangle Specifies the AutoShapeType is Oval Specifies the AutoShapeType is IsoscelesTriangle Specifies the AutoShapeType is RightTriangle Specifies the AutoShapeType is Parallelogram Specifies the AutoShapeType is Trapezoid Specifies the AutoShapeType is Diamond Specifies the AutoShapeType is RegularPentagon Specifies the AutoShapeType is Hexagon Specifies the AutoShapeType is Heptagon Specifies the AutoShapeType is Octagon Specifies the AutoShapeType is Decagon Specifies the AutoShapeType is Dodecagon Specifies the AutoShapeType is Pie Specifies the AutoShapeType is Chord Specifies the AutoShapeType is Teardrop Specifies the AutoShapeType is Frame Specifies the AutoShapeType is HalfFrame Specifies the AutoShapeType is diagonalstripe Specifies the AutoShapeType is Cross Specifies the AutoShapeType is Plaque Specifies the AutoShapeType is Can Specifies the AutoShapeType is Cube Specifies the AutoShapeType is Bevel Specifies the AutoShapeType is Donut Specifies the AutoShapeType is NoSymbol Specifies the AutoShapeType is BlockArc Specifies the AutoShapeType is FoldedCorner Specifies the AutoShapeType is SmileyFace Specifies the AutoShapeType is Heart Specifies the AutoShapeType is LightningBolt Specifies the AutoShapeType is Sun Specifies the AutoShapeType is Moon Specifies the AutoShapeType is Cloud Specifies the AutoShapeType is Arc Specifies the AutoShapeType is DoubleBracket Specifies the AutoShapeType is DoubleBrace Specifies the AutoShapeType is LeftBracket Specifies the AutoShapeType is RightBracket Specifies the AutoShapeType is LeftBrace Specifies the AutoShapeType is RightBrace Specifies the AutoShapeType is RightArrow Specifies the AutoShapeType is LeftArrow Specifies the AutoShapeType is UpArrow Specifies the AutoShapeType is DownArrow Specifies the AutoShapeType is LeftRightArrow Specifies the AutoShapeType is UpDownArrow Specifies the AutoShapeType is QuadArrow Specifies the AutoShapeType is LeftRightUpArrow Specifies the AutoShapeType is BentArrow Specifies the AutoShapeType is UTurnArrow Specifies the AutoShapeType is LeftUpArrow Specifies the AutoShapeType is BentUpArrow Specifies the AutoShapeType is curved right arrow Specifies the AutoShapeType is curved left arrow Specifies the AutoShapeType is curved up arrow Specifies the AutoShapeType is curved down arrow Specifies the AutoShapeType is striped right arrow Specifies the AutoShapeType is notched right arrow Specifies the AutoShapeType is pentagon Specifies the AutoShapeType is chevron Specifies the AutoShapeType is right arrow callout Specifies the AutoShapeType is Down arrow callout Specifies the AutoShapeType is left arrow callout Specifies the AutoShapeType is up arrow callout Specifies the AutoShapeType is left right arrow callout Specifies the AutoShapeType is up down arrow callout Specifies the AutoShapeType is quad arrow callout Specifies the AutoShapeType is circular arrow Specifies the AutoShapeType is math plus Specifies the AutoShapeType is math minus Specifies the AutoShapeType is math multiply Specifies the AutoShapeType is math division Specifies the AutoShapeType is math equal Specifies the AutoShapeType is math not equal Specifies the AutoShapeType is flow chart process Specifies the AutoShapeType is flow chart alternate process Specifies the AutoShapeType is flow chart decision Specifies the AutoShapeType is flow chart data Specifies the AutoShapeType is flow chart predefined process Specifies the AutoShapeType is flow chart internal storage Specifies the AutoShapeType is flow chart document Specifies the AutoShapeType is flow chart multi document Specifies the AutoShapeType is flow chart terminator Specifies the AutoShapeType is flow chart preparation Specifies the AutoShapeType is flow chart manual input Specifies the AutoShapeType is flow chart manual operation Specifies the AutoShapeType is flow chart connector Specifies the AutoShapeType is flow chart off page connector Specifies the AutoShapeType is flow chart card Specifies the AutoShapeType is flow chart punched tape Specifies the AutoShapeType is flow chart summing junction Specifies the AutoShapeType is flow chart or Specifies the AutoShapeType is flow chart collate Specifies the AutoShapeType is flow chart sort Specifies the AutoShapeType is flow chart extract Specifies the AutoShapeType is flow chart merge Specifies the AutoShapeType is flow chart stored data Specifies the AutoShapeType is flow chart delay Specifies the AutoShapeType is flow chart sequential access storage Specifies the AutoShapeType is flow chart magnetic disk Specifies the AutoShapeType is flow chart direct access storage Specifies the AutoShapeType is flow chart display Specifies the AutoShapeType is explosion1 Specifies the AutoShapeType is explosion2 Specifies the AutoShapeType is star4 point Specifies the AutoShapeType is star5 point Specifies the AutoShapeType is star6 point Specifies the AutoShapeType is star7 point Specifies the AutoShapeType is star8 point Specifies the AutoShapeType is star10 point Specifies the AutoShapeType is star12 point Specifies the AutoShapeType is Star16Point Specifies the AutoShapeType is star24 point Specifies the AutoShapeType is star32 point Specifies the AutoShapeType is Up ribbon Specifies the AutoShapeType is Down ribbon Specifies the AutoShapeType is curved up ribbon Specifies the AutoShapeType is curved down ribbon Specifies the AutoShapeType is vertical scroll Specifies the AutoShapeType is horizontal scroll Specifies the AutoShapeType is wave Specifies the AutoShapeType is double wave Specifies the AutoShapeType is rectangular callout Specifies the AutoShapeType is rounded rectangular callout Specifies the AutoShapeType is oval callout Specifies the AutoShapeType is cloud callout Specifies the AutoShapeType is line callout1 Specifies the AutoShapeType is line callout2 Specifies the AutoShapeType is line callout3 Specifies the AutoShapeType is line callout1 accent bar Specifies the AutoShapeType is line callout2 accent bar Specifies the AutoShapeType is line callout3 accent bar Specifies the AutoShapeType is line callout1 no border Specifies the AutoShapeType is line callout2 no border Specifies the AutoShapeType is line callout3 no border Specifies the AutoShapeType is line callout1 border and accent bar Specifies the AutoShapeType is line callout2 border and accent bar Specifies the AutoShapeType is line callout3 border and accent bar Specifies the AutoShapeType is l_shape Specifies the AutoShapeType is Pie Wedge Specifies the AutoShapeType is Left Right Ribbon Specifies the AutoShapeType is Funnel Specifies the AutoShapeType is Gear6 Specifies the AutoShapeType is Gear9 Specifies the AutoShapeType is Left circular arrow Specifies the BackgroundStyle for Slides. Specifies the BackgroundStyle for Slides is Style1. Specifies the BackgroundStyle for Slides is Style2. Specifies the BackgroundStyle for Slides is Style3. Specifies the BackgroundStyle for Slides is Style4. Specifies the BackgroundStyle for Slides is Style5. Specifies the BackgroundStyle for Slides is Style6. Specifies the BackgroundStyle for Slides is Style7. Specifies the BackgroundStyle for Slides is Style8. Specifies the BackgroundStyle for Slides is Style9. Specifies the BackgroundStyle for Slides is Style10. Specifies the BackgroundStyle for Slides is Style11. Specifies the BackgroundStyle for Slides is Style12. Specifies the ColorType. Specifies the ColorType is automatic. Specifies the ColorType is automatic index. Specifies the ColorType is RGB. Specifies the ColorType is indexed color. Specifies the PatternFillType is theme. Specifies the pattern fill type for an object. Specifies the PatternFillType is solid. Specifies the PatternFillType is gray5. Specifies the PatternFillType is gray10. Specifies the PatternFillType is gray20. Specifies the PatternFillType is gray30. Specifies the PatternFillType is gray40. Specifies the PatternFillType is gray50. Specifies the PatternFillType is gray60. Specifies the PatternFillType is gray70. Specifies the PatternFillType is gray75. Specifies the PatternFillType is gray80. Specifies the PatternFillType is gray90. Specifies the PatternFillType is gray25. Specifies the PatternFillType is cross. Specifies the PatternFillType is diagonal cross. Specifies the PatternFillType is downward diagonal. Specifies the PatternFillType is horizontal. Specifies the PatternFillType is upward diagonal. Specifies the PatternFillType is vertical. Specifies the PatternFillType is light downward diagonal. Specifies the PatternFillType is light upward diagonal. Specifies the PatternFillType is dark downward diagonal. Specifies the PatternFillType is dark upward diagonal. Specifies the PatternFillType is wide downward diagonal. Specifies the PatternFillType is wide upward diagonal. Specifies the PatternFillType is light vertical. Specifies the PatternFillType is light horizontal. Specifies the PatternFillType is narrow vertical. Specifies the PatternFillType is narrow horizontal. Specifies the PatternFillType is dark vertical. Specifies the PatternFillType is dark horizontal. Specifies the PatternFillType is dashed downward diagonal. Specifies the PatternFillType is dashed upward diagonal. Specifies the PatternFillType is dashed vertical. Specifies the PatternFillType is dashed horizontal. Specifies the PatternFillType is small confetti. Specifies the PatternFillType is large confetti. Specifies the PatternFillType is zig zag. Specifies the PatternFillType is wave. Specifies the PatternFillType is diagonal brick. Specifies the PatternFillType is horizontal brick. Specifies the PatternFillType is weave. Specifies the PatternFillType is plaid. Specifies the PatternFillType is divot. Specifies the PatternFillType is dotted grid. Specifies the PatternFillType is dotted diamond. Specifies the PatternFillType is shingle. Specifies the PatternFillType is trellis. Specifies the PatternFillType is sphere. Specifies the PatternFillType is small grid. Specifies the PatternFillType is large grid. Specifies the PatternFillType is small checker board. Specifies the PatternFillType is large checker board. Specifies the PatternFillType is outlined diamond. Specifies the PatternFillType is solid diamond. Specifies the fill type of an object. Specifies the FillType is automatic. Specifies the FillType is solid. Specifies the FillType is gradient. Specifies the FillType is Picture. Specifies the FillType is Texture. Specifies the FillType is pattern. Specifies the FillType is none. Specifies the FontAlignmentType. Specifies the FontAlignmentType is none. Specifies the FontAlignmentType is baseline. Specifies the FontAlignmentType is bottom. Specifies the FontAlignmentType is top. Specifies the FontAlignmentType is center. Specifies the style of line cap at the line end. Specifies the LineCapStyle is none. Specifies the LineCapStyle is round. Specifies the LineCapStyle is square. Specifies the LineCapStyle is flat. Specifies the dash style for a line. Specifies the LineDashStyle is none. Specifies the LineDashStyle is solid. Specifies the LineDashStyle is dash. Specifies the LineDashStyle is dash dot. Specifies the LineDashStyle is dash dot dot. Specifies the LineDashStyle is dash long dash. Specifies the LineDashStyle is dash long dash dot. Specifies the LineDashStyle is round dot. Specifies the LineDashStyle is square dot. Specifies the LineDashStyle is system dash dot. Specifies the LineDashStyle is dot. Specifies the type of join where two lines connects. Specifies the LineJoinType is none. Specifies the LineJoinType is miter. Specifies the LineJoinType is round. Specifies the LineJoinType is bevel. Specifies the style for a line. Specifies the LineStyle is single. Specifies the LineStyle is thick between thin. Specifies the LineStyle is thin thick. Specifies the LineStyle is thick thin. Specifies the LineStyle is thin thin. Specifies the MirrorType. Specifies the MirrorType is none. Specifies the MirrorType is horizonal. Specifies the MirrorType is vertical. Specifies the MirrorType is both. Specifies the PenAlignmentType. Specifies the PenAlignmentType is center. Specifies the PenAlignmentType is In. Specifies the predefined size types for the PlaceHolder object Specifies the PlaceholderSize is none. Specifies the PlaceholderSize is full. Specifies the PlaceholderSize is half. Specifies the PlaceholderSize is quarter. Specifies the type of the ole object field. Ole object field type is EMBED. Ole object field type is LINK. Specifies the type of OLE object. Type is not defined. Adobe Acrobat Document. File has ".pdf" extension. Bitmap Image. File has ".png" extension. Media Clip. Equation. Graph Chart. Excel 97-2003 Worksheet. File has ".xls" extension. Excel Binary Worksheet. File has ".xlsb" extension. Excel chart. File has ".xls" extension. Excel Macro-Enabled Worksheet. File has ".xlsm" extension. Excel Worksheet. File has ".xlsx" extension. PowerPoint 97-2003 Presentation. File has ".ppt" extension. PowerPoint 97-2003 Slide. File has ".sld" extension. PowerPoint Macro-Enabled Presentation. File has ".pptm" extension. PowerPoint Macro-Enabled Slide. File has ".sldm" extension. PowerPoint Presentation. File has ".pptx" extension. PowerPoint Slide. File has ".sldx" extension. Word 97-2003 Document. File has ".doc" extension. Word Document. File has ".docx" extension. Word Macro-Enabled Document. File has ".docm" extension. Visio Deawing. MIDI Sequence. OpenDocument Presentation. OpenDocument Spreadsheet. OpenDocument Text. OpenOffice.org 1.1 Spreadsheet. OpenOffice.org 1.1 Text. Package. Video Clip. Wave Sound. WordPad Document. OpenOffice spreadsheet. OpenOffice Text. Specifies the horizontal alignment for the rectangle. Specifies the RectangleAlignmentType is bottom. Specifies the RectangleAlignmentType is bottom left. Specifies the RectangleAlignmentType is bottom right. Specifies the RectangleAlignmentType is center. Specifies the RectangleAlignmentType is left. Specifies the RectangleAlignmentType is right. Specifies the RectangleAlignmentType is top. Specifies the RectangleAlignmentType is top left. Specifies the RectangleAlignmentType is top right. Specifies the horizontal alignment of the text. Specifies the HorizontalAlignmentType is none. Specifies the HorizontalAlignmentType is left. Specifies the HorizontalAlignmentType is center. Specifies the HorizontalAlignmentType is right. Specifies the HorizontalAlignmentType is justify. Specifies the HorizontalAlignmentType is distributed. Specifies the HorizontalAlignment. Specifies the HorizontalAlignment is none. Specifies the HorizontalAlignment is left. Specifies the HorizontalAlignment is center. Specifies the HorizontalAlignment is right. Specifies the HorizontalAlignment is justify. Specifies the HorizontalAlignment is distributed. Specifies the HorizontalAlignment is justify low. Specifies the HorizontalAlignment is Thai Distributed. Specifies the vertical alignment of the text. Specifies the VerticalAlignmentType is none. Specifies the VerticalAlignmentType is top. Specifies the VerticalAlignmentType is middle. Specifies the VerticalAlignmentType is bottom. Specifies the VerticalAlignmentType is none. Specifies the VerticalAlignmentType is top. Specifies the VerticalAlignmentType is middle. Specifies the VerticalAlignmentType is bottom. Specifies the VerticalAlignmentType is justify. Specifies the VerticalAlignmentType is distributed. Specifies the TabAlignmentType. Specifies the TabAlignmentType is none. Specifies the TabAlignmentType is left. Specifies the TabAlignmentType is center. Specifies the TabAlignmentType is right. Specifies the TabAlignmentType is decimal. Specifies the TextCap types. Specifies the TextCapsType is none. Specifies the TextCapsType is small. Specifies the TextCapsType is All. Specifies the TextOrientationType. Specifies the TextOrientationType is no rotation. Specifies the TextOrientationType is clock wise. Specifies the TextOrientationType is counter clock wise. Specifies the TextOrientationType is top to bottom. Specifies the TextOverflowType. Specifies the TextOverflowType is None. Specifies the TextOverflowType is clip. Specifies the TextOverflowType is ellipsis. Specifies the TextOverflowType is overflow. Specifies the types of strike through options applied for text. Specifies the TextStrikethroughType is none. Specifies the TextStrikethroughType is single. Specifies the TextStrikethroughType is double. Specifies the types of underline options applied to the text. Specifies the TextUnderlineType is none. Specifies the TextUnderlineType is single. Specifies the TextUnderlineType is double. Specifies the TextUnderlineType is dash. Specifies the TextUnderlineType is dash dot dot heavy. Specifies the TextUnderlineType is dash dot heavy. Specifies the TextUnderlineType is dashed heavy. Specifies the TextUnderlineType is dash long. Specifies the TextUnderlineType is dash long heavy. Specifies the TextUnderlineType is dot dash. Specifies the TextUnderlineType is dot dot dash. Specifies the TextUnderlineType is dotted. Specifies the TextUnderlineType is dotted heavy. Specifies the TextUnderlineType is heavy. Specifies the TextUnderlineType is wave. Specifies the TextUnderlineType is wavy double. Specifies the TextUnderlineType is wavy heavy. Specifies the type of underline for text Specifies the TextUnderlineType is none. Specifies the TextUnderlineType is single. Specifies the TextUnderlineType is double. Specifies the TextUnderlineType is dash. Specifies the TextUnderlineType is dash dot dot heavy. Specifies the TextUnderlineType is dash dot heavy. Specifies the TextUnderlineType is dashed heavy. Specifies the TextUnderlineType is dash long. Specifies the TextUnderlineType is dash long heavy. Specifies the TextUnderlineType is dot dash. Specifies the TextUnderlineType is dot dot dash. Specifies the TextUnderlineType is dotted. Specifies the TextUnderlineType is dotted heavy. Specifies the TextUnderlineType is heavy. Specifies the TextUnderlineType is wave. Specifies the TextUnderlineType is wavy double. Specifies the TextUnderlineType is wavy heavy. Specifies the TextUnderlineType is words. Specifies the predefined types of TextureFill. Specifies the TextureFillType is blue tissue paper. Specifies the TextureFillType is bouquet. Specifies the TextureFillType is brown marble. Specifies the TextureFillType is canvas. Specifies the TextureFillType is cork. Specifies the TextureFillType is denim. Specifies the TextureFillType is fish fossil. Specifies the TextureFillType is granite. Specifies the TextureFillType is green marble. Specifies the TextureFillType is medium wood. Specifies the TextureFillType is newsprint. Specifies the TextureFillType is oak. Specifies the TextureFillType is paper bag. Specifies the TextureFillType is papyrus. Specifies the TextureFillType is parchment. Specifies the TextureFillType is pink tissue paper. Specifies the TextureFillType is purple mesh. Specifies the TextureFillType is recycled paper. Specifies the TextureFillType is sand. Specifies the TextureFillType is stationery. Specifies the TextureFillType is walnut. Specifies the TextureFillType is water droplets. Specifies the TextureFillType is white marble. Specifies the TextureFillType is woven mat. Specifies the TextureFillType is unknown. Specifies the type of text direction. Specifies the TextDirectionType is horizontal. Specifies the TextDirectionType is vertical. Specifies the TextDirectionType is vertical270. Specifies the TextDirectionType is word art vertical. Specifies the TextDirection. Specifies the TextDirection is horizontal. Specifies the TextDirection is vertical. Specifies the TextDirection is vertical270. Specifies the TextDirection is word art vertical. Specifies the TextDirection is east asian vertical. Specifies the TextDirection is mongolian vertical. Specifies the TextDirection is word art right to left. Specifies the Black White Mode. Specifies the Black White Mode is none. Specifies the Black White Mode is clear. Specifies the Black White Mode is automatic. Specifies the Black White Mode is gray. Specifies the Black White Mode is light gray. Specifies the Black White Mode is inverse gray. Specifies the Black White Mode is gray white. Specifies the Black White Mode is black gray. Specifies the Black White Mode is black white. Specifies the Black White Mode is black. Specifies the Black White Mode is white. Specifies the Black White Mode is hidden. Specifies the ColorMode. Specifies the ColorMode is tint. Specifies the ColorMode is shade. Specifies the ColorMode is alpha. Specifies the ColorMode is alpha mod. Specifies the ColorMode is alpha off. Specifies the ColorMode is red. Specifies the ColorMode is red mod. Specifies the ColorMode is red off. Specifies the ColorMode is green. Specifies the ColorMode is green mod. Specifies the ColorMode is green off. Specifies the ColorMode is blue. Specifies the ColorMode is blue mod. Specifies the ColorMode is blue off. Specifies the ColorMode is hue. Specifies the ColorMode is hue mod. Specifies the ColorMode is hue off. Specifies the ColorMode is sat. Specifies the ColorMode is sat mod. Specifies the ColorMode is sat off. Specifies the ColorMode is lum. Specifies the ColorMode is lum mod. Specifies the ColorMode is lum off. Specifies the ColorMode is gamma. Specifies the ColorMode is inv gamma. Specifies the ColorMode is comp. Specifies the ColorMode is gray. Specifies the ColorMode is inv. Specifies the Drawing types. Specifies the Drawing types is none. Specifies the Drawing types is TextBox. Specifies the Drawing types is PlaceHolder. Specifies the Drawing types is Table. Specifies the Drawing types is Chart. Specifies the Drawing type is SmartArt. Specifies the Drawing type is OleObject. Specifies the path shape types. Specifies the path shape types is circle. Specifies the path shape types is rectangle. Specifies the path shape types is shape. Specifies the shape types. Specifies the shape types is Sp. Specifies the shape types is GRP sp. Specifies the shape types is graphic frame. Specifies the shape types is CXN sp. Specifies the shape types is pic. Specifies the shape types is content part. Specifies the shape types is alternate content. Specifies the shape types is Chart. Specifies the smart art point shape, which is exist in data.xml. Used only for smart art. Specifies the smart art drawing shape, which is exist in drawing.xml. Used only for smart art. Specifies the manner in which a path should be filled. This specifies that the corresponding path should have a darker shaded color applied to it’s fill. This specifies that the corresponding path should have a slightly darker shaded color applied to it’s fill. This specifies that the corresponding path should have a lightly shaded color applied to it’s fill. This specifies that the corresponding path should have a slightly lighter shaded color applied to it’s fill. This specifies that the corresponding path should have no fill. This specifies that the corresponding path should have a normally shaded color applied to it’s fill. Represents the fill format options of the object. A fill format can have a solid, gradient, pattern, texture type. Gets or sets the of the object. //Open a presentation. IPresentation presentation = Presentation.Open("Template.pptx"); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(); //Get the fill of slide background IFill fill = slide.Background.Fill; //Set the fill type fill.FillType = FillType.Solid; //Set the fill color fill.SolidFill.Color = ColorObject.Red; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Open a presentation Dim presentation__1 As IPresentation = Presentation.Open("Template.pptx") 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add() 'Get the fill of slide background Dim fill As IFill = slide.Background.Fill 'Set the fill type fill.FillType = FillType.Solid 'Set the fill color fill.SolidFill.Color = ColorObject.Red 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets an instance. Read-only. The gradient fill. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add shape to slide IShape shape = slide.Shapes.AddShape(AutoShapeType.BlockArc, 12, 23, 100, 220); //Retrieve fill from shape IFill fill = shape.Fill; //Set gradient fill to the shape fill.FillType = FillType.Gradient; //Retrieve the gradient fill from the shape IGradientFill gradientFill = fill.GradientFill; //Add the first gradient stop. gradientFill.GradientStops.Add(); //Add the second gradient stop. gradientFill.GradientStops.Add(); //Save the presentation presentation.Save("GradientFill.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add shape to slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.BlockArc, 12, 23, 100, 220) 'Retrieve fill from shape Dim fill As IFill = shape.Fill 'Set gradient fill to the shape fill.FillType = FillType.Gradient 'Retrieve the gradient fill from the shape Dim gradientFill As IGradientFill = fill.GradientFill 'Add the first gradient stop. gradientFill.GradientStops.Add() 'Add the second gradient stop. gradientFill.GradientStops.Add() 'Save the presentation presentation__1.Save("GradientFill.pptx") 'Close the presentation presentation__1.Close() Gets an instance. Read-only. The pattern fill. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add shape to slide IShape shape = slide.Shapes.AddShape(AutoShapeType.BlockArc, 12, 23, 100, 220); //Retrieve fill from shape IFill fill = shape.Fill; //Set pattern fill type to shape fill.FillType = FillType.Pattern; //Create instance to hold pattern fill properties IPatternFill patternFill = fill.PatternFill; //Set the pattern type patternFill.Pattern = PatternFillType.DashedDownwardDiagonal; //Set back color for the pattern patternFill.BackColor = ColorObject.PaleGreen; //Set fore color for the pattern patternFill.ForeColor = ColorObject.Blue; //Save the presentation presentation.Save("PatternFill.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add shape to slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.BlockArc, 12, 23, 100, 220) 'Retrieve fill from shape Dim fill As IFill = shape.Fill 'Set pattern fill type to shape fill.FillType = FillType.Pattern 'Create instance to hold pattern fill properties Dim patternFill As IPatternFill = fill.PatternFill 'Set the pattern type patternFill.Pattern = PatternFillType.DashedDownwardDiagonal 'Set back color for the pattern patternFill.BackColor = ColorObject.PaleGreen 'Set fore color for the pattern patternFill.ForeColor = ColorObject.Blue 'Save the presentation presentation__1.Save("PatternFill.pptx") 'Close the presentation presentation__1.Close() Gets an instance. Read-only. The solid fill. //Open a presentation. IPresentation presentation = Presentation.Open("Template.pptx"); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(); //Get the fill of slide background IFill fill = slide.Background.Fill; //Set the fill type fill.FillType = FillType.Solid; //Set the fill color fill.SolidFill.Color = ColorObject.Red; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Open a presentation. Dim presentation__1 As IPresentation = Presentation.Open("Template.pptx") 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add() 'Get the fill of slide background Dim fill As IFill = slide.Background.Fill 'Set the fill type fill.FillType = FillType.Solid 'Set the fill color fill.SolidFill.Color = ColorObject.Red 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets an instance. Read-only. The picture fill. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a shape to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.BlockArc, 12, 23, 100, 220); //Retrieve fill from the shape IFill fill = shape.Fill; //Set the picture fill type to shape fill.FillType = FillType.Picture; //Create an instance to hold the picture fill properties IPictureFill pictureFill = fill.PictureFill; //Create a file stream and copy it to the memory stream FileStream pictureStream = new FileStream("Image.png", FileMode.Open); MemoryStream memoryStream = new MemoryStream(); pictureStream.CopyTo(memoryStream); //Convert the memory stream into a byte array byte[] picBytes = memoryStream.ToArray(); //Set Image Bytes pictureFill.ImageBytes = picBytes; //Save the presentation presentation.Save("PictureFill.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a shape to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.BlockArc, 12, 23, 100, 220) 'Retrieve fill from the shape Dim fill As IFill = shape.Fill 'Set the picture fill type to shape fill.FillType = FillType.Picture 'Create an instance to hold the picture fill properties Dim pictureFill As IPictureFill = fill.PictureFill 'Create a file stream and copy it to the memory stream Dim pictureStream As FileStream = New FileStream("Image.png", FileMode.Open) Dim memoryStream As MemoryStream = New MemoryStream() pictureStream.CopyTo(memoryStream) 'Convert the memory stream into a byte array Dim picBytes As Byte() = memoryStream.ToArray() 'Set Image Bytes pictureFill.ImageBytes = picBytes 'Save the presentation presentation__1.Save("PictureFill.pptx") 'Close the presentation presentation__1.Close() Compares the current Fill object with given Fill object. The Fill object to compare with the current instance. True if the Fill objects are equal; otherwise, false. Represents the gradient type fill format. Gets the gradient stop collection. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); slide.Background.Fill.FillType = FillType.Gradient; //Retrieve the gradient fill from the shape IGradientFill gradientFill = slide.Background.Fill.GradientFill; //Add a gradient stop. gradientFill.GradientStops.Add(); //Retrieve gradient stops, it is read only IGradientStops stops = gradientFill.GradientStops; //Add gradient stop with color stops.Add().Color = ColorObject.FromArgb(13, 34, 89, 32); //Add gradient stop with position stops.Add().Position = 3.5F; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) slide.Background.Fill.FillType = FillType.Gradient 'Retrieve the gradient fill from the shape Dim gradientFill As IGradientFill = slide.Background.Fill.GradientFill 'Add a gradient stop. gradientFill.GradientStops.Add() 'Retrieve gradient stops, it is read only Dim stops As IGradientStops = gradientFill.GradientStops 'Add gradient stop with color stops.Add().Color = ColorObject.FromArgb(13, 34, 89, 32) 'Add gradient stop with position stops.Add().Position = 3.5F 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Compares the current GradientFill object with given GradientFill object. The GradientFill object to compare with the current instance. True if the GradientFill objects are equal; otherwise, false. Represents a gradient stop in the object. Gets or sets the structure for the gradient stop. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient; //Create instance for gradient stop - 1 IGradientStop gradStop = slide.Background.Fill.GradientFill.GradientStops.Add(); //Set position for gradient stop gradStop.Position = 2.4F; //Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90); //Create instance for gradient stop - 2 IGradientStop _gradStop = slide.Background.Fill.GradientFill.GradientStops.Add(); //Set position for gradient stop _gradStop.Position = 5F; //Set color for gradient stop _gradStop.Color = ColorObject.FromArgb(20, 106, 120); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient 'Create instance for gradient stop - 1 Dim gradStop As IGradientStop = slide.Background.Fill.GradientFill.GradientStops.Add() 'Set position for gradient stop gradStop.Position = 2.4F 'Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90) 'Create instance for gradient stop - 2 Dim _gradStop As IGradientStop = slide.Background.Fill.GradientFill.GradientStops.Add() 'Set position for gradient stop _gradStop.Position = 5F 'Set color for gradient stop _gradStop.Color = ColorObject.FromArgb(20, 106, 120) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the gradient stop position. The position ranges from 0 to 100. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient; //Create instance for gradient stop - 1 IGradientStop gradStop = slide.Background.Fill.GradientFill.GradientStops.Add(); //Set position for gradient stop gradStop.Position = 2.4F; //Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90); //Create instance for gradient stop - 2 IGradientStop _gradStop = slide.Background.Fill.GradientFill.GradientStops.Add(); //Set position for gradient stop _gradStop.Position = 5F; //Set color for gradient stop _gradStop.Color = ColorObject.FromArgb(20, 106, 120); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient 'Create instance for gradient stop - 1 Dim gradStop As IGradientStop = slide.Background.Fill.GradientFill.GradientStops.Add() 'Set position for gradient stop gradStop.Position = 2.4F 'Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90) 'Create instance for gradient stop - 2 Dim _gradStop As IGradientStop = slide.Background.Fill.GradientFill.GradientStops.Add() 'Set position for gradient stop _gradStop.Position = 5F 'Set color for gradient stop _gradStop.Color = ColorObject.FromArgb(20, 106, 120) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the transparency of the gradient stop. The value of the transparency ranges from 0 to 100. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient; //Create instance for gradient stop - 1 IGradientStop gradStop = slide.Background.Fill.GradientFill.GradientStops.Add(); //Set position for gradient stop gradStop.Position = 2.4F; //Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90); //Set transparency of gradient stop gradStop.Transparency = 57; //Create instance for gradient stop - 2 IGradientStop _gradStop = slide.Background.Fill.GradientFill.GradientStops.Add(); //Set position for gradient stop _gradStop.Position = 5F; //Set color for gradient stop _gradStop.Color = ColorObject.FromArgb(20, 106, 120); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient 'Create instance for gradient stop - 1 Dim gradStop As IGradientStop = slide.Background.Fill.GradientFill.GradientStops.Add() 'Set position for gradient stop gradStop.Position = 2.4F 'Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90) 'Set transparency of gradient stop gradStop.Transparency = 57 'Create instance for gradient stop - 2 Dim _gradStop As IGradientStop = slide.Background.Fill.GradientFill.GradientStops.Add() 'Set position for gradient stop _gradStop.Position = 5F 'Set color for gradient stop _gradStop.Color = ColorObject.FromArgb(20, 106, 120) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the brightness of the gradient stop. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient; //Create instance for gradient stop - 1 IGradientStop gradStop = slide.Background.Fill.GradientFill.GradientStops.Add(); //Set position for gradient stop gradStop.Position = 2.4F; //Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90); //Create instance for gradient stop - 2 IGradientStop _gradStop = slide.Background.Fill.GradientFill.GradientStops.Add(); //Set position for gradient stop _gradStop.Position = 5F; //Set color for gradient stop _gradStop.Color = ColorObject.FromArgb(20, 106, 120); //Get the brightness of gradient stop - read only. float brightness = _gradStop.Brightness; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient 'Create instance for gradient stop - 1 Dim gradStop As IGradientStop = slide.Background.Fill.GradientFill.GradientStops.Add() 'Set position for gradient stop gradStop.Position = 2.4F 'Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90) 'Create instance for gradient stop - 2 Dim _gradStop As IGradientStop = slide.Background.Fill.GradientFill.GradientStops.Add() 'Set position for gradient stop _gradStop.Position = 5F 'Set color for gradient stop _gradStop.Color = ColorObject.FromArgb(20, 106, 120) 'Get the brightness of gradient stop - read only. Dim brightness As Single = _gradStop.Brightness 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Compares the current GradientStop object with given GradientStop object. The GradientStop object to compare with the current instance. True if the GradientStop objects are equal; otherwise, false. Represents a collection of instance. Adds a gradient stop at the end of the collection. Minimum of 2 gradient stops must be added while using gradient type fill. Returns the instance. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient; //Create instance to hold all the gradient stop IGradientStops gradientStops = slide.Background.Fill.GradientFill.GradientStops; //Add a gradient stop to the gradient stops collection gradientStops.Add(); //Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Blue, 1.1F); //Gets a single gradient stop from the collection IGradientStop gradStop = gradientStops[0]; //Set position for gradient stop gradStop.Position = 2.4F; //Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient 'Create instance to hold all the gradient stop Dim gradientStops As IGradientStops = slide.Background.Fill.GradientFill.GradientStops 'Add a gradient stop to the gradient stops collection gradientStops.Add() 'Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Crimson, 1.1F) 'Gets a single gradient stop from the collection Dim gradStop As IGradientStop = gradientStops(0) 'Set position for gradient stop gradStop.Position = 2.4F 'Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Adds the specified gradient stop object at the end of the collection. Minimum of 2 gradient stops must be added while using gradient type fill. Represents an gradient stop instance to be added. Returns the zero-based index of the gradient stop object within collection. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient; //Create instance to hold all the gradient stop IGradientStops gradientStops = slide.Background.Fill.GradientFill.GradientStops; //Add a gradient stop to the gradient stops collection gradientStops.Add(); //Gets a single gradient stop from the collection IGradientStop gradStop = gradientStops[0]; //Set position for gradient stop gradStop.Position = 2.4F; //Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90); //Add the gradient stop to collection gradientStops.Add(gradStop); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient 'Create instance to hold all the gradient stop Dim gradientStops As IGradientStops = slide.Background.Fill.GradientFill.GradientStops 'Add a gradient stop to the gradient stops collection gradientStops.Add() 'Gets a single gradient stop from the collection Dim gradStop As IGradientStop = gradientStops(0) 'Set position for gradient stop gradStop.Position = 2.4F 'Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90) 'Add the gradient stop to collection gradientStops.Add(gradStop) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Inserts an item into the gradient stop collection at the specified index. The zero-based index value to insert the specified gradient stop item. The gradient stop item to insert. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient; //Create instance to hold all the gradient stop IGradientStops gradientStops = slide.Background.Fill.GradientFill.GradientStops; //Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Crimson, 1.1F); //Add a gradient stop to the gradient stops collection IGradientStop gradStop = gradientStops.Add(); //Set position for gradient stop gradStop.Position = 2.4F; //Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90); //Add the gradient stop to collection gradientStops.Add(gradStop); //Insert a gradient stop into the collection gradientStops.Insert(1, gradStop); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient 'Create instance to hold all the gradient stop Dim gradientStops As IGradientStops = slide.Background.Fill.GradientFill.GradientStops 'Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Crimson, 1.1F) 'Add a gradient stop to the gradient stops collection Dim gradStop As IGradientStop = gradientStops.Add() 'Set position for gradient stop gradStop.Position = 2.4F 'Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90) 'Add the gradient stop to collection gradientStops.Add(gradStop) 'Insert a gradient stop into the collection gradientStops.Insert(1, gradStop) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the element at the specified index of the gradient stop collection. The zero-based index value to remove the specified gradient stop item. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient; //Create instance to hold all the gradient stop IGradientStops gradientStops = slide.Background.Fill.GradientFill.GradientStops; //Add a gradient stop to the gradient stops collection gradientStops.Add(); //Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Crimson, 1.1F); //Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.LightBlue, 75F); //Remove the gradient stop from specific index gradientStops.RemoveAt(0); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient 'Create instance to hold all the gradient stop Dim gradientStops As IGradientStops = slide.Background.Fill.GradientFill.GradientStops 'Add a gradient stop to the gradient stops collection gradientStops.Add() 'Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Crimson, 1.1F) 'Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.LightBlue, 75F) 'Remove the gradient stop from specific index gradientStops.RemoveAt(0) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the first occurrence of a specified instance from the gradient stop collection. The gradient stop instance to be removed from the collection. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient; //Create instance to hold all the gradient stop IGradientStops gradientStops = slide.Background.Fill.GradientFill.GradientStops; //Add a gradient stop to the gradient stops collection gradientStops.Add(); //Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Crimson, 1.1F); //Create instance for gradient stop IGradientStop gradStop = gradientStops.Add(); //Set position for gradient stop gradStop.Position = 5F; //Set color for gradient stop gradStop.Color = ColorObject.FromArgb(20, 106, 120); //Remove a gradient stop gradientStops.Remove(gradStop); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient 'Create instance to hold all the gradient stop Dim gradientStops As IGradientStops = slide.Background.Fill.GradientFill.GradientStops 'Add a gradient stop to the gradient stops collection gradientStops.Add() 'Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Crimson, 1.1F) 'Create instance for gradient stop Dim gradStop As IGradientStop = gradientStops.Add() 'Set position for gradient stop gradStop.Position = 5F 'Set color for gradient stop gradStop.Color = ColorObject.FromArgb(20, 106, 120) 'Remove a gradient stop gradientStops.Remove(gradStop) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Returns the zero-based index of the first occurrence of the instance within the collection. The instance to locate. Returns the zero-based index of the first occurrence of instance within the collection, if found; otherwise, –1. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient; //Create instance to hold all the gradient stop IGradientStops gradientStops = slide.Background.Fill.GradientFill.GradientStops; //Add a gradient stop to the gradient stops collection gradientStops.Add(); //Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Crimson, 1.1F); //Gets a single gradient stop from the collection IGradientStop gradStop = gradientStops[0]; //Set position for gradient stop gradStop.Position = 2.4F; //Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90); //Add the gradient stop to collection gradientStops.Add(gradStop); //Get the index of gradient stop from the collection int index = gradientStops.IndexOf(gradStop); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient 'Create instance to hold all the gradient stop Dim gradientStops As IGradientStops = slide.Background.Fill.GradientFill.GradientStops 'Add a gradient stop to the gradient stops collection gradientStops.Add() 'Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Crimson, 1.1F) 'Gets a single gradient stop from the collection Dim gradStop As IGradientStop = gradientStops(0) 'Set position for gradient stop gradStop.Position = 2.4F 'Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90) 'Add the gradient stop to collection gradientStops.Add(gradStop) 'Get the index of gradient stop from the collection Dim index As Integer = gradientStops.IndexOf(gradStop) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes all the elements from gradient stop collection. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient; //Create instance to hold all the gradient stop IGradientStops gradientStops = slide.Background.Fill.GradientFill.GradientStops; //Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Crimson, 1.1F); //Add a gradient stop to the gradient stops collection gradientStops.Add(); //Clears the collection gradientStops.Clear(); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient 'Create instance to hold all the gradient stop Dim gradientStops As IGradientStops = slide.Background.Fill.GradientFill.GradientStops 'Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Crimson, 1.1F) 'Add a gradient stop to the gradient stops collection gradientStops.Add() 'Clears the collection gradientStops.Clear() 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Adds a gradient stop at the specified position. Minimum of 2 gradient stops must be added while using gradient type fill. The color of gradient stop. The position of the gradient stop. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient; //Create instance to hold all the gradient stop IGradientStops gradientStops = slide.Background.Fill.GradientFill.GradientStops; //Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.LightBlue, 20F); //Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Crimson, 90.2F); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient 'Create instance to hold all the gradient stop Dim gradientStops As IGradientStops = slide.Background.Fill.GradientFill.GradientStops 'Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.LightBlue, 20F) 'Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Crimson, 90.2F) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the number of elements in the gradient stop collection. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient; //Create instance to hold all the gradient stop IGradientStops gradientStops = slide.Background.Fill.GradientFill.GradientStops; //Add a gradient stop to the gradient stops collection gradientStops.Add(); //Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Crimson, 1.1F); //Create instance for gradient stop IGradientStop gradStop = gradientStops.Add(); //Set position for gradient stop gradStop.Position = 5F; //Set color for gradient stop gradStop.Color = ColorObject.FromArgb(20, 106, 120); //Get the count of gradient stops added, read only int totalGradientStops = gradientStops.Count; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient 'Create instance to hold all the gradient stop Dim gradientStops As IGradientStops = slide.Background.Fill.GradientFill.GradientStops 'Add a gradient stop to the gradient stops collection gradientStops.Add() 'Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Crimson, 1.1F) 'Create instance for gradient stop Dim gradStop As IGradientStop = gradientStops.Add() 'Set position for gradient stop gradStop.Position = 5F 'Set color for gradient stop gradStop.Color = ColorObject.FromArgb(20, 106, 120) 'Get the count of gradient stops added, read only Dim totalGradientStops As Integer = gradientStops.Count 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets an instance at specified index from the gradient stop collection. Read-only. The . Determines the index of the gradient stop. Returns the instance. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient; //Create instance to hold all the gradient stop IGradientStops gradientStops = slide.Background.Fill.GradientFill.GradientStops; //Add a gradient stop to the gradient stops collection gradientStops.Add(); //Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Blue, 75F); //Gets a single gradient stop from the collection IGradientStop gradStop = gradientStops[0]; //Set position for gradient stop gradStop.Position = 25F; //Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90); //Add the gradient stop to collection gradientStops.Add(gradStop); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Set gradient fill to the slide background slide.Background.Fill.FillType = FillType.Gradient 'Create instance to hold all the gradient stop Dim gradientStops As IGradientStops = slide.Background.Fill.GradientFill.GradientStops 'Add a gradient stop to the gradient stops collection gradientStops.Add() 'Add a gradient stop by specifying color and position gradientStops.Add(ColorObject.Blue, 75F) 'Gets a single gradient stop from the collection Dim gradStop As IGradientStop = gradientStops(0) 'Set position for gradient stop gradStop.Position = 25F 'Set color for gradient stop gradStop.Color = ColorObject.FromArgb(23, 156, 90) 'Add the gradient stop to collection gradientStops.Add(gradStop) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represents the group shape in a slide. Gets an instance that represents all the elements within the group shape. The shapes. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a group shape to the slide IGroupShape groupShape = slide.GroupShapes.AddGroupShape(12, 12, 400, 400); //Create instance to hold all the shapes in a group shape IShapes shapes = groupShape.Shapes; //Add auto shapes to group shape shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120); shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30); //Set description for the group shape groupShape.Description = "This is a groupShape"; //Set title for the group shape groupShape.Title = "Group Shape"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a group shape to the slide Dim groupShape As IGroupShape = slide.GroupShapes.AddGroupShape(12, 12, 400, 400) 'Create instance to hold all the shapes in a group shape Dim shapes As IShapes = groupShape.Shapes 'Add auto shapes to group shape shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120) shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30) 'Set description for the group shape groupShape.Description = "This is a groupShape" 'Set title for the group shape groupShape.Title = "Group Shape" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets an instance that contains fill formatting properties. Read-only. The fill. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a group shape to the slide IGroupShape groupShape = slide.GroupShapes.AddGroupShape(12, 12, 400, 400); //Create instance to hold all the shapes in a group shape IShapes shapes = groupShape.Shapes; //Add auto shapes to group shape shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120); shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30); //Get the fill of a group shape IFill fill = groupShape.Fill; //Set the fill type for group shape fill.FillType = FillType.Solid; //Set the color for solid fill fill.SolidFill.Color = ColorObject.Red; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a group shape to the slide Dim groupShape As IGroupShape = slide.GroupShapes.AddGroupShape(12, 12, 400, 400) 'Create instance to hold all the shapes in a group shape Dim shapes As IShapes = groupShape.Shapes 'Add auto shapes to group shape shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120) shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30) 'Get the fill of a group shape Dim fill As IFill = groupShape.Fill 'Set the fill type for group shape fill.FillType = FillType.Solid 'Set the color for solid fill fill.SolidFill.Color = ColorObject.Red 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represents a collection of instance in a slide. Creates a group shape and adds the group shape to the shape collection. Represents the left position, in points. The Left value ranges from -169056 to 169056. Represents the top position, in points. The Top value ranges from -169056 to 169056. Represents the width, in points. The Width value ranges from 0 to 169056. Represents the height, in points. The Height value ranges from 0 to 169056. Returns an instance this method creates. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for group shapes IGroupShapes groupShapes = slide.GroupShapes; //Add group shape to the collection IGroupShape groupShape = groupShapes.AddGroupShape(12, 12, 300, 350); //Add shapes to group shape. groupShape.Shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30); groupShape.Shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for group shapes Dim groupShapes As IGroupShapes = slide.GroupShapes 'Add group shape to the collection Dim groupShape As IGroupShape = groupShapes.AddGroupShape(12, 12, 300, 350) 'Add shapes to group shape. groupShape.Shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30) groupShape.Shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Returns the zero-based index of the first occurrence of the instance within the collection. The IGroupShape instance to locate in the collection. Returns the zero-based index of the first occurrence of the specified group shape within the collection, if found; otherwise, –1. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for group shapes IGroupShapes groupShapes = slide.GroupShapes; //Add group shape to the collection IGroupShape groupShape1 = groupShapes.AddGroupShape(12, 12, 250, 250); IGroupShape groupShape2 = groupShapes.AddGroupShape(300, 50, 200, 100); //Add shape to group shape. groupShape1.Shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30); groupShape1.Shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120); groupShape2.Shapes.AddShape(AutoShapeType.Rectangle, 200, 12, 40, 30); groupShape2.Shapes.AddShape(AutoShapeType.Oval, 250, 50, 60, 120); //Get the index of added group shape int index = groupShapes.IndexOf(groupShape1); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for group shapes Dim groupShapes As IGroupShapes = slide.GroupShapes 'Add group shape to the collection Dim groupShape1 As IGroupShape = groupShapes.AddGroupShape(12, 12, 250, 250) Dim groupShape2 As IGroupShape = groupShapes.AddGroupShape(300, 50, 200, 100) 'Add shape to group shape. groupShape1.Shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30) groupShape1.Shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120) groupShape2.Shapes.AddShape(AutoShapeType.Rectangle, 200, 12, 40, 30) groupShape2.Shapes.AddShape(AutoShapeType.Oval, 250, 50, 60, 120) 'Get the index of added group shape Dim index As Integer = groupShapes.IndexOf(groupShape1) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the first occurrence of a specified instance from the group shape collection. The group shape object to be removed from the collection. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for group shapes IGroupShapes groupShapes = slide.GroupShapes; //Add group shape to the collection IGroupShape groupShape1 = groupShapes.AddGroupShape(12, 12, 250, 250); IGroupShape groupShape2 = groupShapes.AddGroupShape(300, 50, 200, 100); //Add shape to group shape. groupShape1.Shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30); groupShape1.Shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120); groupShape2.Shapes.AddShape(AutoShapeType.Rectangle, 200, 12, 40, 30); groupShape2.Shapes.AddShape(AutoShapeType.Oval, 250, 50, 60, 120); //Remove a group shape instance from collection groupShapes.Remove(groupShape2); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for group shapes Dim groupShapes As IGroupShapes = slide.GroupShapes 'Add group shape to the collection Dim groupShape1 As IGroupShape = groupShapes.AddGroupShape(12, 12, 250, 250) Dim groupShape2 As IGroupShape = groupShapes.AddGroupShape(300, 50, 200, 100) 'Add shape to group shape. groupShape1.Shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30) groupShape1.Shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120) groupShape2.Shapes.AddShape(AutoShapeType.Rectangle, 200, 12, 40, 30) groupShape2.Shapes.AddShape(AutoShapeType.Oval, 250, 50, 60, 120) 'Remove a group shape instance from collection groupShapes.Remove(groupShape2) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the element at the specified index of the group shape collection. The zero-based index of the group shape object to be removed. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for group shapes IGroupShapes groupShapes = slide.GroupShapes; //Add group shape to the collection IGroupShape groupShape1 = groupShapes.AddGroupShape(12, 12, 250, 250); IGroupShape groupShape2 = groupShapes.AddGroupShape(300, 50, 200, 100); //Add shape to group shape. groupShape1.Shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30); groupShape1.Shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120); groupShape2.Shapes.AddShape(AutoShapeType.Rectangle, 200, 12, 40, 30); groupShape2.Shapes.AddShape(AutoShapeType.Oval, 250, 50, 60, 120); //Remove an item from specific index. groupShapes.RemoveAt(0); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for group shapes Dim groupShapes As IGroupShapes = slide.GroupShapes 'Add group shape to the collection Dim groupShape1 As IGroupShape = groupShapes.AddGroupShape(12, 12, 250, 250) Dim groupShape2 As IGroupShape = groupShapes.AddGroupShape(300, 50, 200, 100) 'Add shape to group shape. groupShape1.Shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30) groupShape1.Shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120) groupShape2.Shapes.AddShape(AutoShapeType.Rectangle, 200, 12, 40, 30) groupShape2.Shapes.AddShape(AutoShapeType.Oval, 250, 50, 60, 120) 'Remove an item from specific index. groupShapes.RemoveAt(0) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets a instance from the collection. Read-only. The . Index from the collection. Returns the particular group shape based on the index. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for group shapes IGroupShapes groupShapes = slide.GroupShapes; //Add group shape to the collection IGroupShape groupShape1 = groupShapes.AddGroupShape(12, 12, 250, 250); IGroupShape groupShape2 = groupShapes.AddGroupShape(300, 50, 200, 100); //Add shape to group shape. groupShape1.Shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30); groupShape1.Shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120); groupShape2.Shapes.AddShape(AutoShapeType.Rectangle, 200, 12, 40, 30); groupShape2.Shapes.AddShape(AutoShapeType.Oval, 250, 50, 60, 120); //To access a specific group shape in the collection IGroupShape groupShape = groupShapes[0]; //Set the description groupShape.Description = "First group shape"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for group shapes Dim groupShapes As IGroupShapes = slide.GroupShapes 'Add group shape to the collection Dim groupShape1 As IGroupShape = groupShapes.AddGroupShape(12, 12, 250, 250) Dim groupShape2 As IGroupShape = groupShapes.AddGroupShape(300, 50, 200, 100) 'Add shape to group shape. groupShape1.Shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30) groupShape1.Shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120) groupShape2.Shapes.AddShape(AutoShapeType.Rectangle, 200, 12, 40, 30) groupShape2.Shapes.AddShape(AutoShapeType.Oval, 250, 50, 60, 120) 'To access a specific group shape in the collection Dim groupShape As IGroupShape = groupShapes(0) 'Set the description groupShape.Description = "First group shape" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the number of elements in the group shape collection. Read-only. The count. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for group shapes IGroupShapes groupShapes = slide.GroupShapes; //Add group shape to the collection IGroupShape groupShape1 = groupShapes.AddGroupShape(12, 12, 250, 250); IGroupShape groupShape2 = groupShapes.AddGroupShape(300, 50, 200, 100); //Add shape to group shape. groupShape1.Shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30); groupShape1.Shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120); groupShape2.Shapes.AddShape(AutoShapeType.Rectangle, 200, 12, 40, 30); groupShape2.Shapes.AddShape(AutoShapeType.Oval, 250, 50, 60, 120); //Get the count of group shapes collection int count = groupShapes.Count; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for group shapes Dim groupShapes As IGroupShapes = slide.GroupShapes 'Add group shape to the collection Dim groupShape1 As IGroupShape = groupShapes.AddGroupShape(12, 12, 250, 250) Dim groupShape2 As IGroupShape = groupShapes.AddGroupShape(300, 50, 200, 100) 'Add shape to group shape. groupShape1.Shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30) groupShape1.Shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120) groupShape2.Shapes.AddShape(AutoShapeType.Rectangle, 200, 12, 40, 30) groupShape2.Shapes.AddShape(AutoShapeType.Oval, 250, 50, 60, 120) 'Get the count of group shapes collection Dim count As Integer = groupShapes.Count 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Sets the language value Sets the language value Gets the layout number from the path. The path containing the layout number. Layout number from the path Sorts the relation collection. The relation collection to be sorted The sorted relation collection. Gets file name without extension from the path. Url to get name from. File name without extension from the path. Gets folder name from the path. The file path from which to extract the folder name. folder name from the path. Gets file name from the path. Url to get name from. File name from the path. Gets the file extension from the path. Represents the file path. Returns the file extension. Gets a PlaceholderType value with corresponding HeaderFooterType. Specifies a headerFooterType Retruns a PlaceholderType value with corresponding HeaderFooterType. Check whether current PlaceHolder is HeaderFooter or not. Represent a PlaceholderType to check. Returns true, if it is a HeaderFooter shape; Otherwise false. Gets a DateTimeFormatType for the provided field type. Represent the type of a field. Returns a DateTimeFormatType for the corresponding field type. Gets a DateTime field type for the provided DateTimeFormatType. Represent the type of a DateTimeFormat. Returns a DateTime field type for the provided DateTimeFormatType. Checks whether the layout placeholder and the current placeholder are same. Instance of the layout placeholder Instance of the current placeholder Returns whether both the placeholder are same. Checks whether the master placeholder and the current placeholder are same. Instance of the master placeholder Instance of the current placeholder Returns whether the master placeholder and the current placeholder are same. Checks whether the layout placeholder and the current placeholder are same. Instance of the layout placeholder Instance of the current placeholder Determines whether it is master slide or not Returns whether the layout placeholder and the current placeholder are same. Converts the string to "OleObjectType" The OLE type STR. Gets a OLE extension for specified ole type. Represent a OLE type. Returns a extension for the corresponding OLE type. Converts the string to "OleObjectType" The OLE type STR. Returns the color value from ColorMap dictionary. value The layout slide Gets the name of the placeholder. Represents the placeholder type. Return the string format of the placeholder. Check whether source and destination PlaceholderTypes are same or not. Represent a source PlaceholderTypes to compare. Represent a destination PlaceholderTypes to compare. Returns true, if source and destination are same; Otherwise false. Gets a PathFillMode for a input string. Represent a input string. Returns a PathFillMode. Gets the placeholder type from string. Placeholder type in string format. Returns the type of placeholder. Returns the color value from ColorMap dictionary. value The base slide Converts a string to an integer. The string to convert to an integer. The integer representation of the string or returns 0 if the string is null or empty. Converts a Base64 encoded string to a byte array. The Base64 encoded string to convert. The byte array represented by the Base64 encoded string, or null if the string is null. Convert percentage value to int. Gets a XML input for a PathFillMode. Represent a PathFillMode. Returns a string for PathFillMode. Converts the placeholder type to string. Type of the internal placeholder. Returns the string format of the placeholder type. Gets the font name from theme.xml, based on a script type. Represent a theme values. Represent the script type of TextRange. Check whether Lan attribute is valid or not. Returns true, if it is valid; Otherwise false. Gets a font name from theme.xml file. Represent the theme values. Represent the theme font name. Represent the script type. Represent the Lang attribute value. Gets a default font name to render the text, when retrived font name is null or empty. Represent a script type to check. Returns a default font name to render. Check whether current script is EastAsia script or not. Represent a scipt to check. Returns true, if it is an EastAsia script; Otherwise false. Check whether current script is Complex script or not. Represent a script to check. Returns true, if it is an Complex script; Otherwise false. Get the first key from the Dictionary with specified value Represent the Dictionary that contains value Represent the value Gets the layout type value equivalent to the slide layout type. Returns a string value for the slide layout type. Provides access to the types used to create and manipulate images in PowerPoint Presentations. Specifies the file format of the image. Specifies the image format is unknown Specifies the image format is BMP Specifies the image format is EMF Specifies the image format is GIF Specifies the image format is JPEG Specifies the image format is PNG Specifies the image format is WMF Specifies the image format is icon Specifies the image format is exif Specifies the image format is memory BMP Specifies the image format is tiff Specifies the type of the image. Specifies the ImageType is metafile Specifies the ImageType is bitmap Represents the functionalities for using images in presentation //Create an instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create an instance for image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Get the image from file path Image image = new Image(imageStream); // Add the image to the slide by specifying position and size slide.Pictures.AddPicture(new MemoryStream(image.ImageData), 120,100,290,200); //Save the presentation presentation.Save("Output.pptx"); //close the presentation presentation.Close(); 'Create an instance of PowerPoint presentation Dim presentation As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Create an instance for image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Get the image from file path Dim image As New Image(imageStream) ' Add the image to the slide by specifying position and size slide.Pictures.AddPicture(New MemoryStream(image.ImageData), 120, 100, 290, 200) 'Save the presentation presentation.Save("Output.pptx") 'close the presentation presentation.Close() Checks if Bmp. Checks if EMF or WMF. Checks if GIF. Checks if icon. Checks if JPEG. Checks if PNG. Initializes this instance. Parses the GIF image. Parses the EMF or WMF image. Parses the GIF image. Parses the icon image. Parses the JPEG image. Parses the PNG image. Reads the int16. Reads the int32. Reads the short LE. Reads the string. The len. Reads the Uint32. Reads the word. Resets this instance. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Returns the this method creates. //Create an instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create an instance for image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Get the image from file path Image image = Image.FromStream(imageStream); // Add the image to the slide by specifying position and size slide.Pictures.AddPicture(new MemoryStream(image.ImageData), 300, 270, 410, 250); //Save the presentation presentation.Save("Image.pptx"); //close the presentation presentation.Close(); 'Create an instance of PowerPoint presentation Dim presentation As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Create an instance for image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Get the image from file path Dim image As Image = Image.FromStream(imageStream) ' Add the image to the slide by specifying position and size slide.Pictures.AddPicture(New MemoryStream(image.ImageData), 300, 270, 410, 250) 'Save the presentation presentation.Save("Image.pptx") 'close the presentation presentation.Close() Creates an independent copy of the specified image. The this method creates. //Create an instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create an instance for image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Get the image from file path Image image = Image.FromStream(imageStream); //Clone the image Image clonedImage = image.Clone(); // Add the image to the slide by specifying position and size slide.Pictures.AddPicture(new MemoryStream(clonedImage.ImageData), 300, 270, 410, 250); //Save the presentation presentation.Save("Image.pptx"); //close the presentation presentation.Close(); 'Create an instance of PowerPoint presentation Dim presentation As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Create an instance for image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Get the image from file path Dim image As Image = Image.FromStream(imageStream) 'Clone the image Dim clonedImage As Image = image.Clone() ' Add the image to the slide by specifying position and size slide.Pictures.AddPicture(New MemoryStream(clonedImage.ImageData), 300, 270, 410, 250) 'Save the presentation presentation.Save("Image.pptx") 'close the presentation presentation.Close() Creates an image from the specified file. A string that contains the name of the file from which to create the . Returns the this method creates. //Create an instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Get the image from file path Image image = Image.FromFile(@"image.jpg"); // Add the image to the slide by specifying position and size slide.Pictures.AddPicture(new MemoryStream(image.ImageData), 300, 270, 410, 250); //Save the presentation presentation.Save("Image.pptx"); //close the presentation presentation.Close(); 'Create an instance of PowerPoint presentation Dim presentation As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Get the image from file path Dim image As Image = Image.FromFile("image.jpg") ' Add the image to the slide by specifying position and size slide.Pictures.AddPicture(New MemoryStream(image.ImageData), 300, 270, 410, 250) 'Save the presentation presentation.Save("Image.pptx") 'close the presentation presentation.Close() Gets the image format. Read-only. The image format. //Create an instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create an instance for image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Get the image from file path Image image = Image.FromStream(imageStream); //Get the image format, read only ImageFormat imageFormat = image.Format; //Add the image to the slide by specifying position and size slide.Pictures.AddPicture(new MemoryStream(image.ImageData), 300, 270, 410, 250); //Save the presentation presentation.Save("Output.pptx"); //close the presentation presentation.Close(); 'Create an instance of PowerPoint presentation Dim presentation As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Create an instance for image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Get the image from file path Dim image As Image = Image.FromStream(imageStream) 'Get the image format, read only Dim imageFormat As ImageFormat = image.Format 'Add the image to the slide by specifying position and size slide.Pictures.AddPicture(New MemoryStream(image.ImageData), 300, 270, 410, 250) 'Save the presentation presentation.Save("Output.pptx") 'close the presentation presentation.Close() Gets the height of the Image. Read-only. The height. //Create an instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create an instance for image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Get the image from file path Image image = Image.FromStream(imageStream); //Get the size of image, it is read only int Height = image.Height; int width = image.Width; //Add the image to the slide by specifying position and size slide.Pictures.AddPicture(new MemoryStream(image.ImageData), 300, 270, 410, 250); //Save the presentation presentation.Save("Output.pptx"); //close the presentation presentation.Close(); 'Create an instance of PowerPoint presentation Dim presentation As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Create an instance for image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Get the image from file path Dim image As Image = Image.FromStream(imageStream) 'Get the size of image, it is read only Dim Height As Integer = image.Height Dim width As Integer = image.Width 'Add the image to the slide by specifying position and size slide.Pictures.AddPicture(New MemoryStream(image.ImageData), 300, 270, 410, 250) 'Save the presentation presentation.Save("Output.pptx") 'close the presentation presentation.Close() Gets the image data as byte array. Read-only. The image data. //Create an instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create an instance for image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Get the image from file path Image image = Image.FromStream(imageStream); //Get the image data of image byte[] imageData = image.ImageData; //Add the image to the slide by specifying position and size slide.Pictures.AddPicture(new MemoryStream(imageData), 300, 270, 410, 250); //Save the presentation presentation.Save("Output.pptx"); //close the presentation presentation.Close(); 'Create an instance of PowerPoint presentation Dim presentation As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Create an instance for image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Get the image from file path Dim image As Image = Image.FromStream(imageStream) 'Get the image data of image Dim imageData As Byte() = image.ImageData 'Add the image to the slide by specifying position and size slide.Pictures.AddPicture(New MemoryStream(imageData), 300, 270, 410, 250) 'Save the presentation presentation.Save("Output.pptx") 'close the presentation presentation.Close() Gets the file format of the Image. Read-only. The image format. //Create an instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create an instance for image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Get the image from file path Image image = Image.FromStream(imageStream); //Get the image format, read only ImageFormat imageFormat = image.RawFormat; //Add the image to the slide by specifying position and size slide.Pictures.AddPicture(new MemoryStream(image.ImageData), 300, 270, 410, 250); //Save the presentation presentation.Save("Output.pptx"); //close the presentation presentation.Close(); 'Create an instance of PowerPoint presentation Dim presentation As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Create an instance for image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Get the image from file path Dim image As Image = Image.FromStream(imageStream) 'Get the image format, read only Dim imageFormat As ImageFormat = image.RawFormat 'Add the image to the slide by specifying position and size slide.Pictures.AddPicture(New MemoryStream(image.ImageData), 300, 270, 410, 250) 'Save the presentation presentation.Save("Output.pptx") 'close the presentation presentation.Close() Gets the width and height of the image. Read-only. The size. //Create an instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create an instance for image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Get the image from file path Image image = Image.FromStream(imageStream); //Get the size of image, it is read only System.Drawing.Size size = image.Size; //Set the width and height of the image size.Width = 300; size.Width = 200; //Add the image to the slide by specifying position and size slide.Pictures.AddPicture(new MemoryStream(image.ImageData), 120,100,size.Width,size.Height); //Save the presentation presentation.Save("Output.pptx"); //close the presentation presentation.Close(); 'Create an instance of PowerPoint presentation Dim presentation As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Create an instance for image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Get the image from file path Dim image As Image = Image.FromStream(imageStream) 'Get the size of image, it is read only Dim size As System.Drawing.Size = image.Size 'Set the width and height of the image size.Width = 300 size.Width = 200 'Add the image to the slide by specifying position and size slide.Pictures.AddPicture(New MemoryStream(image.ImageData), 120, 100, size.Width, size.Height) 'Save the presentation presentation.Save("Output.pptx") 'close the presentation presentation.Close() Gets the width of the Image. Read-only. The width. //Create an instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create an instance for image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Get the image from file path Image image = Image.FromStream(imageStream); //Get the size of image, it is read only int Height = image.Height; int width = image.Width; // Add the image to the slide by specifying position and size slide.Pictures.AddPicture(new MemoryStream(image.ImageData), 300, 270, 410, 250); //Save the presentation presentation.Save("Output.pptx"); //close the presentation presentation.Close(); 'Create an instance of PowerPoint presentation Dim presentation As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Create an instance for image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Get the image from file path Dim image As Image = Image.FromStream(imageStream) 'Get the size of image, it is read only Dim Height As Integer = image.Height Dim width As Integer = image.Width ' Add the image to the slide by specifying position and size slide.Pictures.AddPicture(New MemoryStream(image.ImageData), 300, 270, 410, 250) 'Save the presentation presentation.Save("Output.pptx") 'close the presentation presentation.Close() Represents the line and arrowhead formatting options. Gets or sets the length of the arrowhead at the beginning of the specified line. The length of the begin arrowhead. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance of line format from shape ILineFormat lineFormat = shape.LineFormat; //Set the length of the beginning arrowhead of the line lineFormat.BeginArrowheadLength = ArrowheadLength.Long; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance of line format from shape Dim lineFormat As ILineFormat = shape.LineFormat 'Set the length of the beginning arrowhead of the line lineFormat.BeginArrowheadLength = ArrowheadLength.[Long] 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the style of the arrowhead at the beginning of the specified line. The begin arrowhead style. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance of line format from shape ILineFormat lineFormat = shape.LineFormat; //Set the style of the beginning arrowhead of the line lineFormat.BeginArrowheadStyle = ArrowheadStyle.ArrowOval; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance of line format from shape Dim lineFormat As ILineFormat = shape.LineFormat 'Set the style of the beginning arrowhead of the line lineFormat.BeginArrowheadStyle = ArrowheadStyle.ArrowOval 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the width of the arrowhead at the beginning of the specified line. The width of the begin arrowhead. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance of line format from shape ILineFormat lineFormat = shape.LineFormat; //Set the width of the beginning arrowhead of the line lineFormat.BeginArrowheadWidth = ArrowheadWidth.Narrow; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance of line format from shape Dim lineFormat As ILineFormat = shape.LineFormat 'Set the width of the beginning arrowhead of the line lineFormat.BeginArrowheadWidth = ArrowheadWidth.Narrow 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the line cap style. The cap style. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance of line format from shape ILineFormat lineFormat = shape.LineFormat; //Set the line cap style lineFormat.CapStyle = LineCapStyle.Flat; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance of line format from shape Dim lineFormat As ILineFormat = shape.LineFormat 'Set the line cap style lineFormat.CapStyle = LineCapStyle.Flat 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the line dash style. The dash style. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance of line format from shape ILineFormat lineFormat = shape.LineFormat; //Set the line dash style lineFormat.DashStyle = LineDashStyle.DashLongDashDot; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance of line format from shape Dim lineFormat As ILineFormat = shape.LineFormat 'Set the line dash style lineFormat.DashStyle = LineDashStyle.DashLongDashDot 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the length of the arrowhead at the end of the specified line. The end length of the arrowhead. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance of line format from shape ILineFormat lineFormat = shape.LineFormat; //Set the length of the end arrowhead of the line lineFormat.EndArrowheadLength = ArrowheadLength.Medium; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance of line format from shape Dim lineFormat As ILineFormat = shape.LineFormat 'Set the length of the end arrowhead of the line lineFormat.EndArrowheadLength = ArrowheadLength.Medium 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the style of the arrowhead at the end of the specified line. The end arrowhead style. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance of line format from shape ILineFormat lineFormat = shape.LineFormat; //Set the style of the end arrowhead of the line lineFormat.EndArrowheadStyle = ArrowheadStyle.ArrowDiamond; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance of line format from shape Dim lineFormat As ILineFormat = shape.LineFormat 'Set the style of the end arrowhead of the line lineFormat.EndArrowheadStyle = ArrowheadStyle.ArrowDiamond 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the width of the arrowhead at the end of the specified line. The end width of the arrowhead. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance of line format from shape ILineFormat lineFormat = shape.LineFormat; //Set the width of the end arrowhead of the line lineFormat.EndArrowheadWidth = ArrowheadWidth.Wide; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance of line format from shape Dim lineFormat As ILineFormat = shape.LineFormat 'Set the width of the end arrowhead of the line lineFormat.EndArrowheadWidth = ArrowheadWidth.Wide 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets an instance that represents fill formatting options. Read-only. The fill. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance of line format from shape ILineFormat lineFormat = shape.LineFormat; //Retrieve the fill of line format IFill fill = lineFormat.Fill; //Set the fill type of line fill.FillType = FillType.Solid; //Set the color for solid fill fill.SolidFill.Color = ColorObject.DeepPink; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance of line format from shape Dim lineFormat As ILineFormat = shape.LineFormat 'Retrieve the fill of line format Dim fill As IFill = lineFormat.Fill 'Set the fill type of line fill.FillType = FillType.Solid 'Set the color for solid fill fill.SolidFill.Color = ColorObject.DeepPink 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets line join type. The type of the line join. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance of line format from shape ILineFormat lineFormat = shape.LineFormat; //Set the line join type lineFormat.LineJoinType = LineJoinType.Miter; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance of line format from shape Dim lineFormat As ILineFormat = shape.LineFormat 'Set the line join type lineFormat.LineJoinType = LineJoinType.Miter 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or set the line style. The style. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance of line format from shape ILineFormat lineFormat = shape.LineFormat; //Set the line style lineFormat.Style = LineStyle.ThickThin; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance of line format from shape Dim lineFormat As ILineFormat = shape.LineFormat 'Set the line style lineFormat.Style = LineStyle.ThickThin 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or set the line weight, in points. The range of Weight is from 0 to 1584. The weight. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance of line format from shape ILineFormat lineFormat = shape.LineFormat; //Set the weight lineFormat.Weight = 17; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance of line format from shape Dim lineFormat As ILineFormat = shape.LineFormat 'Set the weight lineFormat.Weight = 17 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Check whether current border is conflicting border or not. Represent the current border type. Returns true. If current border is a conflicting border; otherwise false. Gets the index of a current cell. Compares the current LineFormat object with given LineFormat object. The LineFormat object to compare with the current instance. True if the LineFormat objects are equal; otherwise, false. Represents the OLE object in the PowerPoint presentation. Gets the image data for the specified OLE object. The byte array that specifies the OLE image data. //Load a PowerPoint presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Get the first slide from the presentation ISlide slide = presentation.Slides[0]; //Get the oleObject from the slide IOleObject oleObject = (IShape)slide.Shapes[0] as IOleObject; //Gets the image data of embedded Ole Object. byte[] array = oleObject.ImageData; //Save the extracted OLE image data into file system. MemoryStream memoryStream = new MemoryStream(array); FileStream fileStream = File.Create("OleImage.png"); memoryStream.CopyTo(fileStream); memoryStream.Dispose(); fileStream.Dispose(); //Close the Presentation presentation.Close(); 'Load a PowerPoint presentation Dim presentation As IPresentation = Syncfusion.Presentation.Presentation.Open("Sample.pptx") 'Get the first slide from the presentation Dim slide As ISlide = presentation.Slides(0) 'Get the oleObject from the slide Dim oleObject As IOleObject = CType(CType(slide.Shapes(0), IOleObject), IShape) 'Gets the image data of embedded Ole Object. Dim array() As Byte = oleObject.ImageData 'Save the extracted OLE image data into file system. Dim memoryStream As MemoryStream = New MemoryStream(array) Dim fileStream As FileStream = File.Create("OleImage.png") memoryStream.CopyTo(fileStream) memoryStream.Dispose fileStream.Dispose 'Close the Presentation presentation.Close() Gets the embedded file data for the specified OLE object. The byte array that specifies the embedded file data. //Load a PowerPoint presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Get the first slide from the presentation ISlide slide = presentation.Slides[0]; //Get the oleObject from the slide IOleObject oleObject = (IShape)slide.Shapes[0] as IOleObject; //Gets the embedded OLE object data byte[] array = oleObject.ObjectData; //Save the extracted OLE data into file system. MemoryStream memoryStream = new MemoryStream(array); FileStream fileStream = File.Create("OleFile.docx"); memoryStream.CopyTo(fileStream); memoryStream.Dispose(); fileStream.Dispose(); //Close the Presentation presentation.Close(); 'Load a PowerPoint presentation Dim presentation As IPresentation = Syncfusion.Presentation.Presentation.Open("Sample.pptx") 'Get the first slide from the presentation Dim slide As ISlide = presentation.Slides(0) 'Get the oleObject from the slide Dim oleObject As IOleObject = CType(CType(slide.Shapes(0), IOleObject), IShape) 'Gets the embedded OLE object data Dim array() As Byte = oleObject.ObjectData 'Save the extracted OLE data into file system. Dim memoryStream As MemoryStream = New MemoryStream(array) Dim fileStream As FileStream = File.Create("OleFile.docx") memoryStream.CopyTo(fileStream) memoryStream.Dispose fileStream.Dispose 'Close the Presentation presentation.Close() Gets the programmatic identifier (ProgID) for the specified OLE object. The string that specifies the type of the OLE object. //Load a PowerPoint presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Get the first slide from the presentation ISlide slide = presentation.Slides[0]; //Get the oleObject from the slide IOleObject oleObject = (IShape)slide.Shapes[0] as IOleObject; //Gets the embedded OLE object type string objectType = oleObject.ProgID; //Close the Presentation presentation.Close(); 'Load a PowerPoint presentation Dim presentation As IPresentation = Syncfusion.Presentation.Presentation.Open("Sample.pptx") 'Get the first slide from the presentation Dim slide As ISlide = presentation.Slides(0) 'Get the oleObject from the slide Dim oleObject As IOleObject = CType(CType(slide.Shapes(0), IOleObject), IShape) 'Gets the embedded OLE object type Dim objectType As String = oleObject.ProgID 'Close the Presentation presentation.Close() Gets or sets a value indicating whether the OLE object is displayed as an icon or content. True if the OLE object is displayed as an icon; otherwise, false. Initially Presentation library generated documents display the icon (given image) in place of the embedded OLE instance. By setting the DisplayAsIcon property to true, the icon is not updated after opening or editing the OLE instance by using Microsoft PowerPoint. However, setting the DisplayAsIcon property to false enables the Presentation document to update the icons dynamically with the content after opening or editing the OLE instance. //Create new instance of PowerPoint presentation. IPresentation pptxDoc = Presentation.Create(); //Add slide with blank layout to presentation ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Get the excel file as stream Stream excelStream = File.Open("OleTemplate.xlsx", FileMode.Open); //Image to be displayed, This can be any image Stream imageStream = File.Open("OlePicture.png", FileMode.Open); //Add an OLE object to the slide IOleObject oleObject = slide.Shapes.AddOleObject(imageStream, "Excel.Sheet.12", excelStream); //Set size and position of the OLE object oleObject.Left = 10; oleObject.Top = 10; oleObject.Width = 400; oleObject.Height = 300; //Set DisplayAsIcon as true, to open the embedded document in separate (default) application. oleObject.DisplayAsIcon = true; //Save the presentation pptxDoc.Save("OleObjectSample.pptx"); //Close the presentation pptxDoc.Close(); 'Create New instance of PowerPoint presentation. Dim pptxDoc As IPresentation = Presentation.Create 'Add slide with blank layout to presentation Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Get the excel file as stream Dim excelStream As Stream = File.Open("OleTemplate.xlsx", FileMode.Open) 'Image to be displayed, This can be any image Dim imageStream As Stream = File.Open("OlePicture.png", FileMode.Open) 'Add an OLE object to the slide Dim oleObject As IOleObject = slide.Shapes.AddOleObject(imageStream, "Excel.Sheet.12", excelStream) 'Set size and position of the OLE object oleObject.Left = 10 oleObject.Top = 10 oleObject.Width = 400 oleObject.Height = 300 'Set DisplayAsIcon as true, to open the embedded document in separate (default) application. oleObject.DisplayAsIcon = True 'Save the presentation pptxDoc.Save("OleObjectSample.pptx") 'Close the presentation pptxDoc.Close() Gets the linked path for the specified OLE object. The string that specifies the OLE object link address. //Load a PowerPoint presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Get the first slide from the presentation ISlide slide = presentation.Slides[0]; //Get the oleObject from the slide IOleObject oleObject = (IShape)slide.Shapes[0] as IOleObject; //Gets the OLE object linked path string objectPath = oleObject.LinkPath; //Close the Presentation presentation.Close(); 'Load a PowerPoint presentation Dim presentation As IPresentation = Syncfusion.Presentation.Presentation.Open("Sample.pptx") 'Get the first slide from the presentation Dim slide As ISlide = presentation.Slides(0) 'Get the oleObject from the slide Dim oleObject As IOleObject = CType(CType(slide.Shapes(0), IOleObject), IShape) 'Gets the OLE object linked path Dim objectPath As String = oleObject.LinkPath 'Close the Presentation presentation.Close() Gets the file name of embedded or linked OLE object. The string that specifies the file name of the OLE object. //Load a PowerPoint presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Get the first slide from the presentation ISlide slide = presentation.Slides[0]; //Get the oleObject from the slide IOleObject oleObject = (IShape)slide.Shapes[0] as IOleObject; //Gets the embedded OLE object data byte[] array = oleObject.ObjectData; //Gets the file name of OLE object string fileName = oleObject.FileName; //Save the extracted OLE data into file system. MemoryStream memoryStream = new MemoryStream(array); FileStream fileStream = File.Create(fileName); memoryStream.CopyTo(fileStream); memoryStream.Dispose(); fileStream.Dispose(); //Close the Presentation presentation.Close(); 'Load a PowerPoint presentation Dim presentation As IPresentation = Syncfusion.Presentation.Presentation.Open("Sample.pptx") 'Get the first slide from the presentation Dim slide As ISlide = presentation.Slides(0) 'Get the oleObject from the slide Dim oleObject As IOleObject = CType(CType(slide.Shapes(0), IOleObject), IShape) 'Gets the embedded OLE object data Dim array() As Byte = oleObject.ObjectData 'Gets the file name of OLE object Dim fileName As string = oleObject.FileName 'Save the extracted OLE data into file system. Dim memoryStream As MemoryStream = New MemoryStream(array) Dim fileStream As FileStream = File.Create(fileName) memoryStream.CopyTo(fileStream) memoryStream.Dispose fileStream.Dispose 'Close the Presentation presentation.Close() The ole stream name Updates the GUID. The CMP file. The index. Saves the specified native data. The native data. The data path. The OLE object. Writes the "Ole" stream. Type of the link. Type of the obj. The data path. Writes the "ObjInfo" stream. Type of the link. Type of the obj. Writes the "CompObj" stream. Type of the obj. Writes the native data. The native data. The data path. Type of the object. Writes the native data. The native data. Name of the stream. Writes the embedded drawing. The native data. Writes the native streams. The stream. Writes the package. The native data. The data path. Update a embedded OLE object data. Get byte array from a ICompoundStorage. Represent the ICompoundStorage Represent the stream name to extract. Returns the byte array Gets a default Ole package names Sets the type of the OLE. The type. Sets the link path of the OLE. The type. Sets the file name of the OLE. The file name of a OLE. Sets the OLE picture. The picture. Compares the current Shape object with given Shape object. The Shape object to compare with the current instance. True if the Shape objects are equal; otherwise, false. Clones the OleObject instance. Returns the cloned OleObject instance. Close the OLEObject instance Sets the baseslide parent to the current OleObject instance. Parent instance to be assigned to the current oleobject's parent. Gets the programmatic identifier (ProgID) for the specified OLE object. The string that specifies the type of the OLE object. Gets the image data for the specified OLE object. The byte array that specifies the OLE image data. Gets the linked path for the specified OLE object. The string that specifies the OLE object link address. Gets the file name of embedded or linked OLE object. The string that specifies the file name of the OLE object. Gets the embedded file data for the specified OLE object. The byte array that specifies the embedded file data. Gets or sets a value indicating whether the OLE object is displayed as an icon or content. True if the OLE object is displayed as an icon; otherwise, false. Initially Presentation library generated documents display the icon (given image) in place of the embedded OLE instance. By setting the DisplayAsIcon property to true, the icon is not updated after opening or editing the OLE instance by using Microsoft PowerPoint. However, setting the DisplayAsIcon property to false enables the Presentation document to update the icons dynamically with the content after opening or editing the OLE instance. Gets the type of the OLE object. The type of the OLE object. Class specifies storage with sub storages and streams. Initializes a new instance of the class. Name of the storage. Parses the storages. The storage. Parses the streams. The storage. Writes to storage. The storage. Gets the byte array of the stream Compare storages Compares the array. The buffer1. The buffer2. Updates the GUID. The CMP file. The index. The storage name Clones this instance. Closes this instance. Gets or sets the name of the storage. The name of the storage. Gets the streams. The streams. Gets the storages. The storages. Gets/sets the occurrence of the OleObject Class performs converting string to OleObjectType enum and vice versa. Converts the string to "OleObjectType" The OLE type STR. Converts the string to "OleObjectType" The OLE type STR. Gets the GUID for specified type of object. The type. Implemented alternative method to improve the performance Represent the parsing algorithm of a OLE native stream Create a object of the Ole10NativeParser Read a string until the empty byte comes. Specifies the byte array to read Specifies a start position of a array to read Returns the builded string Gets the native data from the OLE native stream Gets the file name of the OLE native stream. Clones the VmlShape instance. Returns the cloned VmlShape instance. Gets or Sets a FillMode of Path2D. Specifies how the corresponding path should be filled. Represents the pattern type in fill format. Gets or sets the back color for the pattern. The color of the background. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add shape to slide IShape shape = slide.Shapes.AddShape(AutoShapeType.BlockArc, 12, 23, 100, 220); //Retrieve fill from shape IFill fill = shape.Fill; //Set pattern fill type to shape fill.FillType = FillType.Pattern; //Retrieve the pattern fill IPatternFill patternFill = fill.PatternFill; //Set back color for the pattern patternFill.BackColor = ColorObject.Blue; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add shape to slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.BlockArc, 12, 23, 100, 220) 'Retrieve fill from shape Dim fill As IFill = shape.Fill 'Set pattern fill type to shape fill.FillType = FillType.Pattern 'Retrieve the pattern fill Dim patternFill As IPatternFill = fill.PatternFill 'Set back color for the pattern patternFill.BackColor = ColorObject.Blue 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the foreground color for the pattern. The color of the foreground. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add shape to slide IShape shape = slide.Shapes.AddShape(AutoShapeType.BlockArc, 12, 23, 100, 220); //Retrieve fill from shape IFill fill = shape.Fill; //Set pattern fill type to shape fill.FillType = FillType.Pattern; //Retrieve the pattern fill IPatternFill patternFill = fill.PatternFill; //Set fore color for the pattern patternFill.ForeColor = ColorObject.Blue; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add shape to slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.BlockArc, 12, 23, 100, 220) 'Retrieve fill from shape Dim fill As IFill = shape.Fill 'Set pattern fill type to shape fill.FillType = FillType.Pattern 'Retrieve the pattern fill Dim patternFill As IPatternFill = fill.PatternFill 'Set fore color for the pattern patternFill.ForeColor = ColorObject.Blue 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets of sets a pattern type of the fill format. The pattern. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add shape to slide IShape shape = slide.Shapes.AddShape(AutoShapeType.BlockArc, 12, 23, 100, 220); //Retrieve fill from shape IFill fill = shape.Fill; //Set pattern fill type to shape fill.FillType = FillType.Pattern; //Retrieve the pattern fill IPatternFill patternFill = fill.PatternFill; //Set the pattern type patternFill.Pattern = PatternFillType.DashedDownwardDiagonal; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add shape to slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.BlockArc, 12, 23, 100, 220) 'Retrieve fill from shape Dim fill As IFill = shape.Fill 'Set pattern fill type to shape fill.FillType = FillType.Pattern 'Retrieve the pattern fill Dim patternFill As IPatternFill = fill.PatternFill 'Set the pattern type patternFill.Pattern = PatternFillType.DashedDownwardDiagonal 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represents ForeColor color index. Compares the current PatternFill object with given PatternFill object. The PatternFill object to compare with the current instance. True if the PatternFill objects are equal; otherwise, false. Gets or sets a boolean value indicates whether format options are applied from Picture or Shape. Represents the image in presentation. Gets or sets the image data as byte array. The byte data of the image. //Open an existing presentation. IPresentation presentation = Presentation.Open("Picture.pptx"); //Retrieve the first slide from the presentation. ISlide slide = presentation.Slides[0]; //Retrieve the first picture from the slide. IPicture picture = slide.Pictures[0]; //Get the new picture as stream. Stream pictureStream = File.Open("Image.gif", FileMode.Open); //Create instance for memory stream MemoryStream memoryStream = new MemoryStream(); //Copy stream to memoryStream. pictureStream.CopyTo(memoryStream); //Replace the existing image with new image. picture.ImageData = memoryStream.ToArray(); //Save the presentation to the file system. presentation.Save("ImageData.pptx"); //Close the presentation presentation.Close(); 'Open an existing presentation. Dim presentation__1 As IPresentation = Presentation.Open("Picture.pptx") 'Retrieve the first slide from the presentation. Dim slide As ISlide = presentation__1.Slides(0) 'Retrieve the first picture from the slide. Dim picture As IPicture = slide.Pictures(0) 'Get the new picture as stream. Dim pictureStream As Stream = File.Open("Image.gif", FileMode.Open) 'Create instance for memory stream Dim memoryStream As New MemoryStream() 'Copy stream to memoryStream. pictureStream.CopyTo(memoryStream) 'Replace the existing image with new image. picture.ImageData = memoryStream.ToArray() 'Save the presentation to the file system. presentation__1.Save("ImageData.pptx") 'Close the presentation presentation__1.Close() Gets or sets the SVG image data as byte array. The default value is null. Returns the byte array of the SVG image. //Open an existing presentation. IPresentation presDoc = Presentation.Open("Picture.pptx"); //Retrieve the first slide from the presentation. ISlide slide = presDoc.Slides[0]; //Retrieve the first picture from the slide. IPicture picture = slide.Pictures[0]; //Get the new SVG image as stream. Stream svgStream = File.Open("Image.svg", FileMode.Open); //Create instance for memory stream MemoryStream memoryStream = new MemoryStream(); //Copy stream to memoryStream. svgStream.CopyTo(memoryStream); //Replace the existing svg image with new image. picture.SvgData = memoryStream.ToArray(); //Save the presentation to the file system. presDoc.Save("ImageData.pptx"); //Close the presentation presDoc.Close(); 'Open an existing presentation. Dim presDoc As IPresentation = Presentation.Open("Picture.pptx") 'Retrieve the first slide from the presentation. Dim slide As ISlide = presDoc.Slides(0) 'Retrieve the first picture from the slide. Dim picture As IPicture = slide.Pictures(0) 'Get the new SVG image as stream. Dim svgStream As Stream = File.Open("Image.svg", FileMode.Open) 'Create instance for memory stream Dim memoryStream As New MemoryStream() 'Copy stream to memoryStream. svgStream.CopyTo(memoryStream) 'Replace the existing svg image with new image. picture.SvgData = memoryStream.ToArray() 'Save the presentation to the file system. presDoc.Save("ImageData.pptx") 'Close the presentation presDoc.Close() Gets the . The image format of the current image. //Open an existing presentation. IPresentation presentation = Presentation.Open("Picture.pptx"); //Retrieve the first slide from the presentation. ISlide slide = presentation.Slides[0]; //Retrieve the first picture from the slide. IPicture picture = slide.Pictures[0]; //Get the new picture as stream. Stream pictureStream = File.Open("Image.gif", FileMode.Open); //Create instance for memory stream MemoryStream memoryStream = new MemoryStream(); //Copy stream to memoryStream. pictureStream.CopyTo(memoryStream); //Replace the existing image with new image. picture.ImageData = memoryStream.ToArray(); //Get the image format of the pictures Syncfusion.Drawing.ImageFormat imageFormat = picture.ImageFormat; //Save the presentation to the file system. presentation.Save("ImageData.pptx"); //Close the presentation presentation.Close(); 'Open an existing presentation. Dim presentation__1 As IPresentation = Presentation.Open("Picture.pptx") 'Retrieve the first slide from the presentation. Dim slide As ISlide = presentation__1.Slides(0) 'Retrieve the first picture from the slide. Dim picture As IPicture = slide.Pictures(0) 'Get the new picture as stream. Dim pictureStream As Stream = File.Open("Image.gif", FileMode.Open) 'Create instance for memory stream Dim memoryStream As New MemoryStream() 'Copy stream to memoryStream. pictureStream.CopyTo(memoryStream) 'Replace the existing image with new image. picture.ImageData = memoryStream.ToArray() 'Get the image format of the pictures Dim imageFormat As Syncfusion.Drawing.ImageFormat = picture.ImageFormat 'Save the presentation to the file system. presentation__1.Save("ImageData.pptx") 'Close the presentation presentation__1.Close() Represents the crop properties used to define the portion of an image to be cropped. //Open an existing presentation. IPresentation presentation = Presentation.Open("Input.pptx"); //Retrieve the first slide from the presentation. ISlide slide = presentation.Slides[0]; //Retrieve the first picture from the slide. IPicture picture = slide.Pictures[0]; //Crops the picture. picture.Crop.ContainerLeft = 200; picture.Crop.ContainerTop = 200; picture.Crop.ContainerWidth = 200; picture.Crop.ContainerHeight = 200; //Save the presentation to the file system. presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Open an existing presentation. Dim presentation__1 As IPresentation = Presentation.Open("Input.pptx") 'Retrieve the first slide from the presentation. Dim slide As ISlide = presentation__1.Slides(0) 'Retrieve the first picture from the slide. Dim picture As IPicture = slide.Pictures(0) //Crops the picture. picture.Crop.ContainerLeft = 200; picture.Crop.ContainerTop = 200; picture.Crop.ContainerWidth = 200; picture.Crop.ContainerHeight = 200; 'Save the presentation to the file system. presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Add the svg and raster image stream Represent the svg stream Represent the raster image stream Add the stream of the svg and raster images. Represent the svg stream Represent the raster image stream Compares the current Picture object with given Picture object. The Shape object to compare with the current instance. True if the Shape objects are equal; otherwise, false. Sets the BaseSlide parent to the current picture's base instance. Gets or sets a value indicating whether the picture is in the OLE format. Get or Set the data of the SVG picture. Retrieves an instance of the Crop class. An instance of the Crop class. Represents a collection of in a slide. Represents the left position, in points. The Left value ranges from -169056 to 169056. Represents the top position, in points. The Top value ranges from -169056 to 169056. Represents the width, in points. The Width value ranges from 0 to 169056. Represents the height, in points. The Height value ranges from 0 to 169056. Returns an instance. //Create an instance for PowerPoint IPresentation presentation = Presentation.Create(); //Add a blank slide to presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold picture collection IPictures pictures = slide.Pictures; //Create an instance for image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Add picture to the picture collection pictures.AddPicture(imageStream, 373, 83, 200, 100); //Create an instance for image as stream Stream stream = File.Open("pptxtoimage.png", FileMode.Open); //Add picture to the shape collection pictures.AddPicture(stream, 100, 20, 200, 300); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create an instance for PowerPoint Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold picture collection Dim pictures As IPictures = slide.Pictures 'Create an instance for image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Add picture to the picture collection pictures.AddPicture(imageStream, 373, 83, 200, 100) 'Create an instance for image as stream Dim stream As Stream = File.Open("pptxtoimage.png", FileMode.Open) 'Add picture to the shape collection pictures.AddPicture(stream, 100, 20, 200, 300) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Creates a picture from the specified svg, its fallback image stream and adds the picture to the picture collection. The instance of SVG image. The instance of fallback image. Represents the left position, in points. The Left value ranges from -169056 to 169056. Represents the top position, in points. The Top value ranges from -169056 to 169056. Represents the width, in points. The Width value ranges from 0 to 169056. Represents the height, in points. The Height value ranges from 0 to 169056. Returns an instance. //Create an instance for PowerPoint IPresentation presDoc = Presentation.Create(); //Add a blank slide to presentation ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Create instance to hold picture collection IPictures pictures = slide.Pictures; //Create an instance for fallback image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Create an instance for vector image as stream Stream svgStream = File.Open("Image.svg", FileMode.Open); //Add picture to the picture collection pictures.AddPicture(svgStream, imageStream, 373, 83, 200, 100); //Save the presentation presDoc.Save("Sample.pptx"); //Close the presentation presDoc.Close(); 'Create an instance for PowerPoint Dim presDoc As IPresentation = Presentation.Create() 'Add a blank slide to presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold picture collection Dim pictures As IPictures = slide.Pictures 'Create an instance for fallback image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Create an instance for vector image as stream Dim svgStream As Stream = File.Open("Image.svg", FileMode.Open) 'Add picture to the picture collection pictures.AddPicture(svgStream, imageStream, 373, 83, 200, 100) 'Save the presentation presDoc.Save("Sample.pptx") 'Close the presentation presDoc.Close() Returns the index of first occurrence of the specified picture instance from the collection. Represents the picture from the collection. The zero-based index of the first occurrence of picture within the picture collection, if found; otherwise, –1. //Create an instance for PowerPoint IPresentation presentation = Presentation.Create(); //Add a blank slide to presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold picture collection IPictures pictures = slide.Pictures; //Create an instance for image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Add picture to the picture collection pictures.AddPicture(imageStream, 373, 83, 200, 100); //Create an instance for image as stream Stream stream = File.Open("pptxtoimage.png", FileMode.Open); //Add picture to the shape collection pictures.AddPicture(stream, 100, 20, 200, 300); //Retrieve a specific picture from the collection, read only IPicture picture = pictures[0]; //Get the index of specific picture instance int index = pictures.IndexOf(picture); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create an instance for PowerPoint Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold picture collection Dim pictures As IPictures = slide.Pictures 'Create an instance for image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Add picture to the picture collection pictures.AddPicture(imageStream, 373, 83, 200, 100) 'Create an instance for image as stream Dim stream As Stream = File.Open("pptxtoimage.png", FileMode.Open) 'Add picture to the shape collection pictures.AddPicture(stream, 100, 20, 200, 300) 'Retrieve a specific picture from the collection, read only Dim picture As IPicture = pictures(0) 'Get the index of specific picture instance Dim index As Integer = pictures.IndexOf(picture) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the first occurrence of the specified picture object from the picture collection Represents the picture to be removed from the collection. //Create an instance for PowerPoint IPresentation presentation = Presentation.Create(); //Add a blank slide to presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold picture collection IPictures pictures = slide.Pictures; //Create an instance for image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Add picture to the picture collection pictures.AddPicture(imageStream, 373, 83, 200, 100); //Create an instance for image as stream Stream stream = File.Open("pptxtoimage.png", FileMode.Open); //Add picture to the shape collection pictures.AddPicture(stream, 100, 20, 200, 300); //Retrieve a specific picture from the collection, read only IPicture picture = pictures[0]; //Remove a specific picture from collection pictures.Remove(picture); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create an instance for PowerPoint Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold picture collection Dim pictures As IPictures = slide.Pictures 'Create an instance for image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Add picture to the picture collection pictures.AddPicture(imageStream, 373, 83, 200, 100) 'Create an instance for image as stream Dim stream As Stream = File.Open("pptxtoimage.png", FileMode.Open) 'Add picture to the shape collection pictures.AddPicture(stream, 100, 20, 200, 300) 'Retrieve a specific picture from the collection, read only Dim picture As IPicture = pictures(0) 'Remove a specific picture from collection pictures.Remove(picture) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the picture from the collection. The zero-based index of the first occurrence of the picture within the picture collection, if found; otherwise, –1. //Create an instance for PowerPoint IPresentation presentation = Presentation.Create(); //Add a blank slide to presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold picture collection IPictures pictures = slide.Pictures; //Create an instance for image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Add picture to the picture collection pictures.AddPicture(imageStream, 373, 83, 200, 100); //Create an instance for image as stream Stream stream = File.Open("pptxtoimage.png", FileMode.Open); //Add picture to the shape collection pictures.AddPicture(stream, 100, 20, 200, 300); //Remove a picture using index position pictures.RemoveAt(0); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create an instance for PowerPoint Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold picture collection Dim pictures As IPictures = slide.Pictures 'Create an instance for image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Add picture to the picture collection pictures.AddPicture(imageStream, 373, 83, 200, 100) 'Create an instance for image as stream Dim stream As Stream = File.Open("pptxtoimage.png", FileMode.Open) 'Add picture to the shape collection pictures.AddPicture(stream, 100, 20, 200, 300) 'Remove a picture using index position pictures.RemoveAt(0) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the picture at the specified index. Specified index value of picture from the picture collection. The index value of the picture collection. Returns picture at the particular index. //Create an instance for PowerPoint IPresentation presentation = Presentation.Create(); //Add a blank slide to presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold picture collection IPictures pictures = slide.Pictures; //Create an instance for image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Add picture to the picture collection pictures.AddPicture(imageStream, 373, 83, 200, 100); //Create an instance for image as stream Stream stream = File.Open("pptxtoimage.png", FileMode.Open); //Add picture to the shape collection pictures.AddPicture(stream, 100, 20, 200, 300); //Retrieve a specific picture from the collection, read only IPicture picture = pictures[0]; //Set the description picture.Description = "My picture"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create an instance for PowerPoint Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold picture collection Dim pictures As IPictures = slide.Pictures 'Create an instance for image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Add picture to the picture collection pictures.AddPicture(imageStream, 373, 83, 200, 100) 'Create an instance for image as stream Dim stream As Stream = File.Open("pptxtoimage.png", FileMode.Open) 'Add picture to the shape collection pictures.AddPicture(stream, 100, 20, 200, 300) 'Retrieve a specific picture from the collection, read only Dim picture As IPicture = pictures(0) 'Set the description picture.Description = "My picture" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Returns the number of pictures present in the picture collection. The total count of the picture. //Create an instance for PowerPoint IPresentation presentation = Presentation.Create(); //Add a blank slide to presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold picture collection IPictures pictures = slide.Pictures; //Create an instance for image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Add picture to the picture collection pictures.AddPicture(imageStream, 373, 83, 200, 100); //Create an instance for image as stream Stream stream = File.Open("pptxtoimage.png", FileMode.Open); //Add picture to the shape collection pictures.AddPicture(stream, 100, 20, 200, 300); //Get the count of picture collection int count = pictures.Count; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create an instance for PowerPoint Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold picture collection Dim pictures As IPictures = slide.Pictures 'Create an instance for image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Add picture to the picture collection pictures.AddPicture(imageStream, 373, 83, 200, 100) 'Create an instance for image as stream Dim stream As Stream = File.Open("pptxtoimage.png", FileMode.Open) 'Add picture to the shape collection pictures.AddPicture(stream, 100, 20, 200, 300) 'Get the count of picture collection Dim count As Integer = pictures.Count 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Add a SVG image within the current shape Represent the Svg Picture stream Represent the raster Picture stream Represent the left side position Represent the top position Represent the width Represent the height retruns a IPicture instance Defines the Placeholder properties of the IPlaceholder. Represents the placeholder formatting options. Gets the type. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Title); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance for place holder format IPlaceholderFormat placeholder = (slide.Shapes[0] as IShape).PlaceholderFormat; //Get the type of place holder format, read only PlaceholderType type = placeholder.Type; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Title) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance for place holder format Dim placeholder As IPlaceholderFormat = TryCast(slide.Shapes(0), IShape).PlaceholderFormat 'Get the type of place holder format, read only Dim type As PlaceholderType = placeholder.Type 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the name of the place holder. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Title); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Create instance for place holder format IPlaceholderFormat placeholder = (slide.Shapes[0] as IShape).PlaceholderFormat; //Set the name of the place holder format placeholder.Name = "Place holder format"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Title) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Create instance for place holder format Dim placeholder As IPlaceholderFormat = TryCast(slide.Shapes(0), IShape).PlaceholderFormat 'Set the name of the place holder format placeholder.Name = "Place holder format" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the placeholder type. Returns placeholder type. Sets the orientation for the placeholder. And modifies the specified placeholder according to the orientation. Represents the orientation of the placeholder. Sets the placeholder type based on the orientation. Set the placeholder values. Represents the placeholder type. Represents the placeholder size. Represents the placeholder direction. Represents the index of the placeholder. Sets the placeholder type. Represents the placeholder type. Gets the type of the placeholder. Gets or sets the name of the specified placeholder. Represents a collection of instance in a slide. Adds the specified instance at the end of the shape collection. The instance to be added. Returns the zero-based index of the newly added shape within the shape collection. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.TitleAndContent); //Get the shape collection of slide IShapes shapes = slide.Shapes; //Create instance for SlideItem ISlideItem slideItem = shapes[0]; //Set the description for slide item slideItem.Description = "This is a SlideItem"; //Set the title slideItem.Title = "SlideItem"; //Add the slide item shapes.Add(slideItem); //Save the presentation presentation.Save("Cells.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.TitleAndContent) 'Get the shape collection of slide Dim shapes As IShapes = slide.Shapes 'Create instance for SlideItem Dim slideItem As ISlideItem = shapes(0) 'Set the description for slide item slideItem.Description = "This is a SlideItem" 'Set the title slideItem.Title = "SlideItem" 'Add the slide item shapes.Add(slideItem) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Inserts an element into the shape collection at the specified index. The zero-based index at which item should be inserted. The slide item to insert in the collection. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for shapes collection IShapes shapes = slide.Shapes; //Add text box to slide IShape textBox = shapes.AddTextBox(100, 30, 100, 200); //Add a paragraph with text content. IParagraph paragraph = textBox.TextBody.AddParagraph("This is a Text Box"); //Insert shape at specific index shapes.Insert(1, textBox); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for shapes collection Dim shapes As IShapes = slide.Shapes 'Add text box to slide Dim textBox As IShape = shapes.AddTextBox(100, 30, 100, 200) 'Add a paragraph with text content. Dim paragraph As IParagraph = textBox.TextBody.AddParagraph("This is a Text Box") 'Insert shape at specific index shapes.Insert(1, textBox) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the element at the specified index of the shape collection. The zero-based index of the shape to be removed. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for shapes collection IShapes shapes = slide.Shapes; //Add text box to slide IShape textBox = shapes.AddTextBox(100, 30, 100, 200); //Add a paragraph with text content. IParagraph paragraph = textBox.TextBody.AddParagraph("This is a Text Box"); //Remove shape at specific index shapes.RemoveAt(0); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for shapes collection Dim shapes As IShapes = slide.Shapes 'Add text box to slide Dim textBox As IShape = shapes.AddTextBox(100, 30, 100, 200) 'Add a paragraph with text content. Dim paragraph As IParagraph = textBox.TextBody.AddParagraph("This is a Text Box") 'Remove shape at specific index shapes.RemoveAt(0) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the first occurrence of a specified slide from the shape collection. The shape to be removed from the collection. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for shapes collection IShapes shapes = slide.Shapes; //Add text box to slide IShape textBox = shapes.AddTextBox(100, 30, 100, 200); //Add a paragraph with text content. IParagraph paragraph = textBox.TextBody.AddParagraph("This is a Text Box"); //Remove specific shape from collection shapes.Remove(textBox); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for shapes collection Dim shapes As IShapes = slide.Shapes 'Add text box to slide Dim textBox As IShape = shapes.AddTextBox(100, 30, 100, 200) 'Add a paragraph with text content. Dim paragraph As IParagraph = textBox.TextBody.AddParagraph("This is a Text Box") 'Remove specific shape from collection shapes.Remove(textBox) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Returns the zero-based index of the first occurrence of the specified within the shape collection. The instance to locate. Returns the zero-based index of the first occurrence of specified slide item within the shape collection, if found; otherwise, –1. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for shapes collection IShapes shapes = slide.Shapes; //Add text box to slide IShape textBox = shapes.AddTextBox(100, 30, 100, 200); //Add a paragraph with text content. IParagraph paragraph = textBox.TextBody.AddParagraph("This is a Text Box"); //Get the index of specific shape int index = shapes.IndexOf(textBox); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for shapes collection Dim shapes As IShapes = slide.Shapes 'Add text box to slide Dim textBox As IShape = shapes.AddTextBox(100, 30, 100, 200) 'Add a paragraph with text content. Dim paragraph As IParagraph = textBox.TextBody.AddParagraph("This is a Text Box") 'Get the index of specific shape Dim index As Integer = shapes.IndexOf(textBox) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes all the elements from shape collection. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for shapes collection IShapes shapes = slide.Shapes; //Add text box to slide IShape textBox = shapes.AddTextBox(100, 30, 100, 200); //Add a paragraph with text content. IParagraph paragraph = textBox.TextBody.AddParagraph("This is a Text Box"); //Clear the shapes shapes.Clear(); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for shapes collection Dim shapes As IShapes = slide.Shapes 'Add text box to slide Dim textBox As IShape = shapes.AddTextBox(100, 30, 100, 200) 'Add a paragraph with text content. Dim paragraph As IParagraph = textBox.TextBody.AddParagraph("This is a Text Box") 'Clear the shapes shapes.Clear() 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Adds a new chart to the shape collection. Represents the left position, in points. The Left value ranges from -169056 to 169056. Represents the top position, in points. The Top value ranges from -169056 to 169056. Represents the width, in points. The Width value ranges from 0 to 169056. Represents the height, in points. The Height value ranges from 0 to 169056. Returns an instance this method creates. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for shapes collection IShapes shapes = slide.Shapes; //Add chart to slide IPresentationChart chart =shapes.AddChart(400, 300, 100, 100); //Set the fore color of the chart area. chart.ChartArea.Fill.ForeColor = Color.AliceBlue; //Set the chart title chart.ChartTitle = "Chart"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for shapes collection Dim shapes As IShapes = slide.Shapes 'Add chart to slide Dim chart As IPresentationChart = shapes.AddChart(400, 300, 100, 100) 'Set the fore color of the chart area. chart.ChartArea.Fill.ForeColor = Color.AliceBlue 'Set the chart title chart.ChartTitle = "Chart" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Creates a chart for the data in specified excel document and adds the chart to the shape collection. Excel document stream having the data for chart[Only the "*.xlsx" format is supported]. Worksheet number of the excel document. Data range in the worksheet for the chart to be created. Position and size of the chart, in points. Returns an instance this method creates. //Creates a Presentation instance IPresentation pptxDoc = Presentation.Create(); //Adds a blank slide to the Presentation ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Gets the excel file as stream FileStream excelStream = new FileStream("Book1.xlsx", FileMode.Open); //Adds a chart to the slide with a data range from excel worksheet – excel workbook, worksheet number, Data range, position, and size. IPresentationChart chart = slide.Charts.AddChart(excelStream, 1, "A1:D4", new RectangleF(100, 10, 700, 500)); //Save the presentation pptxDoc.Save("Output.pptx"); //Closes the Presentation pptxDoc.Close(); 'Creates a Presentation instance Dim pptxDoc As IPresentation = Presentation.Create() 'Adds a blank slide to the Presentation Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Gets the excel file as stream Dim excelStream As New MemoryStream(File.ReadAllBytes("Book1.xlsx")) 'Adds a chart to the slide with a data range from excel worksheet – excel workbook, worksheet number, Data range, position, and size. Dim chart As IPresentationChart = slide.Charts.AddChart(excelStream, 1, "A1:D4", New RectangleF(100, 10, 700, 500)) 'Saves the Presentation pptxDoc.Save("output.pptx") 'Closes the Presentation pptxDoc.Close() Creates a chart from the specified enumerable and adds the chart to the shape collection. Specifies the object with desired data Represents the left position, in points. The Left value ranges from -169056 to 169056. Represents the top position, in points. The Top value ranges from -169056 to 169056. Represents the width, in points. The Width value ranges from 0 to 169056. Represents the height, in points. The Height value ranges from 0 to 169056. Returns an instance this method creates. Represents the left position, in points. The Left value ranges from -169056 to 169056. Represents the top position, in points. The Top value ranges from -169056 to 169056. Represents the width, in points. The Width value ranges from 0 to 169056. Represents the height, in points. The Height value ranges from 0 to 169056. Returns an instance this method creates. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for shapes collection IShapes shapes = slide.Shapes; //Get the image from file path Image image = Image.FromFile("Image.gif"); // Add the image to the slide by specifying position and size shapes.AddPicture(new MemoryStream(image.ImageData), 300, 120, 70, 40); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for shapes collection Dim shapes As IShapes = slide.Shapes 'Get the image from file path Dim image__2 As Image = Image.FromFile("Image.gif") ' Add the image to the slide by specifying position and size shapes.AddPicture(New MemoryStream(image__2.ImageData), 300, 120, 70, 40) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Creates a picture from the specified svg, its fallback image stream and adds the picture to the shape collection. The instance of SVG image. The instance of fallback image. Represents the left position, in points. The Left value ranges from -169056 to 169056. Represents the top position, in points. The Top value ranges from -169056 to 169056. Represents the width, in points. The Width value ranges from 0 to 169056. Represents the height, in points. The Height value ranges from 0 to 169056. Returns an instance. //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Create instance for shapes collection IShapes shapes = slide.Shapes; //Create an instance for fallback image as stream Stream imageStream = File.Open("Image.gif", FileMode.Open); //Create an instance for vector image as stream Stream svgStream = File.Open("Image.svg", FileMode.Open); // Add the image to the slide by specifying position and size shapes.AddPicture(svgStream, imageStream, 300, 120, 70, 40); //Save the presentation presDoc.Save("Sample.pptx"); //Close the presentation presDoc.Close(); 'Create a new presentation. Dim presDoc As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) 'Create instance for shapes collection Dim shapes As IShapes = slide.Shapes 'Create an instance for fallback image as stream Dim imageStream As Stream = File.Open("Image.gif", FileMode.Open) 'Create an instance for vector image as stream Dim svgStream As Stream = File.Open("Image.svg", FileMode.Open) 'Add the image to the slide by specifying position and size shapes.AddPicture(svgStream, imageStream, 300, 120, 70, 40) 'Save the presentation presDoc.Save("Sample.pptx") 'Close the presentation presDoc.Close() Creates a shape for the specified and adds the shape to the shape collection. Determines the auto shape type. Represents the left position, in points. The Left value ranges from -169056 to 169056. Represents the top position, in points. The Top value ranges from -169056 to 169056. Represents the width, in points. The Width value ranges from 0 to 169056. Represents the height, in points. The Height value ranges from 0 to 169056. Returns an instance this method creates. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for shapes collection IShapes shapes = slide.Shapes; //Add auto shape - rectangle to slide IShape shape = shapes.AddShape(AutoShapeType.Rectangle,300,200,150,200); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for shapes collection Dim shapes As IShapes = slide.Shapes 'Add auto shape - rectangle to slide Dim shape As IShape = shapes.AddShape(AutoShapeType.Rectangle, 300, 200, 150, 200) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Adds a to the shape collection of a Slide. Determines the connector type Represents the begin X of connector. The begin X value ranges from -169055 to 169056. Represents the begin Y of connector. The begin Y value ranges from -169055 to 169056. Represents the end X of connector. The end X value ranges from -169055 to 169056. Represents the end Y of connector. The end Y value ranges from -169055 to 169056. Returns an instance this method creates. // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add a Rectangle shape on the slide IShape rectangle = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 200, 250, 250); // Add a Oval shape on the slide IShape oval = slide.Shapes.AddShape(AutoShapeType.Rectangle, 600, 100, 250, 250); // Add connector on the slide and connect the end points of connector IConnector connector = slide.Shapes.AddConnector(ConnectorType.Straight, rectangle, 0, oval, 3); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add Rectangle shape on the slide Dim rectangle As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 200, 200, 250, 250) ' Add Oval shae on the slide Dim oval As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 600, 100, 250, 250) ' Add connector on the slide and connect the end points of connector Dim connector As IConnector = slide.Shapes.AddConnector(ConnectorType.Straight, rectangle, 0, oval, 3) ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close Adds a to the shape collection of a Slide. Determines the connector type Represents the begin X of connector. The begin X value ranges from -169055 to 169056. Represents the begin Y of connector. The begin Y value ranges from -169055 to 169056. Represents the end X of connector. The end X value ranges from -169055 to 169056. Represents the end Y of connector. The end Y value ranges from -169055 to 169056. Returns an instance this method creates. // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add connector on the slide IConnector connector = slide.Shapes.AddConnector(ConnectorType.Straight, 150, 150, 300, 300); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add connector on the slide Dim connector As IConnector = slide.Shapes.AddConnector(ConnectorType.Straight, 150, 150, 300, 300) ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close Adds a to the shape collection of a Slide. Represents the left position, in points. The left value ranges from -169056 to 169056. Represents the top position, in points. The top value ranges from -169056 to 169056. Represents the width, in points. The width value ranges from 0 to 169056. Represents the height, in points. The height value ranges from 0 to 169056. The SmartArt type to add. Returns an instance that represents the new SmartArt diagram. // 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); //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, 100, 50, 640, 426) 'Save the Presentation pptxDoc.Save("Sample.pptx") 'Close the Presentation pptxDoc.Close() Creates an instance with the specified image, program id, and data, then adds it to the collection. Image used to be displayed The ProgID of the object to be embedded File stream from which the object is to be created //Create new instance of PowerPoint presentation. IPresentation pptxDoc = Presentation.Create(); //Add slide with blank layout to presentation ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Get the excel file as stream Stream excelStream = File.Open("OleTemplate.xlsx", FileMode.Open); //Image to be displayed, This can be any image Stream imageStream = File.Open("OlePicture.png", FileMode.Open); //Add an OLE object to the slide IOleObject oleObject = slide.Shapes.AddOleObject(imageStream, "Excel.Sheet.12", excelStream); //Set size and position of the OLE object oleObject.Left = 10; oleObject.Top = 10; oleObject.Width = 400; oleObject.Height = 300; //Save the presentation pptxDoc.Save("Sample.pptx"); //Close the presentation pptxDoc.Close(); 'Create new instance of PowerPoint presentation. Dim pptxDoc As IPresentation = Presentation.Create() 'Add slide with blank layout to presentation Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Get the excel file as stream Dim excelStream As Stream = File.Open("OleTemplate.xlsx", FileMode.Open) 'Image to be displayed, This can be any image Dim imageStream As Stream = File.Open("OlePicture.png", FileMode.Open) 'Add an OLE object to the slide Dim oleObject As IOleObject = slide.Shapes.AddOleObject(imageStream, "Excel.Sheet.12", excelStream) 'Set size and position of the OLE object oleObject.Left = 10 oleObject.Top = 10 oleObject.Width = 400 oleObject.Height = 300 'Save the presentation pptxDoc.Save("Sample.pptx") 'Close the presentation pptxDoc.Close() Creates an instance with the specified image, program id, and data, then adds it to the collection. Image used to be displayed The ProgID of the object to be embedded String path from which the object is to be created //Create new instance of PowerPoint presentation. IPresentation pptxDoc = Presentation.Create(); //Add slide with blank layout to presentation ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Image to be displayed, This can be any image Stream imageStream = File.Open("OlePicture.png", FileMode.Open); //Add an OLE object to the slide IOleObject oleObject = slide.Shapes.AddOleObject(imageStream, "Excel.Sheet.12", "OleTemplate.xlsx"); //Set size and position of the OLE object oleObject.Left = 10; oleObject.Top = 10; oleObject.Width = 400; oleObject.Height = 300; //Save the presentation pptxDoc.Save("Sample.pptx"); //Close the presentation pptxDoc.Close(); 'Create new instance of PowerPoint presentation. Dim pptxDoc As IPresentation = Presentation.Create() 'Add slide with blank layout to presentation Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Image to be displayed, This can be any image Dim imageStream As Stream = File.Open("OlePicture.png", FileMode.Open) 'Add an OLE object to the slide Dim oleObject As IOleObject = slide.Shapes.AddOleObject(imageStream, "Excel.Sheet.12", "OleTemplate.xlsx") 'Set size and position of the OLE object oleObject.Left = 10 oleObject.Top = 10 oleObject.Width = 400 oleObject.Height = 300 'Save the presentation pptxDoc.Save("Sample.pptx") 'Close the presentation pptxDoc.Close() Creates a group shape and adds the group shape to the shape collection. Represents the left position, in points. The Left value ranges from -169056 to 169056. Represents the top position, in points. The Top value ranges from -169056 to 169056. Represents the width, in points. The Width value ranges from 0 to 169056. Represents the height, in points. The Height value ranges from 0 to 169056. Returns an instance this method creates. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for shapes collection IShapes shapes = slide.Shapes; //Add a group shape to the slide IGroupShape groupShape = shapes.AddGroupShape(12, 12, 200, 200); //Add auto shapes to group shape groupShape.Shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120); groupShape.Shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for shapes collection Dim shapes As IShapes = slide.Shapes 'Add a group shape to the slide Dim groupShape As IGroupShape = shapes.AddGroupShape(12, 12, 200, 200) 'Add auto shapes to group shape groupShape.Shapes.AddShape(AutoShapeType.Oval, 47, 50, 60, 120) groupShape.Shapes.AddShape(AutoShapeType.Rectangle, 12, 12, 40, 30) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Adds a new table to the shape collection with the specified number of rows and columns. The valid range is 1 to 75. Represents the number of rows. The valid range is 1 to 75. Represents the number of columns. The valid range is 1 to 75 Represents the left position, in points. The Left value ranges from -169056 to 169056. Represents the top position, in points. The Top value ranges from -169056 to 169056. Represents the width, in points. The Width value ranges from 0 to 169056. Represents the height, in points. The Height value ranges from 0 to 169056. Returns an instance this method creates. //Create a new presentation IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for shapes collection IShapes shapes = slide.Shapes; //Add table to the shape collection ITable table = shapes.AddTable(2, 2, 100, 120, 300, 200); //Retrieve each cell and fill text content to the cell. ICell cell = table[0, 0]; cell.TextBody.AddParagraph("First Row and First Column"); cell = table[0, 1]; cell.TextBody.AddParagraph("First Row and Second Column"); cell = table[1, 0]; cell.TextBody.AddParagraph("Second Row and First Column"); cell = table[1, 1]; cell.TextBody.AddParagraph("Second Row and Second Column"); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for shapes collection Dim shapes As IShapes = slide.Shapes 'Add table to the shape collection Dim table As ITable = shapes.AddTable(2, 2, 100, 120, 300, 200) 'Retrieve each cell and fill text content to the cell. Dim cell As ICell = table(0, 0) cell.TextBody.AddParagraph("First Row and First Column") cell = table(0, 1) cell.TextBody.AddParagraph("First Row and Second Column") cell = table(1, 0) cell.TextBody.AddParagraph("Second Row and First Column") cell = table(1, 1) cell.TextBody.AddParagraph("Second Row and Second Column") 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Adds a new text box to the shape collection. Represents the left position, in points. The Left value ranges from -169056 to 169056. Represents the top position, in points. The Top value ranges from -169056 to 169056. Represents the width, in points. The Width value ranges from 0 to 169056. Represents the height, in points. The Height value ranges from 0 to 169056. Returns an instance this method creates. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for shapes collection IShapes shapes = slide.Shapes; //Add text box to slide IShape textBox = shapes.AddTextBox(100, 30, 100, 200); //Add a paragraph with text content. IParagraph paragraph = textBox.TextBody.AddParagraph("This is a Text Box"); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for shapes collection Dim shapes As IShapes = slide.Shapes 'Add text box to slide Dim textBox As IShape = shapes.AddTextBox(100, 30, 100, 200) 'Add a paragraph with text content. Dim paragraph As IParagraph = textBox.TextBody.AddParagraph("This is a Text Box") 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the number of elements in the shape collection. Read-only. The count. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for shapes collection IShapes shapes = slide.Shapes; //Add auto shape - rectangle to slide IShape shape = shapes.AddShape(AutoShapeType.Rectangle,300,200,150,200); //Add chart to slide IPresentationChart chart =shapes.AddChart(500, 300, 100, 100); //Set the chart title chart.ChartTitle = "Chart"; //Get the count for shape collection int count = shapes.Count; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for shapes collection Dim shapes As IShapes = slide.Shapes 'Add auto shape - rectangle to slide Dim shape As IShape = shapes.AddShape(AutoShapeType.Rectangle, 300, 200, 150, 200) 'Add chart to slide Dim chart As IPresentationChart = shapes.AddChart(500, 300, 100, 100) 'Set the chart title chart.ChartTitle = "Chart" 'Get the count for shape collection Dim count As Integer = shapes.Count 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets a instance at the specified index from the shape collection. Read-only. Specifies the slide item index to locate. Returns an instance. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.TitleAndContent); //Get the shape collection of slide IShapes shapes = slide.Shapes; //Create instance for SlideItem ISlideItem slideItem = shapes[0]; //Set the description for slide item slideItem.Description = "This is a SlideItem"; //Set the title slideItem.Title = "SlideItem"; //Add the slide item shapes.Add(slideItem); //Save the presentation presentation.Save("Cells.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.TitleAndContent) 'Get the shape collection of slide Dim shapes As IShapes = slide.Shapes 'Create instance for SlideItem Dim slideItem As ISlideItem = shapes(0) 'Set the description for slide item slideItem.Description = "This is a SlideItem" 'Set the title slideItem.Title = "SlideItem" 'Add the slide item shapes.Add(slideItem) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Gets a PlaceholderTypes available in current shape collection. Returns PlaceholderTypes available in current shape collection. Compares the content and properties of the current Shapes collection with given Shapes collection. The Shapes collection to compare with the current instance. True if the content and properties of the Shapes collections are equal; otherwise, false. Adds a chart to the slide. The left position of the chart from left edge of the slide, in points. The top position of the chart from top edge of the slide, in points Width of the chart, in points Height of the chart, in points Returns chart object. Adds a chart to the slide. Excel stream that has data for chart[Excel stream should be "*.xlsx" format] Worksheet number in the excel document that contains data for a chart. Data range in the worksheet from which the chart to be created. Position of the chart in the slide. Method to identify the Excel file format Excel file stream Adds a chart to the slide. Chart data in 2-dimensional array format. The left position of the chart from left edge of the shape, in points The top position of the chart from top edge of the shape, in points The width of the chart, in points The height of the chart, in points. Returns chart object. Adds a chart to the slide. IEnumerable object with desired data The left position of the chart from left edge of the shape, in points The top position of the chart from top edge of the shape, in points The width of the chart, in points The height of the chart, in points. Returns chart object. Adds a to the shape collection of a Slide. Represents the left position, in points. The left value ranges from -169056 to 169056. Represents the top position, in points. The top value ranges from -169056 to 169056. Represents the width, in points. The width value ranges from 0 to 169056. Represents the height, in points. The height value ranges from 0 to 169056. The SmartArt type to add. Returns an instance that represents the new SmartArt diagram. Add a SVG image within the current shape Represent the Svg Picture stream Represent the raster Picture stream Represent the left side position Represent the top position Represent the width Represent the height retruns a IPicture instance Adds the placeholder to the current shape collection Determines the type of placeholder Left position of the placeholder. Top position of the placeholder. Width of the placeholder. Height of the placeholder. Returns the IPlaceholderFormat object. Finds all the occurance of the given word from shapes using Regex pattern Array of text selection Find the first occurance of the given word using Regex pattern Text selection Adds the OleObject to the current shape collection Determines the OleObject Determines the pictureStream of the OleObject Determines the type of the OleObject . Determines the stream of OleObject Determines the path of the OleObject Finds all the given text from the SmartArt shape using Regex Pattern. Represent main smart art nodes need to find. Represents regex pattern used to find. The collection that contains all the entries of the found text in the document. Find the first occurrence of the given word using Regex pattern. Represent main smart art nodes need to find. Represents regex pattern used to find. The that contains the found text in the document. Gets or sets height value. Gets or sets left position value. Gets or sets top position value. Gets or sets width value. Represents the solid type fill formatting. Gets or sets the color for the solid fill. The color of the solid fill. Uses 'ColorObject' type to apply the color. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide background IBackground background = slide.Background; //Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid; //Create instance for solid Fill ISolidFill solidFill = background.Fill.SolidFill; //Set the color for solid fill object solidFill.Color = ColorObject.FromArgb(120, 234, 67, 89); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide background Dim background As IBackground = slide.Background 'Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid 'Create instance for solid Fill Dim solidFill As ISolidFill = background.Fill.SolidFill 'Set the color for solid fill object solidFill.Color = ColorObject.FromArgb(120, 234, 67, 89) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the transparency in percentage. Ranges from 1 to 100. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide background IBackground background = slide.Background; //Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid; //Create instance for solid Fill ISolidFill solidFill = background.Fill.SolidFill; //Set the color for solid fill object solidFill.Color = ColorObject.FromArgb(120, 234, 67, 89); //Set the color transparency solidFill.Transparency = 30; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide background Dim background As IBackground = slide.Background 'Set the fill type for background as Solid fill background.Fill.FillType = FillType.Solid 'Create instance for solid Fill Dim solidFill As ISolidFill = background.Fill.SolidFill 'Set the color for solid fill object solidFill.Color = ColorObject.FromArgb(120, 234, 67, 89) 'Set the color transparency solidFill.Transparency = 30 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Compares the current Solid fill object with given Solid fill object. The Solid fill object to compare with the current instance. True if the Solid fill objects are equal; otherwise, false. Represents the picture or texture type in fill format. Represents the picture or texture type in fill format. Gets or sets the transparency of the image. Gets or sets the image as byte. Gets or sets the value of type enumeration. Compares the current TextureFill object with given TextureFill object. The TextureFill object to compare with the current instance. True if the TextureFill objects are equal; otherwise, false. Gets or sets top position of the background image. OffsetTop values ranges from - 2147483.647 to 2147483.647, in Percentage. Gets or sets left position of the background image. OffsetLeft values ranges from - 2147483.647 to 2147483.647, in Percentage. Gets or sets height of the background image. OffsetBottom values ranges from - 2147483.647 to 2147483.647, in Percentage. Gets or sets width of the background image. OffsetRight values ranges from - 2147483.647 to 2147483.647, in Percentage. Gets or sets OffsetX of the background image. The OffsetX value ranges from - 2147483648 to 2147483647, in Points. Gets or sets OffsetY of the background image. The OffsetY value ranges from - 2147483648 to 2147483647, in Points. Gets or sets ScaleX of the background image. The ScaleX value ranges from - 2147483.648 to 2147483.647, in Percentage. Gets or sets ScaleX of the background image. The ScaleX value ranges from - 2147483.648 to 2147483.647, in Percentage. Gets or sets the transparency of the image. Gets or sets the image as byte. Gets or sets the value of type enumeration. Represents a header, footer, date and time, slide number on a slide or master. All the IHeaderFooter objects for a slide or master are contained in a IHeadersFooters object. Represents a header, footer, date and time, slide number on a slide or master. All the IHeaderFooter objects for a slide or master are contained in a IHeadersFooters object. Gets or sets the visibility of IHeaderFooter object for the specified slide. Visibility of HeaderFooter is only applied, when specified HeaderFooter is exist in parent slide. //Creates an instance of Presentation IPresentation pptxDoc = Presentation.Create(); //Adds a blank slide. ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Gets the footer of the slide. IHeaderFooter footer = slide.HeadersFooters.Footer; //Sets the visibility of Footer content in the slide footer.Visible = true; //Sets the text to be added to the Footer footer.Text = "Footer content"; //Add an auto shape to slide slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 250, 250); //Saves the Presentation to the file system pptxDoc.Save("Sample.pptx"); //Closes the Presentation pptxDoc.Close(); 'Creates an instance of Presentation Dim pptxDoc As IPresentation = Presentation.Create() 'Adds a blank slide Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Gets the footer of the slide. Dim footer As IHeaderFooter = slide.HeadersFooters.Footer 'Sets the visibility of Footer content in the slide footer.Visible = True 'Sets the text to be added to the Footer footer.Text = "Footer content" 'Add an auto shape to slide slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 250, 250) 'Saves the Presentation to the file system pptxDoc.Save("Sample.pptx") 'Closes the Presentation pptxDoc.Close() Gets or sets a text from IHeaderFooter object for the specified slide. If sets a value to Text property of DateAndTime or SlideNumber, it will be displayed as fixed text. //Creates an instance of Presentation IPresentation pptxDoc = Presentation.Create(); //Adds a blank slide. ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Sets the visibility of Footer content in the slide slide.HeadersFooters.Footer.Visible = true; //Gets the footer of the slide. IHeaderFooter footer = slide.HeadersFooters.Footer; //Sets the text to be added to the Footer footer.Text = "Footer content"; //Add an auto shape to slide slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 250, 250); //Saves the Presentation to the file system pptxDoc.Save("Sample.pptx"); //Closes the Presentation pptxDoc.Close(); 'Creates an instance of Presentation Dim pptxDoc As IPresentation = Presentation.Create() 'Adds a blank slide Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Sets the visibility of Footer content in the slide slide.HeadersFooters.Footer.Visible = True 'Gets the footer of the slide. Dim footer As IHeaderFooter = slide.HeadersFooters.Footer 'Sets the text to be added to the Footer footer.Text = "Footer content" 'Add an auto shape to slide slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 250, 250) 'Saves the Presentation to the file system pptxDoc.Save("Sample.pptx") 'Closes the Presentation pptxDoc.Close() Gets or sets a date and time format of Date placeholder for the specified slide. Used to represent DateTimeFormat of a Date placeholder and will not valid for Header, Footer and SlideNumber placeholders. //Creates an instance of Presentation IPresentation pptxDoc = Presentation.Create(); //Adds a blank slide. ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Sets the visibility of Date and Time in the slide slide.HeadersFooters.DateAndTime.Visible = true; //Gets the DateTime header footer of the slide. IHeaderFooter headerFooter = slide.HeadersFooters.DateAndTime; //Sets the format of the Date and Time to the Footer headerFooter.Format = DateTimeFormatType.DateTimehmmAMPM; //Add an auto shape to slide slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 250, 250); //Saves the Presentation to the file system pptxDoc.Save("Sample.pptx"); //Closes the Presentation pptxDoc.Close(); 'Creates an instance of Presentation Dim pptxDoc As IPresentation = Presentation.Create() 'Adds a blank slide Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Sets the visibility of Date and Time in the slide slide.HeadersFooters.DateAndTime.Visible = True 'Gets the DateTime header footer of the slide. Dim headerFooter As IHeaderFooter = slide.HeadersFooters.DateAndTime 'Sets the format of the Date and Time to the Footer headerFooter.Format = DateTimeFormatType.DateTimehmmAMPM 'Add an auto shape to slide slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 250, 250) 'Saves the Presentation to the file system pptxDoc.Save("Sample.pptx") 'Closes the Presentation pptxDoc.Close() Gets a HeaderFooter shape instance of provided HeaderFooterType. Specify a headerFooter type Returns a HeaderFooter shape instance for the specified HeaderFooterType Add the specified header footer shape into slide. Represent the HeaderFooterType to add. Applies a parent shape text field properties into newly created shape. Represent a newly created header footer shape. Represent a parent shape. Applies a common place holder properties to newly created headerFooterShape. Represent the headerFooterShape to apply the properties. Gets a constant index value for the header footer shape. Returns a header footer constant index. Remove the specified header footer shape from a slide. Represent the HeaderFooterType to remove. Clone a HeaderFooter class instances Set a new parent slide. Gets or sets the visibility of IHeaderFooter object for the specified slide. Visibility of HeaderFooter is only applied, when specified HeaderFooter is exist in parent slide. Gets or sets a text from IHeaderFooter object for the specified slide. If sets a value to Text property of DateAndTime or SlideNumber, it will be displayed as fixed text. Gets or sets a date and time format of Date placeholder for the specified slide. Used to represent DateTimeFormat of a Date placeholder and will not valid for Header, Footer and SlideNumber placeholders. Gets a owner slide of HeaderFooter Gets a type of HeaderFooter Represent a collection of IHeaderFooter object. It contains all the IHeaderFooter objects on the specified slide, notes slide, or master. Contains all the IHeaderFooter objects on the specified slide, notes slide, or master. Gets an IHeaderFooter object that represents a DateAndTime item that appears in the lower-left corner of a slide or in the upper-right corner of a notes slide. //Creates an instance of Presentation IPresentation pptxDoc = Presentation.Create(); //Adds a blank slide. ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Gets the date time header footer of the slide. IHeaderFooter dateTimeFooter = slide.HeadersFooters.DateAndTime; //Sets the visibility of Date and Time in the slide dateTimeFooter.Visible = true; //Sets the format of the Date and Time to the Footer dateTimeFooter.Format = DateTimeFormatType.DateTimehmmssAMPM; //Add an auto shape to slide slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 250, 250); //Saves the Presentation to the file system pptxDoc.Save("Sample.pptx"); //Closes the Presentation pptxDoc.Close(); 'Creates an instance of Presentation Dim pptxDoc As IPresentation = Presentation.Create() 'Adds a blank slide Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Gets the date time header footer of the slide. Dim dateTimeFooter As IHeaderFooter = slide.HeadersFooters.DateAndTime 'Sets the visibility of Date and Time in the slide dateTimeFooter.Visible = True 'Sets the format of the Date and Time to the Footer dateTimeFooter.Format = DateTimeFormatType.DateTimehmmssAMPM 'Add an auto shape to slide slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 250, 250) 'Saves the Presentation to the file system pptxDoc.Save("Sample.pptx") 'Closes the Presentation pptxDoc.Close() Gets an IHeaderFooter object that represents the SlideNumber in the lower-right corner of a slide, or the page number in the lower-right corner of a notes slide. //Creates an instance of Presentation IPresentation pptxDoc = Presentation.Create(); //Adds a blank slide. ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Sets the visibility of slide number in the slide slide.HeadersFooters.SlideNumber.Visible = true; //Add an auto shape to slide slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 250, 250); //Saves the Presentation to the file system pptxDoc.Save("Sample.pptx"); //Closes the Presentation pptxDoc.Close(); 'Creates an instance of Presentation Dim pptxDoc As IPresentation = Presentation.Create() 'Adds a blank slide Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Sets the visibility of slide number in the slide slide.HeadersFooters.SlideNumber.Visible = True 'Add an auto shape to slide slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 250, 250) 'Saves the Presentation to the file system pptxDoc.Save("Sample.pptx") 'Closes the Presentation pptxDoc.Close() Gets an IHeaderFooter object that represents a Header that appears at the top-left corner of a notes slide. Header is valid only for Notes slide. //Creates an instance of Presentation IPresentation pptxDoc = Presentation.Create(); //Adds a blank slide. ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Adds new notes slide in the specified slide. INotesSlide notesSlide = slide.AddNotesSlide(); //Adds text content into the Notes Slide. notesSlide.NotesTextBody.AddParagraph("Notes content"); //Gets the header of the notes slide. IHeaderFooter header = notesSlide.HeadersFooters.Header; //Sets the visibility of header content in the notes slide header.Visible = true; //Sets the text to be added to the header header.Text = "Header content is added"; //Add an auto shape to slide slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 250, 250); //Saves the Presentation. pptxDoc.Save("Sample.pptx"); //Closes the Presentation pptxDoc.Close(); 'Creates an instance of Presentation Dim pptxDoc As IPresentation = Presentation.Create() 'Adds a blank slide. Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Adds new notes slide in the specified slide. Dim notesSlide As INotesSlide = slide.AddNotesSlide() 'Adds text content into the Notes Slide. notesSlide.NotesTextBody.AddParagraph("Notes content") 'Gets the header of the notes slide. Dim header As IHeaderFooter = notesSlide.HeadersFooters.Header 'Sets the visibility of header content in the notes slide header.Visible = True 'Sets the text to be added to the header header.Text = "Header content is added" 'Add an auto shape to slide slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 250, 250) 'Saves the Presentation. pptxDoc.Save("Sample.pptx") 'Closes the Presentation pptxDoc.Close() Gets an IHeaderFooter object that represents a Footer that appears at the bottom of a slide or in the lower-left corner of a notes slide. //Creates an instance of Presentation IPresentation pptxDoc = Presentation.Create(); //Adds a blank slide. ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Gets the footer of the slide. IHeaderFooter footer = slide.HeadersFooters.Footer; //Sets the visibility of Footer content in the slide footer.Visible = true; //Sets the text to be added to the Footer footer.Text = "Footer content"; //Add an auto shape to slide slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 250, 250); //Saves the Presentation to the file system pptxDoc.Save("Sample.pptx"); //Closes the Presentation pptxDoc.Close(); 'Creates an instance of Presentation Dim pptxDoc As IPresentation = Presentation.Create() 'Adds a blank slide Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Gets the footer of the slide. Dim footer As IHeaderFooter = slide.HeadersFooters.Footer 'Sets the visibility of Footer content in the slide footer.Visible = True 'Sets the text to be added to the Footer footer.Text = "Footer content" 'Add an auto shape to slide slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 250, 250) 'Saves the Presentation to the file system pptxDoc.Save("Sample.pptx") 'Closes the Presentation pptxDoc.Close() Set a parent base slide Represent a new parent slide. Dispose the HeaderFooter class instances. Returns an IHeaderFooter object that represents a Header, which appears at the top-left corner of a notes slide. Read-only. Header is only valid for the notes slide. Returns an IHeaderFooter object that represents a Footer, which appears at bottom of a slide or in the lower-left corner of a notes slide. Read-only. Returns an IHeaderFooter object that represents a DateAndTime item, which appears in the lower-left corner of a slide or in the upper-right corner of a notes slide. Read-only. Returns an IHeaderFooter object that represents the SlideNumber in the lower-right corner of a slide, or in the lower-right corner of a notes slide. Read-only. Gets a owner slide of HeadersFooters Specifies the date and time format of a Date placeholder. Specifies the date time format is None Specifies the date time format is Mdyy Specifies the date time format is ddddMMMMddyyyy Specifies the date time format is dMMMMyyyy Specifies the date time format is MMMMdyyyy Specifies the date time format is dMMMyy Specifies the date time format is MMMMyy Specifies the date time format is MMMyy Specifies the date time format is MMddyyhmmAMPM Specifies the date time format is MMddyyhmmssAMPM Specifies the date time format is Hmm Specifies the date time format is Hmmss Specifies the date time format is hmmAMPM Specifies the date time format is hmmssAMPM Specifies the HeaderFooter instance type. Specifies the paste options while copy and paste the slide in presentation. Specifies to use the destination theme for the slide Specifies to use the source theme of the slide Specifies the type of slide item Specifies the SlideItemType is unknown Specifies the SlideItemType is picture Specifies the SlideItemType is table Specifies the SlideItemType is autoshape Specifies the SlideItemType is GroupShape Specifies the SlideItemType is connection shape Specifies the SlideItemType is chart Specifies the SlideItemType is placeholder Specifies the SlideItemType is smart art. Specifies the slide item is OLE Object. Represents the gradient fill types in presentation. This element specifies a linear gradient. Gradient follows a radial path. Gradient follows a rectangular path. Gradient follows the shape. Specifies the type of AutoMargin. Specifies the AutoMarginType is not defined Specifies the AutoMarginType is text shape automatic fit Specifies the AutoMarginType is normal automatic fit Specifies the AutoMarginType is no automatic fit Specifies the PowerPoint presentation format. Specifies the PowerPoint presentation file format. Specifies the macro-enabled PowerPoint presentation file format. Specifies the PowerPoint template file format. Specifies the macro-enabled PowerPoint template file format. Specifies the types of lists that can be applied to the paragraph. Specifies the ListType is not defined Specifies the ListType is none Specifies the ListType is numbered Specifies the ListType is picture Specifies the ListType is bulleted Specifies the hyper link color types. Specifies hyperlink uses the hyperlink text color from the document’s theme. Specifies that hyperlink uses the text color Specifies the hyper link types in presentation. Specifies the HyperLinkType is unknown Specifies the HyperLinkType isThe no action Specifies the HyperLinkType is hyperlink Specifies the HyperLinkType is jump first slide Specifies the HyperLinkType is jump previous slide Specifies the HyperLinkType is jump next slide Specifies the HyperLinkType is jump last slide Specifies the HyperLinkType is jump end show Specifies the HyperLinkType is jump last viewed slide Specifies the HyperLinkType is jump specific slide Specifies the HyperLinkType is open file Specifies the HyperLinkType is start program Specifies the NumberedListStyle is arabic abjad dash Specifies the NumberedListStyle is arabic alpha dash Specifies the NumberedListStyle is kanji korean period Specifies the NumberedListStyle is kanji korean plain Specifies the NumberedListStyle is kanji simp chin database period Specifies the NumberedListStyle is none Specifies the NumberedListStyle is simp chin period Specifies the NumberedListStyle is simp chin plain Specifies the NumberedListStyle is trad chin period Specifies the NumberedListStyle is trad chin plain Specifies the NumberedListStyle is alpha lc paren both Specifies the NumberedListStyle is alpha lc paren right Specifies the NumberedListStyle is alpha lc period Specifies the NumberedListStyle is alpha uc paren both Specifies the NumberedListStyle is alpha uc paren right Specifies the NumberedListStyle is alpha uc period Specifies the NumberedListStyle is arabic database period Specifies the NumberedListStyle is arabic database plain Specifies the NumberedListStyle is arabic paren both Specifies the NumberedListStyle is arabic paren right Specifies the NumberedListStyle is arabic period Specifies the NumberedListStyle is arabic plain Specifies the NumberedListStyle is circle number database plain Specifies the NumberedListStyle is circle number wd black plain Specifies the NumberedListStyle is circle number wd white plain Specifies the NumberedListStyle is hebrew alpha dash Specifies the NumberedListStyle is hindi alpha1 period Specifies the NumberedListStyle is hindi alpha period Specifies the NumberedListStyle is hindi number paren right Specifies the NumberedListStyle is hindi number period Specifies the NumberedListStyle is roman lc paren both Specifies the NumberedListStyle is roman lc paren right Specifies the NumberedListStyle is roman lc period Specifies the NumberedListStyle is roman uc paren both Specifies the NumberedListStyle is roman uc paren right Specifies the NumberedListStyle is roman uc period Specifies the NumberedListStyle is thai alpha paren both Specifies the NumberedListStyle is thai alpha paren right Specifies the NumberedListStyle is thai alpha period Specifies the NumberedListStyle is thai number paren both Specifies the NumberedListStyle is thai number paren right Specifies the NumberedListStyle is thai number period Specifies the style of NumberedList for paragraphs. Specifies the NumberedListStyle is alpha lc paren both Specifies the NumberedListStyle is alpha lc paren right Specifies the NumberedListStyle is alpha lc period Specifies the NumberedListStyle is alpha uc paren both Specifies the NumberedListStyle is alpha uc paren right Specifies the NumberedListStyle is alpha uc period Specifies the NumberedListStyle is arabic database period Specifies the NumberedListStyle is arabic database plain Specifies the NumberedListStyle is arabic paren both Specifies the NumberedListStyle is arabic paren right Specifies the NumberedListStyle is arabic period Specifies the NumberedListStyle is arabic plain Specifies the NumberedListStyle is circle number database plain Specifies the NumberedListStyle is circle number wd black plain Specifies the NumberedListStyle is circle number wd white plain Specifies the NumberedListStyle is hebrew alpha dash Specifies the NumberedListStyle is hindi alpha1 period Specifies the NumberedListStyle is hindi alpha period Specifies the NumberedListStyle is hindi number paren right Specifies the NumberedListStyle is hindi number period Specifies the NumberedListStyle is roman lc paren both Specifies the NumberedListStyle is roman lc paren right Specifies the NumberedListStyle is roman lc period Specifies the NumberedListStyle is roman uc paren both Specifies the NumberedListStyle is roman uc paren right Specifies the NumberedListStyle is roman uc period Specifies the NumberedListStyle is thai alpha paren both Specifies the NumberedListStyle is thai alpha paren right Specifies the NumberedListStyle is thai alpha period Specifies the NumberedListStyle is thai number paren both Specifies the NumberedListStyle is thai number paren right Specifies the NumberedListStyle is thai number period Specifies the type of placeholder. Specifies the placeholdertype is title. Specifies the placeholdertype is body. Specifies the placeholdertype is centertitle. Specifies the placeholdertype is subtitle. Specifies the placeholder type is vertical title. Specifies the placeholder type is vertical body. Specifies the placeholdertype is object. Specifies the placeholdertype is chart. Specifies the placeholdertype is bitmap. Specifies the placeholdertype is media clip. Specifies the placeholdertype is OrganizationChart. Specifies the placeholdertype is table. Specifies the placeholdertype is slidenumber. Specifies the placeholdertype is header. Specifies the placeholdertype is footer. Specifies the placeholdertype is dateandtime. Specifies the placeholder type is vertical object. Specifies the placeholdertype is picture. Specifies the placeholdertype is image. Specifies the layout type of the slide. Specifies the user-defined slide layout type. Specifies the SlideLayoutType is title Specifies the SlideLayoutType is section header Specifies the SlideLayoutType is two content Specifies the SlideLayoutType is comparison Specifies the SlideLayoutType is title only Specifies the SlideLayoutType is blank Specifies the SlideLayoutType is content with caption Specifies the SlideLayoutType is picture with caption Specifies the SlideLayoutType is title and vertical text Specifies the SlideLayoutType is vertical title and text Specifies the SlideLayoutType is title and content Specifies the orientation of the slide in presentation. Specifies the SlideOrientation is landscape Specifies the SlideOrientation is portrait Specifies the size type for the slide in presentation. Specifies the SlideSizeType is on screen Specifies the SlideSizeType is letter paper Specifies the SlideSizeType is a4 paper Specifies the SlideSizeType is slide35 mm Specifies the SlideSizeType is overhead Specifies the SlideSizeType is banner Specifies the SlideSizeType is custom Specifies the SlideSizeType is ledger Specifies the SlideSizeType is a3 paper Specifies the SlideSizeType is b4 iso paper Specifies the SlideSizeType is b5 iso paper Specifies the SlideSizeType is on screen16 x9 Specifies the SlideSizeType is on screen16 X10 Specifies the predefined styles of a table. Specifies the BuiltInTableStyle is custom Specifies the BuiltInTableStyle is none Specifies the BuiltInTableStyle is medium style2 accent1 Specifies the BuiltInTableStyle is medium style2 Specifies the BuiltInTableStyle is no style no grid Specifies the BuiltInTableStyle is themed style1 accent1 Specifies the BuiltInTableStyle is themed style1 accent2 Specifies the BuiltInTableStyle is themed style1 accent3 Specifies the BuiltInTableStyle is themed style1 accent4 Specifies the BuiltInTableStyle is themed style1 accent5 Specifies the BuiltInTableStyle is themed style1 accent6 Specifies the BuiltInTableStyle is no style table grid Specifies the BuiltInTableStyle is themed style2 accent1 Specifies the BuiltInTableStyle is themed style2 accent2 Specifies the BuiltInTableStyle is themed style2 accent3 Specifies the BuiltInTableStyle is themed style2 accent4 Specifies the BuiltInTableStyle is themed style2 accent5 Specifies the BuiltInTableStyle is themed style2 accent6 Specifies the BuiltInTableStyle is light style1 Specifies the BuiltInTableStyle is light style1 accent1 Specifies the BuiltInTableStyle is light style1 accent2 Specifies the BuiltInTableStyle is light style1 accent3 Specifies the BuiltInTableStyle is light style1 accent4 Specifies the BuiltInTableStyle is light style2 accent5 Specifies the BuiltInTableStyle is light style1 accent6 Specifies the BuiltInTableStyle is light style2 Specifies the BuiltInTableStyle is light style2 accent1 Specifies the BuiltInTableStyle is light style2 accent2 Specifies the BuiltInTableStyle is light style2 accent3 Specifies the BuiltInTableStyle is medium style2 accent3 Specifies the BuiltInTableStyle is medium style2 accent4 Specifies the BuiltInTableStyle is medium style2 accent5 Specifies the BuiltInTableStyle is light style2 accent6 Specifies the BuiltInTableStyle is light style2 accent4 Specifies the BuiltInTableStyle is light style3 Specifies the BuiltInTableStyle is light style3 accent1 Specifies the BuiltInTableStyle is medium style2 accent2 Specifies the BuiltInTableStyle is light style3 accent2 Specifies the BuiltInTableStyle is light style3 accent3 Specifies the BuiltInTableStyle is light style3 accent4 Specifies the BuiltInTableStyle is light style3 accent5 Specifies the BuiltInTableStyle is light style3 accent6 Specifies the BuiltInTableStyle is medium style1 Specifies the BuiltInTableStyle is medium style1 accent1 Specifies the BuiltInTableStyle is medium style1 accent2 Specifies the BuiltInTableStyle is medium style1 accent3 Specifies the BuiltInTableStyle is medium style1 accent4 Specifies the BuiltInTableStyle is medium style1 accent5 Specifies the BuiltInTableStyle is medium style1 accent6 Specifies the BuiltInTableStyle is medium style2 accent6 Specifies the BuiltInTableStyle is medium style3 Specifies the BuiltInTableStyle is medium style3 accent1 Specifies the BuiltInTableStyle is medium style3 accent2 Specifies the BuiltInTableStyle is medium style3 accent3 Specifies the BuiltInTableStyle is medium style3 accent4 Specifies the BuiltInTableStyle is medium style3 accent5 Specifies the BuiltInTableStyle is medium style3 accent6 Specifies the BuiltInTableStyle is medium style4 Specifies the BuiltInTableStyle is medium style4 accent1 Specifies the BuiltInTableStyle is medium style4 accent2 Specifies the BuiltInTableStyle is medium style4 accent3 Specifies the BuiltInTableStyle is medium style4 accent4 Specifies the BuiltInTableStyle is medium style4 accent5 Specifies the BuiltInTableStyle is medium style4 accent6 Specifies the BuiltInTableStyle is dark style1 Specifies the BuiltInTableStyle is dark style1 accent1 Specifies the BuiltInTableStyle is dark style1 accent2 Specifies the BuiltInTableStyle is dark style1 accent3 Specifies the BuiltInTableStyle is dark style1 accent4 Specifies the BuiltInTableStyle is dark style1 accent5 Specifies the BuiltInTableStyle is dark style1 accent6 Specifies the BuiltInTableStyle is dark style2 Specifies the BuiltInTableStyle is dark style2 accent1 accent2 Specifies the BuiltInTableStyle is dark style2 accent3 accent4 Specifies the BuiltInTableStyle is dark style2 accent5 accent6 Specifies the BuiltInTableStyle is light style1 accent5 Provides options to fit a picture as background for slides and shapes. Specifies the TileMode is Stretch. Specifies the TileMode is Tile. Specifies the FitTextOption of shape TextBody Specifies the do not automatic fit Specifies the shrink text on over flow Specifies the resize shape to fit text Specifies the SmartArt type. Specifies the SmartArt type is BasicBlockList. Specifies the SmartArt type is AlternatingHexagons. Specifies the SmartArt type is PictureCaptionList. Specifies the SmartArt type is LinedList. Specifies the SmartArt type is VerticalBulletList. Specifies the SmartArt type is VerticalBoxList. Specifies the SmartArt type is HorizontalBulletList. Specifies the SmartArt type is SquareAccentList. Specifies the SmartArt type is PictureAccentList. Specifies the SmartArt type is BendingPictureAccentList. Specifies the SmartArt type is StackedList. Specifies the SmartArt type is IncreasingCircleProcess. Specifies the SmartArt type is PieProcess. Specifies the SmartArt type is DetailedProcess. Specifies the SmartArt type is GroupedList. Specifies the SmartArt type is HorizontalPictureList. Specifies the SmartArt type is ContinuousPictureList. Specifies the SmartArt type is PictureStrips. Specifies the SmartArt type is VerticalPictureList. Specifies the SmartArt type is AlternatingPictureBlocks. Specifies the SmartArt type is VerticalPictureAccentList. Specifies the SmartArt type is TitledPictureAccentList. Specifies the SmartArt type is VerticalBlockList. Specifies the SmartArt type is VerticalChevronList. Specifies the SmartArt type is VerticalAccentList. Specifies the SmartArt type is VerticalArrowList. Specifies the SmartArt type is TrapezoidList. Specifies the SmartArt type is DescendingBlockList. Specifies the SmartArt type is TableList. Specifies the SmartArt type is SegmentedProcess. Specifies the SmartArt type is VerticalCurvedList. Specifies the SmartArt type is PyramidList. Specifies the SmartArt type is TargetList. Specifies the SmartArt type is VerticalCircleList. Specifies the SmartArt type is TableHierarchy. Specifies the SmartArt type is BasicProcess. Specifies the SmartArt type is StepUpProcess. Specifies the SmartArt type is StepDownProcess. Specifies the SmartArt type is AccentProcess. Specifies the SmartArt type is AlternatingFlow. Specifies the SmartArt type is ContinuousBlockProcess. Specifies the SmartArt type is IncreasingArrowsProcess. Specifies the SmartArt type is ContinuousArrowProcess. Specifies the SmartArt type is ProcessArrows. Specifies the SmartArt type is CircleAccentTimeLine. Specifies the SmartArt type is BasicTimeLine. Specifies the SmartArt type is BasicChevronProcess. Specifies the SmartArt type is ClosedChevronProcess. Specifies the SmartArt type is ChevronList. Specifies the SmartArt type is SubStepProcess. Specifies the SmartArt type is PhasedProcess. Specifies the SmartArt type is RandomToResultProcess. Specifies the SmartArt type is StaggeredProcess. Specifies the SmartArt type is ProcessList. Specifies the SmartArt type is CircleArrowProcess. Specifies the SmartArt type is BasicBendingProcess. Specifies the SmartArt type is VerticalBendingProcess. Specifies the SmartArt type is AscendingPictureAccentprocess. Specifies the SmartArt type is UpwardArrow. Specifies the SmartArt type is DescendingProcess. Specifies the SmartArt type is CircularBendingProcess. Specifies the SmartArt type is Equation. Specifies the SmartArt type is VerticalEquation. Specifies the SmartArt type is Funnel. Specifies the SmartArt type is Gear. Specifies the SmartArt type is ArrowRibbon. Specifies the SmartArt type is OpposingArrows. Specifies the SmartArt type is ConvergingArrows. Specifies the SmartArt type is DivergingArrows. Specifies the SmartArt type BasicCycle. Specifies the SmartArt type is TextCycle. Specifies the SmartArt type is BlockCycle. Specifies the SmartArt type is NondirectionalCycle. Specifies the SmartArt type is ContinuousCycle. Specifies the SmartArt type is MultiDirectionalCycle. Specifies the SmartArt type is SegmentedCycle. Specifies the SmartArt type is BasicPie. Specifies the SmartArt type is RadialCycle. Specifies the SmartArt type is BasicRadial. Specifies the SmartArt type is DivergingRadial. Specifies the SmartArt type is RadialVenn. Specifies the SmartArt type is RadialCluster. Specifies the SmartArt type is OrganizationChart. Specifies the SmartArt type is NameAndTitleOrganizationChart. Specifies the SmartArt type is HalfCircleOrganizationChart. Specifies the SmartArt type is CirclePictureHierarchy. Specifies the SmartArt type is Hierarchy. Specifies the SmartArt type is LabeledHierarchy. Specifies the SmartArt type is HorizontalOrganizationChart. Specifies the SmartArt type is HorizontalMulti_levelHierarchy. Specifies the SmartArt type is HorizontalHierarchy. Specifies the SmartArt type is HorizontalLabeledHierarchy. Specifies the SmartArt type is Balance. Specifies the SmartArt type is CircleRelationship. Specifies the SmartArt type is HexagonCluster. Specifies the SmartArt type is OpposingIdeas. Specifies the SmartArt type is PlusAndMinus. Specifies the SmartArt type is ReverseList. Specifies the SmartArt type is CounterBalanceArrows. Specifies the SmartArt type is SegmentedPyramid. Specifies the SmartArt type is NestedTarget. Specifies the SmartArt type is ConvergingRadial. Specifies the SmartArt type is RadialList. Specifies the SmartArt type is BasicTarget. Specifies the SmartArt type is BasicMatrix. Specifies the SmartArt type is TitledMatrix. Specifies the SmartArt type is GridMatrix. Specifies the SmartArt type is CycleMatrix. Specifies the SmartArt type is AccentedPicture. Specifies the SmartArt type is CircularPictureCallOut. Specifies the SmartArt type is SnapshotPictureList. Specifies the SmartArt type is SpiralPicture. Specifies the SmartArt type is CaptionedPictures. Specifies the SmartArt type is BendingPictureCaption. Specifies the SmartArt type is BendingPictureSemiTransparentText. Specifies the SmartArt type is BendingPictureBlocks. Specifies the SmartArt type is BendingPictureCaptionList. Specifies the SmartArt type is TitledPictureBlocks. Specifies the SmartArt type is PictureGrid. Specifies the SmartArt type is PictureAccentBlocks. Specifies the SmartArt type is AlternatingPictureCircles. Specifies the SmartArt type is TitlePictureLineup. Specifies the SmartArt type is PictureLineUp. Specifies the SmartArt type is FramedTextPicture. Specifies the SmartArt type is BubblePictureList. Specifies the SmartArt type is BasicPyramid. Specifies the SmartArt type is InvertedPyramid. Specifies the SmartArt type is BasicVenn. Specifies the SmartArt type is LinearVenn. Specifies the SmartArt type is StackedVenn. Specifies the SmartArt type is HierarchyList. Specifies the SmartArt type is PictureAccentProcess. Specifies the SmartArt type is RepeatingBendingProcess. Specifies the SmartArt type is VerticalProcess. Check whether Pictures of current document is referring a mentioned picture path or not. Represents a Baseslide. Represents a picture path to search. Returns true, if current document picture used a input picture path; Otherwise false. Sorts the presentation relations based on a specific criterion. The list of presentation relations to be sorted. The sorted list of presentation relations. Parse the excel stream. Stream containing excel file. Current workbook. Saves the presentation into the stream. Stream in which the presentation is to be saved. Writes theme override elements. string Theme path Baseslide theme collection Writes theme override relation collection. Theme count Baseslide Relation collection Check and modify the notes slide notes master target. Serialize the chart's preserved streams in the file input chart object current chart itme count Generate the file name which is not in the ziparchive item input item Serialize the default style element loaded for chartEx input XML writer input application object Serialize the default style element loaded for chartEx input XML writer input chart object input application object Generate image path with existing image count. Represents the image format extension. Returns image path string. Represents a hyperlink associated with a non-placeholder shape or text. Gets the type of action, the hyperlink will be perform when the specified shape or text is clicked. Read-only. The action. //Create a new presentation. IPresentation ppDoc = Presentation.Create(); //Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Adds paragraph into the shape IParagraph paragraph = shape.TextBody.AddParagraph(); //Adds text to the TextPart paragraph.Text = "Google"; //Set hyperlink to the TextPart IHyperLink hyperLink = paragraph.TextParts[0].SetHyperlink("https://www.google.com"); //Set screen tip to the hyperlink hyperLink.ScreenTip = "This hyperlink navigates to Google site"; //Gets the hyperlink action type. HyperLinkType actionType = hyperLink.Action; //Save the presentation ppDoc.Save("Sample.pptx"); //Close the presentation ppDoc.Close(); 'Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Adds paragraph into the shape Dim paragraph As IParagraph = shape.TextBody.AddParagraph() 'Adds text to the TextPart paragraph.Text = "Google" 'Set hyperlink to the TextPart Dim hyperLink As IHyperLink = paragraph.TextParts(0).SetHyperlink("https://www.google.com") 'Set screen tip to the hyperlink hyperLink.ScreenTip = "This hyperlink navigates to Google site" 'Gets the hyperlink action type. Dim actionType As HyperLinkType = hyperLink.Action 'Save the presentation ppDoc.Save("Sample.pptx") 'Close the presentation ppDoc.Close() Gets the url address of the hyperlink. Read-only. The URL. //Create a new presentation. IPresentation ppDoc = Presentation.Create(); //Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Adds paragraph into the shape IParagraph paragraph = shape.TextBody.AddParagraph(); //Adds text to the TextPart paragraph.Text = "Google"; //Set hyperlink to the TextPart IHyperLink hyperLink = paragraph.TextParts[0].SetHyperlink("https://www.google.com"); //Set screen tip to the hyperlink hyperLink.ScreenTip = "This hyperlink navigates to Google site"; //Gets the hyperlink action type. string hyperlinkUrl = hyperLink.Url; //Save the presentation ppDoc.Save("Sample.pptx"); //Close the presentation ppDoc.Close(); 'Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Adds paragraph into the shape Dim paragraph As IParagraph = shape.TextBody.AddParagraph() 'Adds text to the TextPart paragraph.Text = "Google" 'Set hyperlink to the TextPart Dim hyperLink As IHyperLink = paragraph.TextParts(0).SetHyperlink("https://www.google.com") 'Set screen tip to the hyperlink hyperLink.ScreenTip = "This hyperlink navigates to Google site" 'Gets the hyperlink Url. Dim hyperlinkUrl As String = hyperLink.Url 'Save the presentation ppDoc.Save("Sample.pptx") 'Close the presentation ppDoc.Close() Gets or sets the screen tip text of a hyperlink. The text to be appeared in surface of hyperlink. //Create a new presentation. IPresentation ppDoc = Presentation.Create(); //Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Adds paragraph into the shape IParagraph paragraph = shape.TextBody.AddParagraph(); //Adds text to the TextPart paragraph.Text = "Google"; //Set hyperlink to the TextPart IHyperLink hyperLink = paragraph.TextParts[0].SetHyperlink("https://www.google.com"); //Set screen tip to the hyperlink hyperLink.ScreenTip = "This hyperlink navigates to Google site"; //Save the presentation ppDoc.Save("Sample.pptx"); //Close the presentation ppDoc.Close(); 'Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Adds paragraph into the shape Dim paragraph As IParagraph = shape.TextBody.AddParagraph() 'Adds text to the TextPart paragraph.Text = "Google" 'Set hyperlink to the TextPart Dim hyperLink As IHyperLink = paragraph.TextParts(0).SetHyperlink("https://www.google.com") 'Set screen tip to the hyperlink hyperLink.ScreenTip = "This hyperlink navigates to Google site" 'Save the presentation ppDoc.Save("Sample.pptx") 'Close the presentation ppDoc.Close() Gets the target slide of the hyperlink. The target slide. Returns the target slide instance. //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add slides to the presentation. ISlide slide1 = presDoc.Slides.Add(SlideLayoutType.Blank); ISlide slide2 = presDoc.Slides.Add(); ISlide slide3 = presDoc.Slides.Add(); ISlide slide4 = presDoc.Slides.Add(); //Add a rectangle shape to the slide. IShape shape = slide1.Shapes.AddShape(AutoShapeType.Rectangle, 100, 20, 200, 100); //Sets the hyperlink to the shape. shape.SetHyperlink("2"); //Gets the target slide of the hyperlink. ISlide slide = shape.Hyperlink.TargetSlide; //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); 'Create a new presentation. Dim presDoc As IPresentation = Presentation.Create() 'Add slides to the presentation. Dim slide1 As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) Dim slide2 As ISlide = presDoc.Slides.Add() Dim slide3 As ISlide = presDoc.Slides.Add() Dim slide4 As ISlide = presDoc.Slides.Add() 'Add a rectangle shape to the slide. Dim shape As IShape = slide1.Shapes.AddShape(AutoShapeType.Rectangle, 100, 20, 200, 100) 'Sets the hyperlink to the shape. shape.SetHyperlink("2") 'Gets the target slide of the hyperlink. Dim slide As ISlide = shape.Hyperlink.TargetSlide 'Save the presentation to the file system. presDoc.Save("Output.pptx") 'Close the presentation presDoc.Close() Sets parent as specified SmartArtPoint for hyperlink. Validates if the provided email address is in valid format. The email address to validate. True if email address is valid; otherwise, false. Set parent as specified SmartArtPoint Gets the target slide of the hyperlink. The target slide. Returns the target slide instance if the action is JumpSpecificSlide, otherwise null. IPresentation presentation = Presentation.Create(); ISlide slide1 = presentation.Slides.Add(SlideLayoutType.Blank); ISlide slide2 = presentation.Slides.Add(); ISlide slide3 = presentation.Slides.Add(); ISlide slide4 = presentation.Slides.Add(); IShape shape = slide1.Shapes.AddShape(AutoShapeType.Rectangle, 100, 20, 200, 100); shape.SetHyperlink("2"); ISlide slide = shape.Hyperlink.TargetSlide; Dim presentation As IPresentation = Presentation.Create() Dim slide1 As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) Dim slide2 As ISlide = presentation.Slides.Add() Dim slide3 As ISlide = presentation.Slides.Add() Dim slide4 As ISlide = presentation.Slides.Add() Dim shape As IShape = slide1.Shapes.AddShape(AutoShapeType.Rectangle, 100, 20, 200, 100) shape.SetHyperlink("2") Dim slide As ISlide = shape.Hyperlink.TargetSlide Gets or Sets the color type of Hyperlink. Indicates if the hyperlink uses the theme’s hyperlink color or the text color. Represents the layout slide in presentation. Gets the layout type of the slide. Read-only. The type of the layout. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide ILayoutSlides layoutSlides = presentation.Masters[0].LayoutSlides; //Create a new instance of layout slide ILayoutSlide layoutSlide = layoutSlides[0]; //Get the layout type of layout slide, read only SlideLayoutType slidelayoutType = layoutSlide.LayoutType; //Set the fill type of background as solid layoutSlide.Background.Fill.FillType = FillType.Solid; //Set the color for solid fill layoutSlide.Background.Fill.SolidFill.Color = ColorObject.Firebrick; //Add the layout slide to the collection layoutSlides.Add(layoutSlide); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim layoutSlides As ILayoutSlides = presentation__1.LayoutSlides 'Create a new instance of layout slide Dim layoutSlide As ILayoutSlide = layoutSlides(0) 'Get the layout type of layout slide, read only Dim slidelayoutType As SlideLayoutType = layoutSlide.LayoutType 'Set the fill type of background as solid layoutSlide.Background.Fill.FillType = FillType.Solid 'Set the color for solid fill layoutSlide.Background.Fill.SolidFill.Color = ColorObject.Firebrick 'Add the layout slide to the collection layoutSlides.Add(layoutSlide) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the corresponding master slide. Read-only. The master slide. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide ILayoutSlides layoutSlides = presentation.Masters[0].LayoutSlides; //Create a new instance of layout slide ILayoutSlide layoutSlide = layoutSlides[0]; //Add the layout slide to the collection layoutSlides.Add(layoutSlide); //Get the master slide of the layout slide, read only IMasterSlide masterSlide = layoutSlide.MasterSlide; //Set the slide orientation of the master slide masterSlide.SlideSize.SlideOrientation = SlideOrientation.Portrait; //Set the name of the master slide masterSlide.Name = "Master Slide"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim layoutSlides As ILayoutSlides = presentation__1.LayoutSlides 'Create a new instance of layout slide Dim layoutSlide As ILayoutSlide = layoutSlides(0) 'Add the layout slide to the collection layoutSlides.Add(layoutSlide) 'Get the master slide of the layout slide, read only Dim masterSlide As IMasterSlide = layoutSlide.MasterSlide 'Set the slide orientation of the master slide masterSlide.SlideSize.SlideOrientation = SlideOrientation.Portrait 'Set the name of the master slide masterSlide.Name = "Master Slide" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represents a collection of instance in a presentation Adds a layout slide at the end of the collection. Represents an instance to be added. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide ILayoutSlides layoutSlides = presentation.Masters[0].LayoutSlides; //Create a new instance of layout slide ILayoutSlide layoutSlide = layoutSlides[0]; //Set name to the layout slide layoutSlide.Name = "Layout Slide"; //Add an auto shape - bentconnector5 to the layout slide layoutSlide.Shapes.AddShape(AutoShapeType.BentConnector5, 123, 234, 200, 180); //Add the layout slide to the collection layoutSlides.Add(layoutSlide); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim layoutSlides As ILayoutSlides = presentation__1.Masters(0).LayoutSlides 'Create a new instance of layout slide Dim layoutSlide As ILayoutSlide = layoutSlides(0) 'Set name to the layout slide layoutSlide.Name = "Layout Slide" 'Add an auto shape - bentconnector5 to the layout slide layoutSlide.Shapes.AddShape(AutoShapeType.BentConnector5, 123, 234, 200, 180) 'Add the layout slide to the collection layoutSlides.Add(layoutSlide) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Creates an instance with the specified and layout name, then adds it to the collection. The layout type to customize The custom name of the layout slide Returns the created layout slide with specified name and type //Create a new presentation. IPresentation presentation = Presentation.Create(); //Retrieve the collection of layout Slide ILayoutSlides layoutSlides = presentation.Masters[0].LayoutSlides; //Add the layout slide to the collection layoutSlides.Add(SlideLayoutType.Custom, "Custom Layout"); //Add the slide into the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Custom); //Get the count of the layout slides in a presentation int count = layoutSlides.Count; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim pptxDoc As IPresentation = Presentation.Create() 'Retrieve the collection of layout Slide. Dim layoutSlides As ILayoutSlides = pptxDoc.Masters(0).LayoutSlides 'Add the layout slide to the collection. layoutSlides.Add(SlideLayoutType.Custom, "Custom Layout") 'Add the slide into the presentation. Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Custom) 'Get the count of the layout slides in a presentation. Dim count As Integer = layoutSlides.Count 'Saves the Presentation. pptxDoc.Save("Sample.pptx") 'Close the presentation. pptxDoc.Close() Inserts an element into the layout slide collection at the specified index. The zero-based index at which value should be inserted. The layout slide item to insert. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide ILayoutSlides layoutSlides = presentation.Masters[0].LayoutSlides; //Create a new instance of layout slide ILayoutSlide layoutSlide = layoutSlides[0]; //Set name to the layout slide layoutSlide.Name = "Layout Slide"; //Add a text box to the layout slide IShape shape = layoutSlide.Shapes.AddTextBox(200, 120, 345, 200); //Add paragraph to the text body shape.TextBody.Paragraphs.Add("This is a layout slide"); //Insert the layout slide at index 2 layoutSlides.Insert(2,layoutSlide); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim layoutSlides As ILayoutSlides = presentation__1.Masters(0).LayoutSlides 'Create a new instance of layout slide Dim layoutSlide As ILayoutSlide = layoutSlides(0) 'Set name to the layout slide layoutSlide.Name = "Layout Slide" 'Add a text box to the layout slide Dim shape As IShape = layoutSlide.Shapes.AddTextBox(200, 120, 345, 200) 'Add paragraph to the text body shape.TextBody.Paragraphs.Add("This is a layout slide") 'Insert the layout slide at index 2 layoutSlides.Insert(2, layoutSlide) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Removes the element at the specified index of the layout slide collection. The zero-based index of the element to be removed. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide ILayoutSlides layoutSlides = presentation.Masters[0].LayoutSlides; //Remove a specific layout slide using index position layoutSlides.RemoveAt(1); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim layoutSlides As ILayoutSlides = presentation__1.Masters(0).LayoutSlides 'Remove a specific layout slide using index position layoutSlides.RemoveAt(1) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Removes the first occurrence of a specified object from the layout slide collection. The layout slide object to be removed from the collection. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide ILayoutSlides layoutSlides = presentation.Masters[0].LayoutSlides; //Create a new instance of layout slide ILayoutSlide layoutSlide = layoutSlides[0]; //Set name to the layout slide layoutSlide.Name = "Layout Slide"; //Add a text box to the layout slide IShape shape = layoutSlide.Shapes.AddTextBox(200, 120, 345, 200); //Add paragraph to the text body shape.TextBody.Paragraphs.Add("This is a layout slide"); //Add the layout slide to the collection layoutSlides.Add(layoutSlide); //Remove a specific layout slide from the collection layoutSlides.Remove(layoutSlide); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim layoutSlides As ILayoutSlides = presentation__1.Masters(0).LayoutSlides 'Create a new instance of layout slide Dim layoutSlide As ILayoutSlide = layoutSlides(0) 'Set name to the layout slide layoutSlide.Name = "Layout Slide" 'Add a text box to the layout slide Dim shape As IShape = layoutSlide.Shapes.AddTextBox(200, 120, 345, 200) 'Add paragraph to the text body shape.TextBody.Paragraphs.Add("This is a layout slide") 'Add the layout slide to the collection layoutSlides.Add(layoutSlide) 'Remove a specific layout slide from the collection layoutSlides.Remove(layoutSlide) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Returns the zero-based index of the first occurrence of the within the collection. The ILayoutSlide instance to locate in the collection. Returns the zero-based index of the first occurrence of object within the entire collection, if found; otherwise, –1. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide ILayoutSlides layoutSlides = presentation.Masters[0].LayoutSlides; //Create a new instance of layout slide ILayoutSlide layoutSlide = layoutSlides[0]; //Set name to the layout slide layoutSlide.Name = "Layout Slide"; //Add a text box to the layout slide IShape shape = layoutSlide.Shapes.AddTextBox(200, 120, 345, 200); //Add paragraph to the text body shape.TextBody.Paragraphs.Add("This is a layout slide"); //Add the layout slide to the collection layoutSlides.Add(layoutSlide); //Get the index of layout slide int index = layoutSlides.IndexOf(layoutSlide); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim layoutSlides As ILayoutSlides = presentation__1.Masters(0).LayoutSlides 'Create a new instance of layout slide Dim layoutSlide As ILayoutSlide = layoutSlides(0) 'Set name to the layout slide layoutSlide.Name = "Layout Slide" 'Add a text box to the layout slide Dim shape As IShape = layoutSlide.Shapes.AddTextBox(200, 120, 345, 200) 'Add paragraph to the text body shape.TextBody.Paragraphs.Add("This is a layout slide") 'Add the layout slide to the collection layoutSlides.Add(layoutSlide) 'Get the index of layout slide Dim index As Integer = layoutSlides.IndexOf(layoutSlide) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Removes all the elements from layout slide collection. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide ILayoutSlides layoutSlides = presentation.Masters[0].LayoutSlides; //Clear the layout slides layoutSlides.Clear(); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim layoutSlides As ILayoutSlides = presentation__1.Masters(0).LayoutSlides 'Clear the layout slides layoutSlides.Clear() 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Returns an instance with the specified item. The type of the layout slide to find the instance. Returns the layout slide with the specified slide layout type. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide ILayoutSlides layoutSlides = presentation.Masters[0].LayoutSlides; //Get the layout slide by specifying the slide layout type ILayoutSlide layoutSlide = layoutSlides.GetByType(SlideLayoutType.Title); //Set name to the layout slide layoutSlide.Name = "Layout Slide"; //Add a text box to the layout slide IShape shape = layoutSlide.Shapes.AddTextBox(200, 120, 345, 200); //Add paragraph to the text body shape.TextBody.Paragraphs.Add("This is a layout slide"); //Add the layout slide to the collection layoutSlides.Add(layoutSlide); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim layoutSlides As ILayoutSlides = presentation__1.Masters(0).LayoutSlides 'Get the layout slide by specifying the slide layout type Dim layoutSlide As ILayoutSlide = layoutSlides.GetByType(SlideLayoutType.Title) 'Set name to the layout slide layoutSlide.Name = "Layout Slide" 'Add a text box to the layout slide Dim shape As IShape = layoutSlide.Shapes.AddTextBox(200, 120, 345, 200) 'Add paragraph to the text body shape.TextBody.Paragraphs.Add("This is a layout slide") 'Add the layout slide to the collection layoutSlides.Add(layoutSlide) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Gets the number of elements in the layout slide collection. Read-only. The total count of the slides in the layout slide collection. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide ILayoutSlides layoutSlides = presentation.Masters[0].LayoutSlides; //Create a new instance of layout slide ILayoutSlide layoutSlide = layoutSlides[0]; //Add the layout slide to the collection layoutSlides.Add(layoutSlide); //Get the count of the layout slides in a presentation int count = layoutSlides.Count; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim layoutSlides As ILayoutSlides = presentation__1.Masters(0).LayoutSlides 'Create a new instance of layout slide Dim layoutSlide As ILayoutSlide = layoutSlides(0) 'Add the layout slide to the collection layoutSlides.Add(layoutSlide) 'Get the count of the layout slides in a presentation Dim count As Integer = layoutSlides.Count 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets a instance from the collection. Read-only. Index from the collection. Returns the particular layout slide based on the index. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide ILayoutSlides layoutSlides = presentation.Masters[0].LayoutSlides; //Create a new instance of layout slide ILayoutSlide layoutSlide = layoutSlides[0]; //Set the fill type of background as solid layoutSlide.Background.Fill.FillType = FillType.Solid; //Set the color for solid fill layoutSlide.Background.Fill.SolidFill.Color = ColorObject.Firebrick; //Add the layout slide to the collection layoutSlides.Add(layoutSlide); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim layoutSlides As ILayoutSlides = presentation__1.Masters(0).LayoutSlides 'Create a new instance of layout slide Dim layoutSlide As ILayoutSlide = layoutSlides(0) 'Set the fill type of background as solid layoutSlide.Background.Fill.FillType = FillType.Solid 'Set the color for solid fill layoutSlide.Background.Fill.SolidFill.Color = ColorObject.Firebrick 'Add the layout slide to the collection layoutSlides.Add(layoutSlide) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represents the master slide in a presentation. Gets the collection of a instance. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Title); //Gets the first master slide. IMasterSlide masterSlide = presentation.Masters[0]; //Retrieve the collection of layout Slide ILayoutSlides layoutSlides = masterSlide.LayoutSlides; int count = layoutSlides.Count; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation As Presentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Title) 'Gets the first master slide. Dim masterSlide As IMasterSlide = presentation.Masters(0) 'Retrieve the collection of layout Slide Dim layoutSlides As ILayoutSlides = masterSlide.LayoutSlides 'Gets the layout slides count. Dim count As Integer = layoutSlides.Count 'Saves the Presentation. presentation.Save("Sample.pptx") 'Close the presentation. presentation.Close() Represents a collection of instance in a presentation. Adds a master slide at the end of the collection. Represents an instance to be added. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide IMasterSlides masterslides = presentation.Masters; //Get a master by specifying the index in collection IMasterSlide masterSlide = presentation.Masters[0]; //Add a group shape to master slide masterSlide.GroupShapes.AddGroupShape(200,234,198,173); //Add an auto shape - bevel to master slide masterSlide.Shapes.AddShape(AutoShapeType.Bevel,237,45,187,120); //Add master slide to the collection masterslides.Add(masterSlide); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim masterslides As IMasterSlides = presentation__1.Masters 'Get a master by specifying the index in collection Dim masterSlide As IMasterSlide = presentation__1.Masters(0) 'Add a group shape to master slide masterSlide.GroupShapes.AddGroupShape(200, 234, 198, 173) 'Add an auto shape - bevel to master slide masterSlide.Shapes.AddShape(AutoShapeType.Bevel, 237, 45, 187, 120) 'Add master slide to the collection masterslides.Add(masterSlide) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Inserts an element into the master slide collection at the specified index. The zero-based index at which master slide should be inserted. The master slide item to insert. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide IMasterSlides masterslides = presentation.Masters; //Get a master by specifying the index in collection IMasterSlide masterSlide = presentation.Masters[0]; //Set the fill type for background of the master slide masterSlide.Background.Fill.FillType = FillType.Solid; //Set color of the solid fill masterSlide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(123, 54, 234, 112); //Add a group shape to master slide masterSlide.GroupShapes.AddGroupShape(200,234,198,173); //Add an auto shape - bevel to master slide masterSlide.Shapes.AddShape(AutoShapeType.Bevel,237,45,187,120); //Insert master slide in the collection masterslides.Insert(1, masterSlide); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim masterslides As IMasterSlides = presentation__1.Masters 'Get a master by specifying the index in collection Dim masterSlide As IMasterSlide = presentation__1.Masters(0) 'Set the fill type for background of the master slide masterSlide.Background.Fill.FillType = FillType.Solid 'Set color of the solid fill masterSlide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(123, 54, 234, 112) 'Add a group shape to master slide masterSlide.GroupShapes.AddGroupShape(200, 234, 198, 173) 'Add an auto shape - bevel to master slide masterSlide.Shapes.AddShape(AutoShapeType.Bevel, 237, 45, 187, 120) 'Insert master slide in the collection masterslides.Insert(1, masterSlide) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Removes the first occurrence of a specified instance from the master slide collection. The master slide object to be removed from the collection. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide IMasterSlides masterslides = presentation.Masters; //Get a master by specifying the index in collection IMasterSlide masterSlide = presentation.Masters[0]; //Add a group shape to master slide masterSlide.GroupShapes.AddGroupShape(200,234,198,173); //Insert master slide in the collection masterslides.Insert(1, masterSlide); //Remove a specific master slide masterslides.Remove(masterSlide); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim masterslides As IMasterSlides = presentation__1.Masters 'Get a master by specifying the index in collection Dim masterSlide As IMasterSlide = presentation__1.Masters(0) 'Add a group shape to master slide masterSlide.GroupShapes.AddGroupShape(200, 234, 198, 173) 'Insert master slide in the collection masterslides.Insert(1, masterSlide) 'Remove a specific master slide masterslides.Remove(masterSlide) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Removes the element at the specified index of the master slide collection. The zero-based index of the element to be removed. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide IMasterSlides masterslides = presentation.Masters; //Get a master by specifying the index in collection IMasterSlide masterSlide = presentation.Masters[0]; //Add a group shape to master slide masterSlide.GroupShapes.AddGroupShape(200,234,198,173); //Insert master slide in the collection masterslides.Insert(1, masterSlide); //Remove a specific master slide masterslides.RemoveAt(0); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim masterslides As IMasterSlides = presentation__1.Masters 'Get a master by specifying the index in collection Dim masterSlide As IMasterSlide = presentation__1.Masters(0) 'Add a group shape to master slide masterSlide.GroupShapes.AddGroupShape(200, 234, 198, 173) 'Insert master slide in the collection masterslides.Insert(1, masterSlide) 'Remove a specific master slide masterslides.RemoveAt(0) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Returns the zero-based index of the first occurrence of the instance within the collection. The IMasterSlide instance to locate in the collection. Returns the zero-based index of the first occurrence of object within the entire collection, if found; otherwise, –1. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide IMasterSlides masterslides = presentation.Masters; //Get a master by specifying the index in collection IMasterSlide masterSlide = presentation.Masters[0]; //Set the fill type for background of the master slide masterSlide.Background.Fill.FillType = FillType.Solid; //Set color of the solid fill masterSlide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(123, 54, 234, 112); //Add master slide to the collection masterslides.Add(masterSlide); //Get the index of master slide in collection int index = masterslides.IndexOf(masterSlide); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim masterslides As IMasterSlides = presentation__1.Masters 'Get a master by specifying the index in collection Dim masterSlide As IMasterSlide = presentation__1.Masters(0) 'Set the fill type for background of the master slide masterSlide.Background.Fill.FillType = FillType.Solid 'Set color of the solid fill masterSlide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(123, 54, 234, 112) 'Add master slide to the collection masterslides.Add(masterSlide) 'Get the index of master slide in collection Dim index As Integer = masterslides.IndexOf(masterSlide) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Removes all the elements from master slide collection. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide IMasterSlides masterslides = presentation.Masters; //Get a master by specifying the index in collection IMasterSlide masterSlide = presentation.Masters[0]; //Clear the master slide collection masterslides.Clear(); //Add master slide to the collection masterslides.Add(masterSlide); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim masterslides As IMasterSlides = presentation__1.Masters 'Get a master by specifying the index in collection Dim masterSlide As IMasterSlide = presentation__1.Masters(0) 'Clear the master slide collection masterslides.Clear() 'Add master slide to the collection masterslides.Add(masterSlide) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Gets the number of elements in the collection. Read-only. The total count of the master slides in the master slide collection. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide IMasterSlides masterslides = presentation.Masters; //Get a master by specifying the index in collection IMasterSlide masterSlide = presentation.Masters[0]; //Add a group shape to master slide masterSlide.GroupShapes.AddGroupShape(200,234,198,173); //Add an auto shape - bevel to master slide masterSlide.Shapes.AddShape(AutoShapeType.Bevel,237,45,187,120); //Add master slide to the collection masterslides.Add(masterSlide); //Get the count of the master slide int count = masterslides.Count; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); Gets a instance from the collection. Read-only. Index from the collection. Returns the particular master slide based on the index. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide IMasterSlides masterslides = presentation.Masters; //Get a master by specifying the index in collection IMasterSlide masterSlide = presentation.Masters[0]; //Set the fill type for background of the master slide masterSlide.Background.Fill.FillType = FillType.Solid; //Set color of the solid fill masterSlide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(123, 54, 234, 112); //Add a group shape to master slide masterSlide.GroupShapes.AddGroupShape(200,234,198,173); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); Represents the PowerPoint presentation. Saves the presentation to the specified file name. Specifies the file name to save the presentation. At present, the Essential Presentation library only supports the PPTX file format. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(3, 3, 100, 120, 300, 200); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(3, 3, 100, 120, 300, 200) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() At present, the Essential Presentation library only supports the PPTX file format. //Create instance for memory stream MemoryStream fileStream = new MemoryStream(); //Open a presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(3, 3, 100, 120, 300, 200); //Save the presentation using stream presentation.Save(fileStream); //Close the presentation. presentation.Close(); //Dispose the file stream fileStream.Dispose(); 'Create instance for memory stream Dim fileStream As New MemoryStream() 'Open a presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(3, 3, 100, 120, 300, 200) 'Save the presentation using stream presentation__1.Save(fileStream) 'Close the presentation. presentation__1.Close() 'Dispose the file stream fileStream.Dispose() Saves the presentation to the specified HttpResponse instance. At present, the Essential Presentation library only supports the PPTX file format. The name of the file in HttpResponse. The format type of the presentation. The HttpResponse to save the presentation. //Create a presentation IPresentation presentation = Presentation.Create(); //Save the presentation to the specified HttpResponse presentation.Save("Sample.pptx", FormatType.Pptx, HttpContext.Current.Response); 'Create a presentation Dim presentation__1 As IPresentation = Presentation.Create() //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(3, 3, 100, 120, 300, 200); 'Save the presentation to the specified HttpResponse presentation__1.Save("Sample.pptx", FormatType.Pptx, Response) Encrypts the presentation using the specified password. The password to encrypt the presentation. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a new slide of content with caption slide layout type. ISlide slide = presentation.Slides.Add(SlideLayoutType.ContentWithCaption); //Add a auto shape of moon type auto shape. IShape shape = slide.Shapes.AddShape(AutoShapeType.Moon, 50, 0, 200, 200); //Add a paragraph with text content to the shape. shape.TextBody.AddParagraph("Text for moon shape"); //Encrypt the presentation with the combination of alpha and symbol string password. presentation.Encrypt("MYPASSWORD!@#$%"); //Save the presentation. presentation.Save("Sample.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a new slide of content with caption slide layout type. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.ContentWithCaption) 'Add a auto shape of moon type auto shape. Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Moon, 50, 0, 200, 200) 'Add a paragraph with text content to the shape. shape.TextBody.AddParagraph("Text for moon shape") 'Encrypt the presentation with the combination of alpha and symbol string password. presentation__1.Encrypt("MYPASSWORD!@#$%") 'Save the presentation. presentation__1.Save("Sample.pptx") 'Close the presentation. presentation__1.Close() Removes the encryption from presentation. //Open the encrypted presentation. IPresentation presentation = Presentation.Open("Input.pptx", "MYPASSWORD!@#$%"); //Remove the encryption. presentation.RemoveEncryption(); //Save the presentation. presentation.Save("Sample.pptx"); //Close the presentation. presentation.Close(); 'Open the encrypted presentation. Dim presentation__1 As IPresentation = Presentation.Open("Input.pptx", "MYPASSWORD!@#$%") 'Remove the encryption. presentation__1.RemoveEncryption() 'Save the presentation. presentation__1.Save("Sample.pptx") 'Close the presentation. presentation__1.Close() Converts the presentation slides to images and returns the image array. Specifies the image type to convert slides. Returns the array of the converted images. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a content with caption slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.ContentWithCaption); //Add a table to the slide. ITable table = slide.Tables.AddTable(5, 5, 20, 20, 500, 500); //Set the built in table style. table.BuiltInStyle = BuiltInTableStyle.DarkStyle2Accent3Accent4; //Iterate through the row collection. foreach (IRow row in table.Rows) { //Iterate through the cell collection. foreach (ICell cell in row.Cells) { //Add a paragraph to the cell. cell.TextBody.AddParagraph("New Paragraph"); } } //Converts the each and every slide in the presentation to image of System.Drawing.Image type array. System.Drawing.Image[] imageArray = presentation.RenderAsImages(Syncfusion.Drawing.ImageType.Metafile); //Iterate the image array. foreach (System.Drawing.Image image in imageArray) { //Save the image of .bmp format. image.Save("RenderAsImage" + Guid.NewGuid() + ".bmp"); } //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a content with caption slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.ContentWithCaption) 'Add a table to the slide. Dim table As ITable = slide.Tables.AddTable(5, 5, 20, 20, 500, 500) 'Set the built in table style. table.BuiltInStyle = BuiltInTableStyle.DarkStyle2Accent3Accent4 'Iterate through the row collection. For Each row As IRow In table.Rows 'Iterate through the cell collection. For Each cell As ICell In row.Cells 'Add a paragraph to the cell. cell.TextBody.AddParagraph("New Paragraph") Next Next 'Converts the each and every slide in the presentation to image of System.Drawing.Image type array. Dim imageArray As Image() = presentation__1.RenderAsImages(Syncfusion.Drawing.ImageType.Metafile) 'Iterate the image array. For Each image As Image In imageArray 'Save the image of .bmp format. image.Save("RenderAsImage" + Guid.NewGuid() + ".bmp") Next 'Close the presentation. presentation__1.Close() Converts the presentation slides to images and returns the stream array. Specifies the image format to convert slides. Returns the array of the converted images. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a content with caption slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.ContentWithCaption); //Add a table to the slide. ITable table = slide.Tables.AddTable(5, 5, 0, 0, 500, 500); //Set the built in table style. table.BuiltInStyle = BuiltInTableStyle.DarkStyle2Accent3Accent4; //Iterate through the row collection. foreach (IRow row in table.Rows) { //Iterate through the cell collection. foreach (ICell cell in row.Cells) { //Add a paragraph to the cell. cell.TextBody.AddParagraph("New Paragraph"); } } //Converts the each and every slide in the presentation to image of stream array type. Stream[] imageStreamArray = presentation.RenderAsImages(Syncfusion.Drawing.ImageFormat.Jpeg); //Iterate the stream array. foreach (Stream stream in imageStreamArray) { //Save the stream in image of .jpg format. Image.FromStream(stream).Save("RenderAsImage" + Guid.NewGuid() + ".jpg"); } //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a content with caption slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.ContentWithCaption) 'Add a table to the slide. Dim table As ITable = slide.Tables.AddTable(5, 5, 0, 0, 500, 500) 'Set the built in table style. table.BuiltInStyle = BuiltInTableStyle.DarkStyle2Accent3Accent4 'Iterate through the row collection. For Each row As IRow In table.Rows 'Iterate through the cell collection. For Each cell As ICell In row.Cells 'Add a paragraph to the cell. cell.TextBody.AddParagraph("New Paragraph") Next Next 'Converts the each and every slide in the presentation to image of stream array type. Dim imageStreamArray As Stream() = presentation__1.RenderAsImages(Syncfusion.Drawing.ImageFormat.Jpeg) 'Iterate the stream array. For Each stream As Stream In imageStreamArray 'Save the stream in image of .jpg format. Image.FromStream(stream).Save("RenderAsImage" + Guid.NewGuid() + ".jpg") Next 'Close the presentation. presentation__1.Close() Releases any resources associated with the presentation instance. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a new slide of comparison slide layout type. ISlide slide = presentation.Slides.Add(SlideLayoutType.Comparison); //Save the presentation. presentation.Save("Sample.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a new slide of comparison slide layout type. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Comparison) 'Save the presentation. presentation__1.Save("Sample.pptx") 'Close the presentation. presentation__1.Close() Creates an independent copy of instance. Returns the cloned presentation instance. //Create an instance for presentation IPresentation presentation = Presentation.Create(); //Add a new slide of comparison slide layout type. ISlide slide = presentation.Slides.Add(SlideLayoutType.Comparison); //Clone the entire presentation. IPresentation presentationClone = presentation.Clone(); //Add a new slide of title layout type. slide = presentationClone.Slides.Add(SlideLayoutType.Title); //Add an auto shape of regular pentagon auto shape type. slide.Shapes.AddShape(AutoShapeType.RegularPentagon, 10, 20, 300, 400); //Save the cloned presentation presentationClone.Save("Sample.pptx"); //Close the presentation. presentation.Close(); //Close the cloned presentation. presentationClone.Close(); 'Create an instance for presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add a new slide of comparison slide layout type. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Comparison) 'Clone the entire presentation. Dim presentationClone As IPresentation = presentation__1.Clone() 'Add a new slide of title layout type. slide = presentationClone.Slides.Add(SlideLayoutType.Title) 'Add an auto shape of regular pentagon auto shape type. slide.Shapes.AddShape(AutoShapeType.RegularPentagon, 10, 20, 300, 400) 'Save the cloned presentation presentationClone.Save("Sample.pptx") 'Close the presentation. presentation__1.Close() 'Close the cloned presentation. presentationClone.Close() Removes the macros from the presentation instance. //Opens an existing macro enabled PowerPoint presentation IPresentation pptxDoc = Presentation.Open("Sample.PPTM"); //Checks whether the presentation has macros and then removes them if (pptxDoc.HasMacros) pptxDoc.RemoveMacros(); //Saves the presentation pptxDoc.Save("Output.pptx"); //Closes the presentation pptxDoc.Close(); 'Opens an existing macro enabled PowerPoint presentation Dim pptxDoc As IPresentation = Presentation.Open("Sample.PPTM") 'Checks whether the presentation has macros and then removes them If pptxDoc.HasMacros Then pptxDoc.RemoveMacros() End If 'Saves the presentation pptxDoc.Save("Output.pptx") 'Closes the presentation pptxDoc.Close() Sets the write protection for the presentation instance Password to enforce protection. Maximum length of password should be 15. If it exceeds 15, first 15 characters will be considered for protection, remaining will be ignored. //Create an instance for presentation IPresentation presentation = Presentation.Create(); //Add a new slide of comparison slide layout type. ISlide slide = presentation.Slides.Add(SlideLayoutType.Comparison); //Add an auto shape of regular pentagon auto shape type. slide.Shapes.AddShape(AutoShapeType.RegularPentagon, 10, 20, 300, 400); //Set the write protection for Presentation instance with password. presentation.SetWriteProtection("MYPASSWORD"); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation. presentation.Close(); 'Create an instance for presentation Dim presentation As IPresentation = Presentation.Create() 'Add a new slide of comparison slide layout type. Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Comparison) 'Add an auto shape of regular pentagon auto shape type. slide.Shapes.AddShape(AutoShapeType.RegularPentagon, 10, 20, 300, 400) 'Set the write protection for Presentation instance with password. presentation.SetWriteProtection("MYPASSWORD") 'Save the presentation presentation.Save("Sample.pptx") 'Close the presentation. presentation.Close() Removes the write Protection from presentation instance //Create an instance for presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Check whether the presentation is write protected. if (presentation.IsWriteProtected) { //Removes the write protection from presentation instance presentation.RemoveWriteProtection(); } //Save the presentation presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create an instance for presentation Dim presentation As IPresentation = Presentation.Open("Sample.pptx") 'Check whether the presentation is write protected. if (presentation.IsWriteProtected) { //Removes the write protection from presentation instance presentation.RemoveWriteProtection() } 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation. presentation.Close() Finds the text based on specified string, taking into the consideration of caseSensitive and wholeWord options. A text to find. Set to true to match the similar case text which specified in the parameter; otherwise false. Set to true to match the whole word text which specified in the parameter; otherwise false. The that contains the found text in the document. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with a text IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Hello World"); // Finds the text from the Presentation document ITextSelection textSelection = presentation.Find("World", false, false); // Gets the found text containing text parts foreach (ITextPart textPart in textSelection.GetTextParts()) { //Sets Bold property textPart.Font.Bold = true; } //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Creates a presentation. Dim presentation As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) 'Add a new paragraph with a text Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Hello World") 'Finds the text from the Presentation document Dim textSelection As ITextSelection = presentation.Find("World", False, False) 'Gets the text parts from the selection For Each textPart As ITextPart In textSelection.GetTextParts() textPart.Font.Bold = True Next presentation.Save("Output.pptx") presentation.Close() Finds the first occurrence of text that matches the specified Regex pattern. The used to find the text. The that contains the found text in the document. /// //Opens an existing presentation. using (IPresentation pptxDoc = Presentation.Open("Input.pptx")) { // Create a regex pattern to find a text that starts with 'H' and ends with 'o'. Regex regex = new Regex("H.+?o"); //Find the first occurrence of a specified regular expression. ITextSelection textSelection = pptxDoc.Find(regex); //Gets the found text as single text part ITextPart textPart = textSelection.GetAsOneTextPart(); //Replace the text textPart.Text = "Replaced text"; //Saves the Presentation pptxDoc.Save("Output.pptx"); } 'Opens an existing presentation. Using pptxDoc As IPresentation = Presentation.Open("Input.pptx") ' Create a regex pattern to find a text that starts with 'H' and ends with 'o'. Dim regex As Regex = New Regex("H.+?o") 'Find the first occurrence of a specified regular expression. Dim textSelection As ITextSelection = pptxDoc.Find(regex) 'Gets the found text as single text part Dim textPart As ITextPart = textSelection.GetAsOneTextPart() 'Replace the text textPart.Text = "Replaced text" 'Saves the Presentation pptxDoc.Save("Output.pptx") End Using Finds and returns all entries of the specified string, taking into the consideration of caseSensitive and wholeWord options. A text to find. Set to true to match the similar case text which specified in the parameter; otherwise false. Set to true to match the whole word text which specified in the parameter; otherwise false. The collection that contains all the entries of the found text in the document. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with a text IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Hello World"); // Finds all the text from the Presentation document ITextSelection[] textSelections = presentation.FindAll("World", false, false); foreach (ITextSelection textSelection in textSelections) { //Gets the found text as single text part ITextPart textPart = textSelection.GetAsOneTextPart(); //Replace the text textPart.Text = "Replaced text"; } //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Creates a presentation. Dim presentation As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) 'Add a new paragraph with a text Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Hello World") 'Finds the text from the Presentation document Dim textSelections As ITextSelection() = presentation.FindAll("World", False, False) 'Gets the found text as single text part and replace it For Each textSelection As ITextSelection In textSelections Dim textPart As ITextPart = textSelection.GetAsOneTextPart() textPart.Text = "Replaced text" Next presentation.Save("Output.pptx") presentation.Close() Finds all occurrences of text that match the specified Regex pattern. The used to find the text. The collection that contains all the entries of the found text in the document. //Opens an existing presentation. using (IPresentation pptxDoc = Presentation.Open("Input.pptx")) { // Create a regex pattern to find a text that starts with 'H' and ends with 'o'. Regex regex = new Regex("H.+?o"); //Finds all the occurrences of a specified regular expression. ITextSelection[] textSelections = pptxDoc.FindAll(regex); foreach (ITextSelection textSelection in textSelections) { //Gets the found text as single text part ITextPart textPart = textSelection.GetAsOneTextPart(); //Replace the text textPart.Text = "Replaced text"; } //Saves the Presentation pptxDoc.Save("Output.pptx"); } 'Opens an existing presentation. Using pptxDoc As IPresentation = Presentation.Open("Input.pptx") ' Create a regex pattern to find a text that starts with 'H' and ends with 'o'. Dim regex As Regex = New Regex("H.+?o") 'Finds all the occurrences of a specified regular expression. Dim textSelections As ITextSelection() = pptxDoc.FindAll(regex) For Each textSelection As ITextSelection In textSelections 'Gets the found text as single text part Dim textPart As ITextPart = textSelection.GetAsOneTextPart() 'Replace the text textPart.Text = "Replaced text" Next 'Saves the Presentation pptxDoc.Save("Output.pptx") End Using Returns a collection of instances. Read-only. //Creates a PowerPoint presentation IPresentation presentation = Presentation.Create(); //Adds a section to the PowerPoint presentation ISection section = presentation.Sections.Add(); //Sets a name to the created section section.Name = "SectionDemo"; //Adds a slide to the created section ISlide slide = section.AddSlide(SlideLayoutType.Blank); //Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo"); //Saves the PowerPoint presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Creates a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Adds a section to the PowerPoint presentation Dim section As ISection = presentation__1.Sections.Add() 'Sets a name to the created section section.Name = "SectionDemo" 'Adds a slide to the created section Dim slide As ISlide = section.AddSlide(SlideLayoutType.Blank) 'Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo") 'Saves the PowerPoint presentation presentation__1.Save("Sample.pptx") 'Close the Presentation instance presentation__1.Close() Gets the slide collection in the presentation. Read-only. //Open a presentation. IPresentation presentation = Presentation.Open("Input.pptx"); //Retrieve the slide collection, it is read only ISlides slides = presentation.Slides; //Add a slide to the presentation ISlide slide = slides[0]; //Create instance for slide background IBackground background = slide.Background; //Set the fill type for background as Pattern fill background.Fill.FillType = FillType.Pattern; //Set the pattern background.Fill.PatternFill.Pattern = PatternFillType.DashedHorizontal; //set the fore color of pattern background.Fill.PatternFill.ForeColor = ColorObject.Lavender; //Set the back color of pattern background.Fill.PatternFill.BackColor = ColorObject.Brown; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Open a presentation. Dim presentation__1 As IPresentation = Presentation.Open("Input.pptx") 'Retrieve the slide collection, it is read only Dim slides As ISlides = presentation__1.Slides 'Add a slide to the presentation Dim slide As ISlide = slides(0) 'Create instance for slide background Dim background As IBackground = slide.Background 'Set the fill type for background as Pattern fill background.Fill.FillType = FillType.Pattern 'Set the pattern background.Fill.PatternFill.Pattern = PatternFillType.DashedHorizontal 'set the fore color of pattern background.Fill.PatternFill.ForeColor = ColorObject.Lavender 'Set the back color of pattern background.Fill.PatternFill.BackColor = ColorObject.Brown 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Gets or sets a value indicating whether the instance is marked as final. //Create an instance for PowerPoint presentation IPresentation pptxDoc = Presentation.Create(); //Add slide to the presentation ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Mark the presentation as final pptxDoc.Final = true; //Save the presentation pptxDoc.Save("Sample.pptx"); //Close the presentation pptxDoc.Close(); 'Create an instance for PowerPoint presentation Dim pptxDoc As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Mark the presentation as final pptxDoc.Final = True 'Save the presentation pptxDoc.Save("Sample.pptx") 'Close the presentation pptxDoc.Close() Gets the instance. Initialize the ChartToImageConverter in-order to convert the chart in presentation to image. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Initialize the chart to image converter. presentation.ChartToImageConverter = new ChartToImageConverter(); //Set the scaling mode for the chart. presentation.ChartToImageConverter.ScalingMode = ScalingMode.Best; //Add a blank slide for the chart. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a chart to the slide. IPresentationChart officeChart = slide.Charts.AddChart(100, 100, 600, 400); //Set chart data officeChart.ChartData.SetValue(1, 4, "Month"); officeChart.ChartData.SetValue(2, 4, "July"); officeChart.ChartData.SetValue(3, 4, "August"); officeChart.ChartData.SetValue(4, 4, "September"); officeChart.ChartData.SetValue(5, 4, "October"); officeChart.ChartData.SetValue(6, 4, "November"); officeChart.ChartData.SetValue(7, 4, "December"); officeChart.ChartData.SetValue(1, 1, "2013"); officeChart.ChartData.SetValue(2, 1, 35); officeChart.ChartData.SetValue(3, 1, 37); officeChart.ChartData.SetValue(4, 1, 30); officeChart.ChartData.SetValue(5, 1, 29); officeChart.ChartData.SetValue(6, 1, 25); officeChart.ChartData.SetValue(7, 1, 30); officeChart.ChartData.SetValue(1, 2, "2014"); officeChart.ChartData.SetValue(2, 2, 30); officeChart.ChartData.SetValue(3, 2, 25); officeChart.ChartData.SetValue(4, 2, 29); officeChart.ChartData.SetValue(5, 2, 35); officeChart.ChartData.SetValue(6, 2, 38); officeChart.ChartData.SetValue(7, 2, 32); officeChart.ChartData.SetValue(1, 3, "2015"); officeChart.ChartData.SetValue(2, 3, 35); officeChart.ChartData.SetValue(3, 3, 37); officeChart.ChartData.SetValue(4, 3, 30); officeChart.ChartData.SetValue(5, 3, 50); officeChart.ChartData.SetValue(6, 3, 25); officeChart.ChartData.SetValue(7, 3, 30); //Add chart serie. IOfficeChartSerie serie1 = officeChart.Series.Add("2013"); //Set serie value. serie1.Values = officeChart.ChartData[2, 1, 7, 1]; //Add chart serie. IOfficeChartSerie serie2 = officeChart.Series.Add("2014"); //Set serie value. serie2.Values = officeChart.ChartData[2, 2, 7, 2]; //Add chart serie. IOfficeChartSerie serie3 = officeChart.Series.Add("2015"); //Set serie value. serie3.Values = officeChart.ChartData[2, 3, 7, 3]; //Set category labels value for the primary category axis. officeChart.PrimaryCategoryAxis.CategoryLabels = officeChart.ChartData[2, 4, 7, 4]; //Set the chart type. officeChart.ChartType = OfficeChartType.Column_Clustered; //Set the chart title. officeChart.ChartTitle = "Mine Chart"; //Convert the chart to image. System.Drawing.Image[] chartImages = presentation.RenderAsImages(Syncfusion.Drawing.ImageType.Metafile); foreach (System.Drawing.Image image in chartImages) { //Save the image. image.Save("ChartToImageConverter" + Guid.NewGuid() + ".png"); } //Save the presentation. presentation.Save("ChartToImageConverter.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Initialize the chart to image converter. presentation__1.ChartToImageConverter = New ChartToImageConverter() 'Set the scaling mode for the chart. presentation__1.ChartToImageConverter.ScalingMode = ScalingMode.Best 'Add a blank slide for the chart. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a chart to the slide. Dim officeChart As IPresentationChart = slide.Charts.AddChart(100, 100, 600, 400) 'Set chart data officeChart.ChartData.SetValue(1, 4, "Month") officeChart.ChartData.SetValue(2, 4, "July") officeChart.ChartData.SetValue(3, 4, "August") officeChart.ChartData.SetValue(4, 4, "September") officeChart.ChartData.SetValue(5, 4, "October") officeChart.ChartData.SetValue(6, 4, "November") officeChart.ChartData.SetValue(7, 4, "December") officeChart.ChartData.SetValue(1, 1, "2013") officeChart.ChartData.SetValue(2, 1, 35) officeChart.ChartData.SetValue(3, 1, 37) officeChart.ChartData.SetValue(4, 1, 30) officeChart.ChartData.SetValue(5, 1, 29) officeChart.ChartData.SetValue(6, 1, 25) officeChart.ChartData.SetValue(7, 1, 30) officeChart.ChartData.SetValue(1, 2, "2014") officeChart.ChartData.SetValue(2, 2, 30) officeChart.ChartData.SetValue(3, 2, 25) officeChart.ChartData.SetValue(4, 2, 29) officeChart.ChartData.SetValue(5, 2, 35) officeChart.ChartData.SetValue(6, 2, 38) officeChart.ChartData.SetValue(7, 2, 32) officeChart.ChartData.SetValue(1, 3, "2015") officeChart.ChartData.SetValue(2, 3, 35) officeChart.ChartData.SetValue(3, 3, 37) officeChart.ChartData.SetValue(4, 3, 30) officeChart.ChartData.SetValue(5, 3, 50) officeChart.ChartData.SetValue(6, 3, 25) officeChart.ChartData.SetValue(7, 3, 30) 'Add chart serie. Dim serie1 As IOfficeChartSerie = officeChart.Series.Add("2013") 'Set serie value. serie1.Values = officeChart.ChartData(2, 1, 7, 1) 'Add chart serie. Dim serie2 As IOfficeChartSerie = officeChart.Series.Add("2014") 'Set serie value. serie2.Values = officeChart.ChartData(2, 2, 7, 2) 'Add chart serie. Dim serie3 As IOfficeChartSerie = officeChart.Series.Add("2015") 'Set serie value. serie3.Values = officeChart.ChartData(2, 3, 7, 3) 'Set category labels value for the primary category axis. officeChart.PrimaryCategoryAxis.CategoryLabels = officeChart.ChartData(2, 4, 7, 4) 'Set the chart type. officeChart.ChartType = OfficeChartType.Column_Clustered 'Set the chart title. officeChart.ChartTitle = "Mine Chart" 'Convert the chart to image. Dim chartImages As Image() = presentation__1.RenderAsImages(Syncfusion.Drawing.ImageType.Metafile) For Each image As Image In chartImages 'Save the image. image.Save("ChartToImageConverter" + Guid.NewGuid() + ".png") Next 'Save the presentation. presentation__1.Save("ChartToImageConverter.pptx") 'Close the presentation. presentation__1.Close() Gets an instance that represents the built in document properties of presentation. Read-only. //Create an instance for presentation. IPresentation presentation = Presentation.Create(); //Retrieve the built-in document property, it is read only IBuiltInDocumentProperties builtin = presentation.BuiltInDocumentProperties; //Set the application name builtin.ApplicationName = "Essential Presentation"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create an instance for presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the built-in document property, it is read only Dim builtin As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the application name builtin.ApplicationName = "Essential Presentation" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets an instance that represents the custom document properties of presentation. Read-only. //Create a new presentation IPresentation presentation = Presentation.Create(); //Retrieve the custom document properties. ICustomDocumentProperties customDocumentProperties = presentation.CustomDocumentProperties; //Add a new custom document property customDocumentProperties.Add("Property1"); //Set a Boolean value. customDocumentProperties["Property1"].Boolean = true; //Add a new custom document property customDocumentProperties.Add("Property2"); //Set a date time. customDocumentProperties["Property2"].DateTime = DateTime.Now; //Save the presentation presentation.Save("CustomProperty.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document properties. Dim customDocumentProperties As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add a new custom document property customDocumentProperties.Add("Property1") 'Set a Boolean value. customDocumentProperties("Property1").[Boolean] = True 'Add a new custom document property customDocumentProperties.Add("Property2") 'Set a date time. customDocumentProperties("Property2").DateTime = DateTime.Now 'Save the presentation presentation__1.Save("CustomProperty.pptx") 'Close the presentation presentation__1.Close() Gets whether the presentation has macros. Read-only. //Opens an existing macro enabled PowerPoint presentation IPresentation pptxDoc = Presentation.Open("Sample.PPTM"); //Checks whether the presentation has macros and then removes them if (pptxDoc.HasMacros) pptxDoc.RemoveMacros(); //Saves the presentation pptxDoc.Save("Output.pptx"); //Closes the presentation pptxDoc.Close(); 'Opens an existing macro enabled PowerPoint presentation Dim pptxDoc As IPresentation = Presentation.Open("Sample.PPTM") 'Checks whether the presentation has macros and then removes them If pptxDoc.HasMacros Then pptxDoc.RemoveMacros() End If 'Saves the presentation pptxDoc.Save("Output.pptx") 'Closes the presentation pptxDoc.Close() Gets whether the presentation is write Protected. Read-only. //Create an instance for presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Check whether the presentation is write protected. if (presentation.IsWriteProtected) { //Removes the write protection from presentation instance presentation.RemoveWriteProtection(); } //Save the presentation presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create an instance for presentation Dim presentation As IPresentation = Presentation.Open("Sample.pptx") 'Check whether the presentation is write protected. if (presentation.IsWriteProtected) { 'Removes the write protection from presentation instance presentation.RemoveWriteProtection() } 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation. presentation.Close() Gets or sets the first slide number of the PowerPoint Presentation. The default value is 1. First slide number is the starting slide number of presentation, and this API allows to set the first slide number from 0 to 9999. //Creates a new PowerPint Presentation. using (IPresentation presentation = Presentation.Create()) { //Sets the first slide number of the PowerPoint Presentation. presentation.FirstSlideNumber = 5; //Adds slide to the PowerPoint. ISlide slide1 = presentation.Slides.Add(SlideLayoutType.TitleAndContent); //Adds slide to the PowerPoint. ISlide slide2 = presentation.Slides.Add(SlideLayoutType.TitleAndContent); //Adds slide to the PowerPoint. ISlide slide3 = presentation.Slides.Add(SlideLayoutType.TitleAndContent); //Gets the first slide slidenumber. int firstSlideNumber = slide1.SlideNumber; //Gets the second slide slidenumber. int secondSlideNumber = slide2.SlideNumber; //Saves the PowerPoint Presentation. presentation.Save("Output.pptx"); } 'Creates a PowerPoint instance Using pptxDoc As IPresentation = Presentation.Create() 'Sets the first slide number of the PowerPoint Presentation. pptxDoc.FirstSlideNumber = 5 'Adds a slide to the PowerPoint presentation Dim slide1 As ISlide = pptxDoc.Slides.Add(SlideLayoutType.TitleAndContent) 'Adds a slide to the PowerPoint presentation Dim slide2 As ISlide = pptxDoc.Slides.Add(SlideLayoutType.TitleAndContent) 'Adds a slide to the PowerPoint presentation Dim slide3 As ISlide = pptxDoc.Slides.Add(SlideLayoutType.TitleAndContent) 'Gets the first slide slidenumber. Dim firstSlideNumber As Integer = slide1.SlideNumber 'Gets the second slide slidenumber. Dim secondSlideNumber As Integer = slide2.SlideNumber 'Saves the Presentation to the file system. pptxDoc.Save("Output.pptx") End Using Represents the slide in the presentation. Converts the slide to image. Specifies the image type to convert the slide. Returns an image instance that represents the converted slide. //Open a PowerPoint presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Convert the slides to images System.Drawing.Image[] images = presentation.RenderAsImages(Syncfusion.Drawing.ImageType.Bitmap); //Close the PowerPoint presentation presentation.Close(); 'Open a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Open("Sample.pptx") 'Convert the slides to images Dim images As Image() = presentation__1.RenderAsImages(Syncfusion.Drawing. ImageType.Bitmap) 'Close the PowerPoint presentation presentation__1.Close() Converts the slide to image. Specifies the image format to convert the slide. Returns a stream instance that represents the converted slide. //Create a presentation. IPresentation presentation = Presentation.Open("Input.pptx"); //Create instance for chart to image converter presentation.ChartToImageConverter = new ChartToImageConverter(); //Set the scaling mode presentation.ChartToImageConverter.ScalingMode = Syncfusion.OfficeChart.ScalingMode.Best; //Retrieve the first slide from presentation ISlide slide = presentation.Slides[0]; //Convert slide to image Image image = Image.FromStream(slide.ConvertToImage(Syncfusion.Drawing.ImageFormat.Emf)); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a presentation. Dim presentation__1 As IPresentation = Presentation.Open("Input.pptx") 'Create instance for chart to image converter presentation__1.ChartToImageConverter = New ChartToImageConverter() 'Set the scaling mode presentation__1.ChartToImageConverter.ScalingMode = Syncfusion.OfficeChart.ScalingMode.Best 'Retrieve the first slide from presentation Dim slide As ISlide = presentation__1.Slides(0) 'Convert slide to image Dim image__2 As Image = Image.FromStream(slide.ConvertToImage(Syncfusion.Drawing.ImageFormat.Emf)) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Moves the slide to the start of the specified section index. Specifies the section index to be moved. Adds a new notes to the slide. Returns the notes slide of instance. Adds a text box to the slide. Represents the left position,in points. The Left value ranges from -169056 to 169056. Represents the top position,in points. The Top value ranges from -169056 to 169056. Represents the width,in points. The Width value ranges from 0 to 169056. Represents the height,in points. The Height value ranges from 0 to 169056. Returns an instance that represents the text box. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a new slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide. IShape shape = slide.AddTextBox(10, 10, 300, 350); //Add a paragraph with text content to the shape. shape.TextBody.AddParagraph("This is a new text box"); //Save the presentation. presentation.Save("Slide_TextBox.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a new slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide. Dim shape As IShape = slide.AddTextBox(10, 10, 300, 350) 'Add a paragraph with text content to the shape. shape.TextBody.AddParagraph("This is a new text box") 'Save the presentation. presentation__1.Save("Slide_TextBox.pptx") 'Close the presentation. presentation__1.Close() Creates an independent copy of instance. Returns the cloned slide instance. //Open an existing presentation. IPresentation presentation = Presentation.Open("Presentation.pptx"); //Retrieve the slide instance. ISlide slide = presentation.Slides[0]; //Create a cloned copy of slide. ISlide slideClone = slide.Clone(); //Add a new text box to the cloned slide. IShape textboxShape = slideClone.AddTextBox(0, 0, 250, 250); //Add a paragraph with text content to the shape. textboxShape.TextBody.AddParagraph("Hello Presentation"); //Add the slide to the presentation. presentation.Slides.Add(slideClone); //Save the presentation to the file system. presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Open an existing presentation. Dim presentation__1 As IPresentation = Presentation.Open("Presentation.pptx") 'Retrieve the slide instance. Dim slide As ISlide = presentation__1.Slides(0) 'Create a cloned copy of slide. Dim slideClone As ISlide = slide.Clone() 'Add a new text box to the cloned slide. Dim textboxShape As IShape = slideClone.AddTextBox(0, 0, 250, 250) 'Add a paragraph with text content to the shape. textboxShape.TextBody.AddParagraph("Hello Presentation") 'Add the slide to the presentation. presentation__1.Slides.Add(slideClone) 'Save the presentation to the file system. presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Removes the notes slide. Gets or sets the boolean value which indicates whether the slide is visible or not. true if this slide instance is visible; otherwise, false. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Hide the slide in presentation slide.Visible = false; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Hide the slide in presentation slide.Visible = False 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the number of the current slide. Read-only. Returns the section instance of the slide. Read-only. If there is no sections associated with the slide then the Section property will be “null” Gets the Unique ID for the current slide. Read-only. The Unique ID ranges from 256 to 2147483647. Gets the current notes slide instance. Returns null if no notes are present. Gets the layout slide instance of current slide. Returns the collection of slide comments. Read-only. //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add a paragraph to the textbody of the shape shape.TextBody.AddParagraph("Hi Syncfusion Customers"); //Add a comment to the slide IComment comment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); //Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment); //Get the collection of the comments IComments comments = slide.Comments; //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add a paragraph to the text body of the shape shape.TextBody.AddParagraph() 'Add a comment to the slide Dim comment As IComment = slide.Comments.Add(0.35, 0.04, "Author1", "A1", "Essential Presentation is available from 13.1 versions of Essential Studio", DateTime.Now); 'Author2 add reply to a parent comment slide.Comments.Add("Author2", "A2", "Does it support rendering of slides as images or PDF?", DateTime.Now, comment); 'Get the collection of the comments Dim comments As IComments = slide.Comments; ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Represents the slide collection. Adds a slide at the end of the slide collection. Returns the newly created instance. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Create instance to hold the slide collection ISlides slides = presentation.Slides; //Add slide to presentation slides.Add(); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Create instance to hold the slide collection Dim slides As ISlides = presentation__1.Slides 'Add slide to presentation slides.Add() 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Creates an instance with relation to the specified instance and adds it to the collection. Layout slide instance Returns the slide with the specified slide layout. Adds the specified slide at the end of the slide collection. Represents an instance to be added. Returns the zero based index of the specified slide in the slide collection if found otherwise -1 //Create a new presentation. IPresentation presentation = Presentation.Create(); //Create instance to hold the slide collection ISlides slides = presentation.Slides; //Add slide to collection ISlide slide = slides.Add(SlideLayoutType.TwoContent); //Retrieve the specific slide item, read only ISlide _slide = slides[0]; slides.Add(_slide); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Create instance to hold the slide collection Dim slides As ISlides = presentation__1.Slides 'Add slide to collection Dim slide As ISlide = slides.Add(SlideLayoutType.TwoContent) 'Retrieve the specific slide item, read only Dim _slide As ISlide = slides(0) slides.Add(_slide) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Adds the specified cloned slide at the end of slide collection with specified paste options. An instance to be added to the destination presentation. Specifies the for merging the slide. Optional Parameter. An instance of the source presentation from which the slide is cloned from. The cloned slide can be added within the same presentation or this can be done between one presentation to another //Open the source presentation IPresentation sourcePresentation = Presentation.Open("Source.pptx"); //Open the destination presentation IPresentation destinationPresentation = Presentation.Open("Destination.pptx"); //Clone the first slide of the source presentation. ISlide clonedSlide = sourcePresentation.Slides[0].Clone(); //Merge the cloned slide to the destination presentation with paste option - Destination Them. destinationPresentation.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme); //Save the destination presentation. destinationPresentation.Save("Output.pptx"); // Close the presentation destinationPresentation.Close(); sourcePresentation.Close(); 'Open the source presentation Dim sourcePresentation As IPresentation = Presentation.Open("Source.pptx") 'Open the destination presentation Dim destinationPresentation As IPresentation = Presentation.Open("Destination.pptx") 'Clone the first slide of the source presentation. Dim clonedSlide As ISlide = sourcePresentation.Slides(0).Clone() 'Merge the cloned slide to the destination presentation with paste option - Destination Them. destinationPresentation.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme) 'Save the destination presentation. destinationPresentation.Save("Output.pptx") 'Closes the destination presentation. destinationPresentation.Close() sourcePresentation.Close() Creates a slide with the specified layout type and adds the new slide to the end of slide collection. Specifies the slide layout type. Returns the newly created instance. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Create instance to hold the slide collection ISlides slides = presentation.Slides; //Add slide to collection ISlide slide = slides.Add(SlideLayoutType.TwoContent); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Create instance to hold the slide collection Dim slides As ISlides = presentation__1.Slides 'Add slide to collection Dim slide As ISlide = slides.Add(SlideLayoutType.TwoContent) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Inserts the specified slide into the slide collection at specified index. The zero-based index at which the slide should be inserted. The slide value to insert. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Create instance to hold the slide collection ISlides slides = presentation.Slides; //Add slide to collection ISlide slide = slides.Add(SlideLayoutType.TwoContent); //Insert a slide at specific index in collection slides.Insert(2, slides.Add()); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Create instance to hold the slide collection Dim slides As ISlides = presentation__1.Slides 'Add slide to collection Dim slide As ISlide = slides.Add(SlideLayoutType.TwoContent) 'Insert a slide at specific index in collection slides.Insert(2, slides.Add()) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the slide at the specified index, from the slide collection. The zero-based index of the element to be removed. //Create a new presentation. IPresentation presentation = Presentation.Open("Sample.pptx"); //Create instance to hold the slide collection ISlides slides = presentation.Slides; //Remove slide from specific index slides.RemoveAt(0); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Open("Sample.pptx") 'Create instance to hold the slide collection Dim slides As ISlides = presentation__1.Slides 'Remove slide from specific index slides.RemoveAt(0) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the first occurrence of a specified slide from the slide collection. The slide to be removed from the collection. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Create instance to hold the slide collection ISlides slides = presentation.Slides; //Add slide to collection ISlide slide = slides.Add(SlideLayoutType.TwoContent); //Remove a specific slide object slides.Remove(slide); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Create instance to hold the slide collection Dim slides As ISlides = presentation__1.Slides 'Add slide to collection Dim slide As ISlide = slides.Add(SlideLayoutType.TwoContent) 'Remove a specific slide object slides.Remove(slide) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Returns the zero-based index of the first occurrence of the instance within the slide collection. The instance to locate in the collection. Returns the zero-based index of the first occurrence of slide within the collection, if found; otherwise, –1. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Create instance to hold the slide collection ISlides slides = presentation.Slides; //Add slide to collection ISlide slide = slides.Add(SlideLayoutType.TwoContent); //Get the index of the slide instance int index = slides.IndexOf(slide); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Create instance to hold the slide collection Dim slides As ISlides = presentation__1.Slides 'Add slide to collection Dim slide As ISlide = slides.Add(SlideLayoutType.TwoContent) 'Get the index of the slide instance Dim index As Integer = slides.IndexOf(slide) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes all the slides in the presentation. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Create instance to hold the slide collection ISlides slides = presentation.Slides; //Add slide to collection ISlide slide = slides.Add(SlideLayoutType.TwoContent); //Retrieve the specific slide item, read only ISlide _slide = slides[0]; slides.Add(_slide); //Clear the slide collection slides.Clear(); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Create instance to hold the slide collection Dim slides As ISlides = presentation__1.Slides 'Add slide to collection Dim slide As ISlide = slides.Add(SlideLayoutType.TwoContent) 'Retrieve the specific slide item, read only Dim _slide As ISlide = slides(0) slides.Add(_slide) 'Clear the slide collection slides.Clear() 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Adds the specified cloned slide at the specified index of slide collection with specified paste options. Specifies the index position of the slide in which the cloned slide should get added An instance to be added to the destination presentation. Specifies the for merging the slide. Optional Parameter. An instance of the source presentation from which the slide is cloned from. The cloned slide can be added within the same presentation or this can be done between one presentation to another //Open the source presentation IPresentation sourcePresentation = Presentation.Open("Source.pptx"); //Open the destination presentation IPresentation destinationPresentation = Presentation.Open("Destination.pptx"); //Clone the first slide of the source presentation. ISlide clonedSlide = sourcePresentation.Slides[0].Clone(); //Merge the cloned slide to the destination presentation with paste option - Destination Them. destinationPresentation.Slides.Insert(1, clonedSlide, PasteOptions.UseDestinationTheme); //Save the destination presentation. destinationPresentation.Save("Output.pptx"); 'Open the source presentation Dim sourcePresentation As IPresentation = Presentation.Open("Source.pptx") 'Open the destination presentation Dim destinationPresentation As IPresentation = Presentation.Open("Destination.pptx") 'Clone the first slide of the source presentation. Dim clonedSlide As ISlide = sourcePresentation.Slides(0).Clone() 'Merge the cloned slide to the destination presentation with paste option - Destination Them. destinationPresentation.Slides.Insert(1, clonedSlide, PasteOptions.UseDestinationTheme) 'Save the destination presentation. destinationPresentation.Save("Output.pptx") Gets the number of elements in the slide collection. Read-only. The total count of the slides. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Create instance to hold the slide collection ISlides slides = presentation.Slides; //Add slide to presentation slides.Add(); //Add a blank slide to the presentation. slides.Add(SlideLayoutType.Blank); //Add slide to the collection by passing the slide instance slides.Add(slides.Add(SlideLayoutType.Title)); //Get the slide count, read only int count = slides.Count; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Create instance to hold the slide collection Dim slides As ISlides = presentation__1.Slides 'Add slide to presentation slides.Add() 'Add a blank slide to the presentation. slides.Add(SlideLayoutType.Blank) 'Add slide to the collection by passing the slide instance slides.Add(slides.Add(SlideLayoutType.Title)) 'Get the slide count, read only Dim count As Integer = slides.Count 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the instance at the specified index in slide collection. Read-only. The index to locate the slide. Returns the slide at the specified index in slide collection. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Create instance to hold the slide collection ISlides slides = presentation.Slides; //Add slide to presentation slides.Add(); //Add a blank slide to the presentation. slides.Add(SlideLayoutType.Blank); //Add slide to the collection by passing the slide instance slides.Add(slides.Add(SlideLayoutType.Title)); //Retrieve the specific slide item, read only ISlide _slide = slides[0]; //Set the slide name _slide.Name = "My Slide"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Create instance to hold the slide collection Dim slides As ISlides = presentation__1.Slides 'Add slide to presentation slides.Add() 'Add a blank slide to the presentation. slides.Add(SlideLayoutType.Blank) 'Add slide to the collection by passing the slide instance slides.Add(slides.Add(SlideLayoutType.Title)) 'Retrieve the specific slide item, read only Dim _slide As ISlide = slides(0) 'Set the slide name _slide.Name = "My Slide" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represents the size and bounds of a slide. Gets or sets the predefined size type. The slide size type of the slide. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide size ISlideSize slideSize = slide.SlideSize; //Set the type of slide size slideSize.Type = SlideSizeType.Banner; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide size Dim slideSize As ISlideSize = slide.SlideSize 'Set the type of slide size slideSize.Type = SlideSizeType.Banner 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the width, in points. Read-only. The width of the slide. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide size ISlideSize slideSize = slide.SlideSize; //Get the width of the slide size, read only double width = slideSize.Width; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide size Dim slideSize As ISlideSize = slide.SlideSize 'Get the width of the slide size, read only Dim width As Double = slideSize.Width 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the height, in points. Read-only. The height of the slide. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide size ISlideSize slideSize = slide.SlideSize; //Get the height of the slide size, read only double height = slideSize.Height; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide size Dim slideSize As ISlideSize = slide.SlideSize 'Get the height of the slide size, read only Dim height As Double = slideSize.Height 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the slide orientation. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance for slide size ISlideSize slideSize = slide.SlideSize; //Retrieve the slide orientation SlideOrientation slideOrientation = slideSize.SlideOrientation; //Set the slide orientation slideOrientation = SlideOrientation.Landscape; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance for slide size Dim slideSize As ISlideSize = slide.SlideSize 'Retrieve the slide orientation Dim slideOrientation__2 As SlideOrientation = slideSize.SlideOrientation 'Set the slide orientation slideOrientation__2 = SlideOrientation.Landscape 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represents the font attributes of the text. Gets or sets the caps type. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Create instance by adding text part to the shape ITextPart textPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart"); //Create font instance for text part IFont font = textPart.Font; //Set the caps type for text part font.CapsType = TextCapsType.Small; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Create instance by adding text part to the shape Dim textPart As ITextPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart") 'Create font instance for text part Dim font As IFont = textPart.Font 'Set the caps type for text part font.CapsType = TextCapsType.Small 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the foreground color of the text. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Create instance by adding text part to the shape ITextPart textPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart"); //Create font instance for text part IFont font = textPart.Font; //Create instance to hold color properties of font IColor color = font.Color; //Set font color for text part color = ColorObject.Green; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Create instance by adding text part to the shape Dim textPart As ITextPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart") 'Create font instance for text part Dim font As IFont = textPart.Font 'Create instance to hold color properties of font Dim color As IColor = font.Color 'Set font color for text part color = ColorObject.Green 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets a value that indicates whether the text is bold or not. true if bold; otherwise, false. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Create instance by adding text part to the shape ITextPart textPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart"); //Create font instance for text part IFont font = textPart.Font; //Set text part with bold style font.Bold = true; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Create instance by adding text part to the shape Dim textPart As ITextPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart") 'Create font instance for text part Dim font As IFont = textPart.Font 'Set text part with bold style font.Bold = True 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets a boolean value that indicates whether the text is italic or not. true if italic; otherwise, false. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Create instance by adding text part to the shape ITextPart textPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart"); //Create font instance for text part IFont font = textPart.Font; //Set text part with italic style font.Italic = true; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Create instance by adding text part to the shape Dim textPart As ITextPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart") 'Create font instance for text part Dim font As IFont = textPart.Font 'Set text part with italic style font.Italic = True 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets a boolean value that indicates whether the text is subscript or not. true if subscript; otherwise, false. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Create instance by adding text part to the shape ITextPart textPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart"); //Create font instance for text part IFont font = textPart.Font; //Set the subscript font.Subscript = true; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Create instance by adding text part to the shape Dim textPart As ITextPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart") 'Create font instance for text part Dim font As IFont = textPart.Font 'Set the subscript font.Subscript = True 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets a boolean value that indicates whether the text is superscript or not. true if superscript; otherwise, false. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Create instance by adding text part to the shape ITextPart textPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart"); //Create font instance for text part IFont font = textPart.Font; //Set the superscript font.Superscript = true; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Create instance by adding text part to the shape Dim textPart As ITextPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart") 'Create font instance for text part Dim font As IFont = textPart.Font 'Set the superscript font.Superscript = True 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the name of the font. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Create instance by adding text part to the shape ITextPart textPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart"); //Create font instance for text part IFont font = textPart.Font; //Set the font name font.FontName = "Calibri"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Create instance by adding text part to the shape Dim textPart As ITextPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart") 'Create font instance for text part Dim font As IFont = textPart.Font 'Set the font name font.FontName = "Calibri" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the size of the font. ///Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Create instance by adding text part to the shape ITextPart textPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart"); //Create font instance for text part IFont font = textPart.Font; //Set font size of the text font.FontSize = 32; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Create instance by adding text part to the shape Dim textPart As ITextPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart") 'Create font instance for text part Dim font As IFont = textPart.Font 'Set font size of the text font.FontSize = 32 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the strike through type. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Create instance by adding text part to the shape ITextPart textPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart"); //Create font instance for text part IFont font = textPart.Font; //Set strike type for text part font.StrikeType = TextStrikethroughType.None; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Create instance by adding text part to the shape Dim textPart As ITextPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart") 'Create font instance for text part Dim font As IFont = textPart.Font 'Set strike type for text part font.StrikeType = TextStrikethroughType.None 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the underline type. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Create instance by adding text part to the shape ITextPart textPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart"); //Create font instance for text part IFont font = textPart.Font; //Set underline type of font font.Underline = TextUnderlineType.Dash; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Create instance by adding text part to the shape Dim textPart As ITextPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart") 'Create font instance for text part Dim font As IFont = textPart.Font 'Set underline type of font font.Underline = TextUnderlineType.Dash 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the language identifier (locale). The short value that specifies the equivalent locale id. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Create instance by adding text part to the shape ITextPart textPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart"); //Create font instance for text part IFont font = textPart.Font; //Sets a language as "Spanish (Argentina)" for TextPart font.LanguageID = (short) LocaleIDs.es_AR; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Create instance by adding text part to the shape Dim textPart As ITextPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart") 'Create font instance for text part Dim font As IFont = textPart.Font 'Sets a language as "Spanish (Argentina)" for TextPart font.LanguageID = CType(LocaleIDs.es_AR,Short) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the Highlight color of the text. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Create instance by adding text part to the shape ITextPart textPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph, second TextPart"); //Create font instance for text part IFont font = textPart.Font; //Create instance to hold color properties of font IColor color = ColorObject.Yellow; //Set Highlight color for text part font.HighlightColor = color; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Create instance by adding text part to the shape Dim textPart As ITextPart = shape.TextBody.AddParagraph().AddTextPart("First Paragraph") 'Create font instance for text part Dim font As IFont = textPart.Font 'Create instance to hold highlight color properties of font Dim color As IColor = font.HighlightColor 'Set font color for text part color = ColorObject.Yellow 'Save the presentation presentation.Save("Sample.pptx") 'Close the presentation presentation.Close() Represents a list or bullet formatting options. The picture stream. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with the text in the left hand side text box. IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); //Set the list type as Numbered paragraph.ListFormat.Type = ListType.Picture; //Set the image for the list. paragraph.ListFormat.Picture(new MemoryStream(Syncfusion.Drawing.Image.FromFile("Image.gif").ImageData)); // Set the picture size. If 100, here means 100% of its text. Possible values can range from 25 to 400 paragraph.ListFormat.Size = 150; //Set the list level as 1 paragraph.IndentLevelNumber = 1; // Set the hanging value paragraph.FirstLineIndent = -20; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation instance. Dim presentation__1 As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) ' Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) ' Add a new paragraph with the text in the left hand side text box. Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.") 'Set the list type as Numbered paragraph.ListFormat.Type = ListType.Picture 'Set the image for the list. paragraph.ListFormat.Picture(New MemoryStream(Syncfusion.Drawing.Image.FromFile("Image.gif").ImageData)) ' Set the picture size. If 100, here means 100% of its text. Possible values can range from 25 to 400 paragraph.ListFormat.Size = 150 'Set the list level as 1 paragraph.IndentLevelNumber = 1 ' Set the hanging value paragraph.FirstLineIndent = -20 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the Unicode character value that is used for bullets in the specified text. The character. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with the text in the left hand side text box. IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); //Set the list level as 1 paragraph.IndentLevelNumber = 1; // Set the hanging value paragraph.FirstLineIndent = -20; //Create list format instance for the paragraph IListFormat listFormat = paragraph.ListFormat; //Set the type of list listFormat.Type = ListType.Bulleted; //Set the character for bullet listFormat.BulletCharacter = '♠'; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation instance. Dim presentation__1 As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) ' Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) ' Add a new paragraph with the text in the left hand side text box. Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.") 'Set the list level as 1 paragraph.IndentLevelNumber = 1 ' Set the hanging value paragraph.FirstLineIndent = -20 'Create list format instance for the paragraph Dim listFormat As IListFormat = paragraph.ListFormat 'Set the type of list listFormat.Type = ListType.Bulleted 'Set the character for bullet listFormat.BulletCharacter = "♠"C 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() The number style. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with the text in the left hand side text box. IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); //Set the list level as 1 paragraph.IndentLevelNumber = 1; // Set the hanging value paragraph.FirstLineIndent = -20; //Create instance for list format IListFormat listFormat = paragraph.ListFormat; //Set the list type as Numbered listFormat.Type = ListType.Numbered; //Set the numbered style (list numbering) as Arabic number following by period. listFormat.NumberStyle = NumberedListStyle.ArabicPeriod; //Set the starting value as 1 listFormat.StartValue = 1; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation instance. Dim presentation__1 As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) ' Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) ' Add a new paragraph with the text in the left hand side text box. Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.") 'Set the list level as 1 paragraph.IndentLevelNumber = 1 ' Set the hanging value paragraph.FirstLineIndent = -20 'Create instance for list format Dim listFormat As IListFormat = paragraph.ListFormat 'Set the list type as Numbered listFormat.Type = ListType.Numbered 'Set the numbered style (list numbering) as Arabic number following by period. listFormat.NumberStyle = NumberedListStyle.ArabicPeriod 'Set the starting value as 1 listFormat.StartValue = 1 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() The start value. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with the text in the left hand side text box. IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); //Set the list level as 1 paragraph.IndentLevelNumber = 1; // Set the hanging value paragraph.FirstLineIndent = -20; //Create instance for list format IListFormat listFormat = paragraph.ListFormat; //Set the list type as Numbered listFormat.Type = ListType.Numbered; //Set the numbered style (list numbering) as Arabic number following by period. listFormat.NumberStyle = NumberedListStyle.ArabicPeriod; //Set the starting value as 10 listFormat.StartValue = 10; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation instance. Dim presentation__1 As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) ' Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) ' Add a new paragraph with the text in the left hand side text box. Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.") 'Set the list level as 1 paragraph.IndentLevelNumber = 1 ' Set the hanging value paragraph.FirstLineIndent = -20 'Create instance for list format Dim listFormat As IListFormat = paragraph.ListFormat 'Set the list type as Numbered listFormat.Type = ListType.Numbered 'Set the numbered style (list numbering) as Arabic number following by period. listFormat.NumberStyle = NumberedListStyle.ArabicPeriod 'Set the starting value as 10 listFormat.StartValue = 10 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the . The type. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); //Add another paragraph to the text body IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Reynold Xin, PhD student at UC Berkeley AMPLab"); //Set the list level as 1 paragraph.IndentLevelNumber = 1; // Set the hanging value paragraph.FirstLineIndent = -25; //Retrieve the list format of paragraph IListFormat listFormat = paragraph.ListFormat; //Set the list type as Numbered listFormat.Type = ListType.Numbered; //Set the numbered style (list numbering) as Arabic number following by period. listFormat.NumberStyle = NumberedListStyle.ArabicPeriod; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation instance. Dim presentation__1 As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) ' Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) 'Add another paragraph to the text body Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Reynold Xin, PhD student at UC Berkeley AMPLab") 'Set the list level as 1 paragraph.IndentLevelNumber = 1 ' Set the hanging value paragraph.FirstLineIndent = -25 'Retrieve the list format of paragraph Dim listFormat As IListFormat = paragraph.ListFormat 'Set the list type as Numbered listFormat.Type = ListType.Numbered 'Set the numbered style (list numbering) as Arabic number following by period. listFormat.NumberStyle = NumberedListStyle.ArabicPeriod 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the list size relative to the size of the first text character in the paragraph. The size. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with the text in the left hand side text box. IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); //Set the list level as 1 paragraph.IndentLevelNumber = 1; // Set the hanging value paragraph.FirstLineIndent = -20; //Create instance for list format IListFormat listFormat = paragraph.ListFormat; //Set the list type as Numbered listFormat.Type = ListType.Numbered; //Set the numbered style (list numbering) as Arabic number following by period. listFormat.NumberStyle = NumberedListStyle.ArabicPeriod; //Set the starting value as 1 listFormat.StartValue = 1; // Set the bullet character size. If 100, here means 100% of its text. Possible values can range from 25 to 400 listFormat.Size = 100; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation instance. Dim presentation__1 As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) ' Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) ' Add a new paragraph with the text in the left hand side text box. Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.") 'Set the list level as 1 paragraph.IndentLevelNumber = 1 ' Set the hanging value paragraph.FirstLineIndent = -20 'Create instance for list format Dim listFormat As IListFormat = paragraph.ListFormat 'Set the list type as Numbered listFormat.Type = ListType.Numbered 'Set the numbered style (list numbering) as Arabic number following by period. listFormat.NumberStyle = NumberedListStyle.ArabicPeriod 'Set the starting value as 1 listFormat.StartValue = 1 ' Set the bullet character size. If 100, here means 100% of its text. Possible values can range from 25 to 400 listFormat.Size = 100 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the font name for the list. The name of the font. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); //Add another paragraph to the text body IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Reynold Xin, PhD student at UC Berkeley AMPLab"); //Set the list level as 1 paragraph.IndentLevelNumber = 1; // Set the hanging value paragraph.FirstLineIndent = -20; //Create list format instance for the paragraph IListFormat listFormat = paragraph.ListFormat; //Set the type of list listFormat.Type = ListType.Bulleted; //Set font name for the bullet listFormat.FontName = "Helvetica"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation instance. Dim presentation__1 As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) ' Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) 'Add another paragraph to the text body Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Reynold Xin, PhD student at UC Berkeley AMPLab") 'Set the list level as 1 paragraph.IndentLevelNumber = 1 ' Set the hanging value paragraph.FirstLineIndent = -20 'Create list format instance for the paragraph Dim listFormat As IListFormat = paragraph.ListFormat 'Set the type of list listFormat.Type = ListType.Bulleted 'Set font name for the bullet listFormat.FontName = "Helvetica" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the color of instance. The color. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); //Add another paragraph to the text body IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Reynold Xin, PhD student at UC Berkeley AMPLab"); //Set the list level as 1 paragraph.IndentLevelNumber = 1; // Set the hanging value paragraph.FirstLineIndent = -20; //Create list format instance for the paragraph IListFormat listFormat = paragraph.ListFormat; //Set the type of list listFormat.Type = ListType.Bulleted; //Set the character for bullet listFormat.BulletCharacter = '♠'; //Set the color of the bullet listFormat.Color = ColorObject.FromArgb(23, 12, 234); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation instance. Dim presentation__1 As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) ' Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) 'Add another paragraph to the text body Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Reynold Xin, PhD student at UC Berkeley AMPLab") 'Set the list level as 1 paragraph.IndentLevelNumber = 1 ' Set the hanging value paragraph.FirstLineIndent = -20 'Create list format instance for the paragraph Dim listFormat As IListFormat = paragraph.ListFormat 'Set the type of list listFormat.Type = ListType.Bulleted 'Set the character for bullet listFormat.BulletCharacter = "♠"C 'Set the color of the bullet listFormat.Color = ColorObject.FromArgb(23, 12, 234) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represents a paragraph in the shape. Adds a text part to the text part collection. Returns an instance this method creates. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //Add first paragraph to the text body IParagraph paragraph = shape.TextBody.AddParagraph(); //Create instance for text part ITextPart textPart = paragraph.AddTextPart(); //Set text for the text part textPart.Text = " First Paragraph, second Textpart"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'Create instance for text part Dim text part As ITextPart = paragraph.AddTextPart() 'Set text for the text part text part.Text = " First Paragraph, second Textpart" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Adds a text part to the text part collection with the specified text. The text content to initialize the new instance. Returns an instance this method creates. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //Add first paragraph to the text body IParagraph paragraph = shape.TextBody.AddParagraph(); //Add first text part to the paragraph paragraph.AddTextPart("First Paragraph, First Textpart"); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'Add first paragraph to the text body Dim paragraph As IParagraph = shape.TextBody.AddParagraph() 'Add first text part to the paragraph paragraph.AddTextPart("First Paragraph, First Textpart") 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Creates an independent copy of instance. Returns the cloned paragraph instance. /// //Open an existing presentation. IPresentation presentation = Presentation.Open("Presentation.pptx"); //Retrieve the slide instance. ISlide slide = presentation.Slides[0]; //Add a new text box to the slide. IShape textboxShape = slide.AddTextBox(0, 0, 250, 250); //Add a paragraph with text content to the shape. IParagraph paragraph = textboxShape.TextBody.AddParagraph("Hello Presentation"); //Create a cloned copy of paragraph. IParagraph clonedParagraph = paragraph.Clone(); clonedParagraph.TextParts[0].Text = "Replaced text"; //Save the presentation to the file system. presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Open an existing presentation. Dim presentation__1 As IPresentation = Presentation.Open("Presentation.pptx") 'Retrieve the slide instance. Dim slide As ISlide = presentation__1.Slides(0) 'Add a new text box to the cloned slide. Dim textboxShape As IShape = slide.AddTextBox(0, 0, 250, 250) 'Add a paragraph with text content to the shape. Dim paragraph As IParagraph = textboxShape.TextBody.AddParagraph("Hello Presentation") 'Create a cloned copy of paragraph. Dim clonedParagraph As IParagraph = paragraph.Clone(); clonedParagraph.TextParts[0].Text = "Replaced Text"; 'Add the slide to the presentation. presentation__1.Slides.Add(slideClone) 'Save the presentation to the file system. presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Adds the hyperlink to the textpart with the specified link. The text content to initialize the new instance. Represents the address of the target document path or web url. Returns an instance. //Create a new presentation. IPresentation ppDoc = Presentation.Create(); //Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Add paragraph into the shape IParagraph paragraph = shape.TextBody.AddParagraph(); //Add hyperlink to the TextPart and screen tip to the hyperlink. IHyperLink hyperLink = paragraph.AddHyperlink("Google", "https://www.google.com"); hyperLink.ScreenTip = "This hyperlink navigates to Google site"; //Save the presentation ppDoc.Save("Sample.pptx"); //Close the presentation ppDoc.Close(); /// 'Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide into the presentation Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Adds paragraph into the shape Dim paragraph As IParagraph = shape.TextBody.AddParagraph() 'Add hyperlink to the TextPart and screen tip to the hyperlink. Dim hyperLink As IHyperLink = paragraph.AddHyperlink("Google", "https://www.google.com") hyperLink.ScreenTip = "This hyperlink navigates to Google site" 'Saves the Presentation. ppDoc.Save("Sample.pptx") 'Close the presentation. ppDoc.Close() Gets an instance that represents the list formatting for the specified paragraph. Read-only. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with the text in the left hand side text box. IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); //Get the list format of paragraph, read only IListFormat listFormat = paragraph.ListFormat; //Set the list type listFormat.Type = ListType.Bulleted; //Set the character for bullet listFormat.BulletCharacter = '♠'; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation instance. Dim presentation__1 As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) ' Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) ' Add a new paragraph with the text in the left hand side text box. Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.") 'Get the list format of paragraph, read only Dim listFormat As IListFormat = paragraph.ListFormat 'Set the list type listFormat.Type = ListType.Bulleted 'Set the character for bullet listFormat.BulletCharacter = "♠"C 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the text content of the paragraph. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //Add first paragraph to the text body IParagraph paragraph = shape.TextBody.AddParagraph(); //Add first text part to the paragraph paragraph.AddTextPart("First Paragraph, First Textpart"); //Add text part to the paragraph ITextPart textPart = paragraph.AddTextPart(); //Set text for the text part textPart.Text = " First Paragraph, second Textpart"; //Get the paragraph text, it is read only string entireText = paragraph.Text; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'Add first paragraph to the text body Dim paragraph As IParagraph = shape.TextBody.AddParagraph() 'Add first text part to the paragraph paragraph.AddTextPart("First Paragraph, First Textpart") 'Add text part to the paragraph Dim text part As ITextPart = paragraph.AddTextPart() 'Set text for the text part text part.Text = " First Paragraph, second Textpart" 'Get the paragraph text, it is read only Dim entireText As String = paragraph.Text 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the horizontal alignment of the paragraph. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with the text in the left hand side text box. IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); //Set the horizontal alignment paragraph.HorizontalAlignment = HorizontalAlignmentType.Justify; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation instance. Dim presentation__1 As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) ' Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) ' Add a new paragraph with the text in the left hand side text box. Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.") 'Set the horizontal alignment paragraph.HorizontalAlignment = HorizontalAlignmentType.Justify 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the text part collection of instance. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //Add first paragraph to the text body IParagraph paragraph = shape.TextBody.AddParagraph(); //Add first text part to the paragraph paragraph.AddTextPart("First Paragraph, First Textpart"); //Create instance for text part ITextPart textPart = paragraph.AddTextPart(); //Set text for the text part textPart.Text = " First Paragraph, second Textpart"; //Get the collection of text part in a paragraph, it is read only ITextParts textParts = paragraph.TextParts; //Set the first text part with bold style textParts[0].Font.Bold = true; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'Add first paragraph to the text body Dim paragraph As IParagraph = shape.TextBody.AddParagraph() 'Add first text part to the paragraph paragraph.AddTextPart("First Paragraph, First Textpart") 'Create instance for text part Dim text part As ITextPart = paragraph.AddTextPart() 'Set text for the text part text part.Text = " First Paragraph, second Textpart" 'Get the collection of text part in a paragraph, it is read only Dim text parts As ITextParts = paragraph.TextParts 'Set the first text part with bold style text parts(0).Font.Bold = True 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets an instance of the paragraph. Read-only. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with the text in the left hand side text box. IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); //Retrieve the paragraph font IFont font = paragraph.Font; //Set the font size font.FontSize = 26; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation instance. Dim presentation__1 As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) ' Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) ' Add a new paragraph with the text in the left hand side text box. Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.") 'Retrieve the paragraph font Dim font As IFont = paragraph.Font 'Set the font size font.FontSize = 26 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the first line indent of the paragraph, in points. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with the text in the left hand side text box. IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); // Set the hanging value paragraph.FirstLineIndent = 20; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation instance. Dim presentation__1 As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) ' Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) ' Add a new paragraph with the text in the left hand side text box. Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.") ' Set the hanging value paragraph.FirstLineIndent = 20 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the left indent of the paragraph, in points. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //Add first paragraph to the text body IParagraph paragraph = shape.TextBody.AddParagraph(); //Add first text part to the paragraph paragraph.AddTextPart("First Paragraph, First Textpart"); //Set the left indent paragraph.LeftIndent = 20; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'Add first paragraph to the text body Dim paragraph As IParagraph = shape.TextBody.AddParagraph() 'Add first text part to the paragraph paragraph.AddTextPart("First Paragraph, First Textpart") 'Set the left indent paragraph.LeftIndent = 20 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the indent level as an integer from 0 to 8, where 0 indicates a first-level paragraph with no indentation. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //Add first paragraph to the text body IParagraph paragraph = shape.TextBody.AddParagraph(); //Add first text part to the paragraph paragraph.AddTextPart("First Paragraph, First Textpart"); //Create instance for text part ITextPart textPart = paragraph.AddTextPart(); //Set text for the text part textPart.Text = " First Paragraph, second Textpart"; //Set the list level as 1 paragraph.IndentLevelNumber = 1; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'Add first paragraph to the text body Dim paragraph As IParagraph = shape.TextBody.AddParagraph() 'Add first text part to the paragraph paragraph.AddTextPart("First Paragraph, First Textpart") 'Create instance for text part Dim text part As ITextPart = paragraph.AddTextPart() 'Set text for the text part text part.Text = " First Paragraph, second Textpart" 'Set the list level as 1 paragraph.IndentLevelNumber = 1 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the line spacing, in points. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //Add first paragraph to the text body IParagraph paragraph = shape.TextBody.AddParagraph(); //Add first text part to the paragraph paragraph.AddTextPart("First Paragraph, First Textpart"); //Set line spacing for paragraph paragraph.LineSpacing = 20; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'Add first paragraph to the text body Dim paragraph As IParagraph = shape.TextBody.AddParagraph() 'Add first text part to the paragraph paragraph.AddTextPart("First Paragraph, First Textpart") 'Set line spacing for paragraph paragraph.LineSpacing = 20 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the amount of space after the last line in each paragraph of the specified text, in points. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with the text in the left hand side text box. IParagraph paragraph1 = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); //Add another paragraph. IParagraph paragraph2 = textBoxShape.TextBody.AddParagraph("Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."); //Set space after paragraph1.SpaceAfter = 30; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation instance. Dim presentation__1 As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) ' Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) ' Add a new paragraph with the text in the left hand side text box. Dim paragraph1 As IParagraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.") 'Add another paragraph. Dim paragraph2 As IParagraph = textBoxShape.TextBody.AddParagraph("Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.") 'Set space after paragraph1.SpaceAfter = 30 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the amount of space before the first line in each paragraph of the specified text, in points. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with the text in the left hand side text box. IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); //Set space before paragraph.SpaceBefore = 10; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation instance. Dim presentation__1 As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) ' Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) ' Add a new paragraph with the text in the left hand side text box. Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.") 'Set space before paragraph.SpaceBefore = 10 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represents a collection of instance in a . Adds a paragraph at the end of the paragraph collection. Returns an instance. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //Create instance to hold paragraph collection IParagraphs paragraphs = shape.TextBody.Paragraphs; //Add paragraph to collection; in turn add text part paragraphs.Add().TextParts.Add("Lorem ipsum dolor sit amet"); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'Create instance to hold paragraph collection Dim paragraphs As IParagraphs = shape.TextBody.Paragraphs 'Add paragraph to collection; in turn add text part paragraphs.Add().TextParts.Add("Lorem ipsum dolor sit amet") 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Adds a paragraph with the specified text, at the end of the paragraph collection. Specifies the text content to add. Returns an instance this method creates. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //Create instance to hold paragraph collection IParagraphs paragraphs = shape.TextBody.Paragraphs; //Add paragraph to collection IParagraph paragraph = paragraphs.Add("Lorem ipsum dolor sit amet, consectetur adipiscing elit"); //Retrieve the paragraph font IFont font = paragraph.Font; //Set the font size font.FontSize = 26; //Set the horizontal alignment paragraph.HorizontalAlignment = HorizontalAlignmentType.Justify; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'Add paragraph to collection Dim paragraph As IParagraph = paragraphs.Add("Lorem ipsum dolor sit amet, consectetur adipiscing elit") 'Retrieve the paragraph font Dim font As IFont = paragraph.Font 'Set the font size font.FontSize = 26 'Set the horizontal alignment paragraph.HorizontalAlignment = HorizontalAlignmentType.Justify 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Inserts a specific paragraph at the specific location of the paragraph collection. Returns an instance this method creates. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph IParagraph paragraph1 = textBody.AddParagraph(); //Add first text part to the paragraph textBody.Paragraphs[0].AddTextPart("Add First Paragraph"); //Add second paragraph IParagraph paragraph2 = textBody.AddParagraph(); //Add first text part to the paragraph textBody.Paragraphs[1].AddTextPart("Add Second Paragraph"); //Add second paragraph textBody.Paragraphs.Insert(0, textBody.Paragraphs[1]); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph Dim paragraph1 As IParagraph = textBody.AddParagraph() 'Add first text part to the paragraph textBody.Paragraphs(0).AddTextPart("Add First Paragraph") 'Add second paragraph Dim paragraph2 As IParagraph = textBody.AddParagraph() 'Add first text part to the paragraph textBody.Paragraphs(1).AddTextPart("Add Second Paragraph") 'Add second paragraph textBody.Paragraphs.Insert(0, paragraph2) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the first occurrence of a specified instance from the paragraph collection. The paragraph instance to be removed from the collection. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //Create instance to hold paragraph collection IParagraphs paragraphs = shape.TextBody.Paragraphs; //Add paragraph to collection; in turn add text part paragraphs.Add().TextParts.Add("Lorem ipsum dolor sit amet"); //Add paragraph to collection IParagraph paragraph = paragraphs.Add(", consectetur adipiscing elit"); //Remove a specific paragraph instance paragraphs.Remove(paragraph); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'Create instance to hold paragraph collection Dim paragraphs As IParagraphs = shape.TextBody.Paragraphs 'Add paragraph to collection; in turn add text part paragraphs.Add().TextParts.Add("Lorem ipsum dolor sit amet") 'Add paragraph to collection Dim paragraph As IParagraph = paragraphs.Add(", consectetur adipiscing elit") 'Remove a specific paragraph instance paragraphs.Remove(paragraph) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the instance at the specified index of the paragraph collection. The zero-based index of the element to be removed. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //Create instance to hold paragraph collection IParagraphs paragraphs = shape.TextBody.Paragraphs; //Add paragraph to collection; in turn add text part paragraphs.Add().TextParts.Add("Lorem ipsum dolor sit amet"); //Add paragraph to collection IParagraph paragraph = paragraphs.Add(", consectetur adipiscing elit"); //Remove paragraph at specific index paragraphs.RemoveAt(0); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'Create instance to hold paragraph collection Dim paragraphs As IParagraphs = shape.TextBody.Paragraphs 'Add paragraph to collection; in turn add text part paragraphs.Add().TextParts.Add("Lorem ipsum dolor sit amet") 'Add paragraph to collection Dim paragraph As IParagraph = paragraphs.Add(", consectetur adipiscing elit") 'Remove paragraph at specific index paragraphs.RemoveAt(0) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Returns the zero-based index of the first occurrence of the instance within the collection. The IParagraph instance to locate in the collection. Returns the zero-based index of the first occurrence of the paragraph within the collection, if found; otherwise, –1. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //Create instance to hold paragraph collection IParagraphs paragraphs = shape.TextBody.Paragraphs; //Add paragraph to collection; in turn add text part paragraphs.Add().TextParts.Add("Lorem ipsum dolor sit amet"); //Create instance for paragraph IParagraph paragraph = paragraphs.Add(", consectetur adipiscing elit"); //Get the index of specific paragraph instance int index = paragraphs.IndexOf(paragraph); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'Create instance to hold paragraph collection Dim paragraphs As IParagraphs = shape.TextBody.Paragraphs 'Add paragraph to collection; in turn add text part paragraphs.Add().TextParts.Add("Lorem ipsum dolor sit amet") 'Create instance for paragraph Dim paragraph As IParagraph = paragraphs.Add(", consectetur adipiscing elit") 'Get the index of specific paragraph instance Dim index As Integer = paragraphs.IndexOf(paragraph) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes all the elements from paragraph collection. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //Create instance to hold paragraph collection IParagraphs paragraphs = shape.TextBody.Paragraphs; //Add paragraph to collection; in turn add text part paragraphs.Add().TextParts.Add("Lorem ipsum dolor sit amet"); //Add paragraph to paragraphs paragraphs.Add("sed do eiusmod tempor incididunt"); paragraphs.Add("ut labore et dolore magna aliqua."); //Clear the paragraph collection paragraphs.Clear(); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'Create instance to hold paragraph collection Dim paragraphs As IParagraphs = shape.TextBody.Paragraphs 'Add paragraph to collection; in turn add text part paragraphs.Add().TextParts.Add("Lorem ipsum dolor sit amet") 'Add paragraph to paragraphs paragraphs.Add("sed do eiusmod tempor incididunt") paragraphs.Add("ut labore et dolore magna aliqua.") 'Clear the paragraph collection paragraphs.Clear() 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the number of elements in the paragraph collection. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //Create instance to hold paragraph collection IParagraphs paragraphs = shape.TextBody.Paragraphs; //Add paragraph to collection; in turn add text part paragraphs.Add().TextParts.Add("Lorem ipsum dolor sit amet"); //Create instance for paragraph IParagraph paragraph = paragraphs.Add(", consectetur adipiscing elit"); //Get the paragraphs count, read only int count = paragraphs.Count; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'Create instance to hold paragraph collection Dim paragraphs As IParagraphs = shape.TextBody.Paragraphs 'Add paragraph to collection; in turn add text part paragraphs.Add().TextParts.Add("Lorem ipsum dolor sit amet") 'Create instance for paragraph Dim paragraph As IParagraph = paragraphs.Add(", consectetur adipiscing elit") 'Get the paragraphs count, read only Dim count As Integer = paragraphs.Count 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets a instance at the specified index from the collection. Read-only. Determines the index of the text part. Returns an instance. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //Create instance to hold paragraph collection IParagraphs paragraphs = shape.TextBody.Paragraphs; //Add paragraph to collection; in turn add text part paragraphs.Add().TextParts.Add("Lorem ipsum dolor sit amet"); //Create instance for paragraph IParagraph paragraph = paragraphs.Add(", consectetur adipiscing elit"); //Get the specific paragraph instance, read only IParagraph paragraph1 = paragraphs[0]; // Set the hanging value paragraph1.FirstLineIndent = 20; //Set the list level as 1 paragraph1.IndentLevelNumber = 1; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'Create instance to hold paragraph collection Dim paragraphs As IParagraphs = shape.TextBody.Paragraphs 'Add paragraph to collection; in turn add text part paragraphs.Add().TextParts.Add("Lorem ipsum dolor sit amet") 'Create instance for paragraph Dim paragraph As IParagraph = paragraphs.Add(", consectetur adipiscing elit") 'Get the specific paragraph instance, read only Dim paragraph1 As IParagraph = paragraphs(0) ' Set the hanging value paragraph1.FirstLineIndent = 20 'Set the list level as 1 paragraph1.IndentLevelNumber = 1 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represents the alignment and anchoring of the text. Adds a paragraph at the end of the paragraph collection. Returns an instance this method creates. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph IParagraph paragraph1 = textBody.AddParagraph(); //Add first text part to the paragraph textBody.Paragraphs[0].AddTextPart("Add First Paragraph"); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph Dim paragraph1 As IParagraph = textBody.AddParagraph() 'Add first text part to the paragraph textBody.Paragraphs(0).AddTextPart("Add First Paragraph") 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Adds a paragraph at the end of the collection. Represents the text content. Returns an instance this method creates. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph IParagraph paragraph1 = textBody.AddParagraph("Add First Paragraph"); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph Dim paragraph1 As IParagraph = textBody.AddParagraph("Add First Paragraph") 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the distance between the bottom of the text body and the bottom of the rectangle shape that contains the text, in points. Value ranges from 1 to 1583. The margin bottom of the TextBody. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph IParagraph paragraph1 = textBody.AddParagraph(); //Add first text part to the paragraph textBody.Paragraphs[0].AddTextPart("Add First Paragraph"); //Set the Margin bottom textBody.MarginBottom = 100; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph Dim paragraph1 As IParagraph = textBody.AddParagraph() 'Add first text part to the paragraph textBody.Paragraphs(0).AddTextPart("Add First Paragraph") 'Set the Margin bottom textBody.MarginBottom = 100 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the distance between the left edge of the text body and the left edge of the rectangle shape that contains the text, in points. Value ranges from 1 to 1583. The margin left of the TextBody. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph IParagraph paragraph1 = textBody.AddParagraph(); //Add first text part to the paragraph textBody.Paragraphs[0].AddTextPart("Add First Paragraph"); //Set the Margin left textBody.MarginLeft = 150; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph Dim paragraph1 As IParagraph = textBody.AddParagraph() 'Add first text part to the paragraph textBody.Paragraphs(0).AddTextPart("Add First Paragraph") 'Set the Margin left textBody.MarginLeft = 130 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the distance between the right edge of the text body and the right edge of the rectangle shape that contains the text, in points. Value ranges from 1 to 1583. The margin right of the TextBody. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph IParagraph paragraph1 = textBody.AddParagraph(); //Add first text part to the paragraph textBody.Paragraphs[0].AddTextPart("Add First Paragraph"); //Set the Margin right textBody.MarginRight = 50; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph Dim paragraph1 As IParagraph = textBody.AddParagraph() 'Add first text part to the paragraph textBody.Paragraphs(0).AddTextPart("Add First Paragraph") 'Set the Margin right textBody.MarginRight = 160 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the distance between the top of the text body and the top of the rectangle shape that contains the text, in points. Value ranges from 1 to 1583. The margin top of the TextBody. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph IParagraph paragraph1 = textBody.AddParagraph(); //Add first text part to the paragraph textBody.Paragraphs[0].AddTextPart("Add First Paragraph"); //Set the Margin top textBody.MarginTop = 140; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph Dim paragraph1 As IParagraph = textBody.AddParagraph() 'Add first text part to the paragraph textBody.Paragraphs(0).AddTextPart("Add First Paragraph") 'Set the Margin Top textBody.MarginTop = 200 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets an instance that represents the paragraph collection. Read-only. The paragraphs object of the TextBody. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph IParagraph paragraph1 = textBody.AddParagraph(); //Add first text part to the paragraph textBody.Paragraphs[0].AddTextPart("Add First Paragraph"); //Retrieve the paragraph from text body IParagraph paragraph = textBody.Paragraphs[0]; //Add second text part to the first paragraph paragraph.AddTextPart().Text = ",2nd text part in 1st paragraph"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph Dim paragraph1 As IParagraph = textBody.AddParagraph() 'Add first text part to the paragraph textBody.Paragraphs(0).AddTextPart("Add First Paragraph") 'Retrieve the paragraph from text body Dim paragraph As IParagraph = textBody.Paragraphs(0) 'Add second text part to the first paragraph paragraph.AddTextPart().Text = ",2nd text part in 1st paragraph" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the text content of the text body. The text of the TextBody. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph IParagraph paragraph1 = textBody.AddParagraph(); //Add first text part to the paragraph textBody.Paragraphs[0].AddTextPart("Add First Paragraph"); //Get the text of text body, read only string text = textBody.Text; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph Dim paragraph1 As IParagraph = textBody.AddParagraph() 'Add first text part to the paragraph textBody.Paragraphs(0).AddTextPart("Add First Paragraph") 'Get the text of text body, read only Dim text As String = textBody.Text 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets a boolean value indicates whether lines break automatically to fit inside the shape. true if [wrap text]; otherwise, false. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph IParagraph paragraph1 = textBody.AddParagraph(); //Add first text part to the paragraph textBody.Paragraphs[0].AddTextPart("Add First Paragraph"); //Retrieve the paragraph from text body IParagraph paragraph = textBody.Paragraphs[0]; //Add second text part to the first paragraph paragraph.AddTextPart().Text = ",2nd text part in 1st paragraph"; //Set wrap text to fit the text within shape textBody.WrapText = true; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph Dim paragraph1 As IParagraph = textBody.AddParagraph() 'Add first text part to the paragraph textBody.Paragraphs(0).AddTextPart("Add First Paragraph") 'Retrieve the paragraph from text body Dim paragraph As IParagraph = textBody.Paragraphs(0) 'Add second text part to the first paragraph paragraph.AddTextPart().Text = ",2nd text part in 1st paragraph" 'Set wrap text to fit the text within shape textBody.WrapText = True 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the vertical alignment of text in a text body. The vertical alignment type of the TextBody. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph IParagraph paragraph1 = textBody.AddParagraph(); //Add first text part to the paragraph textBody.Paragraphs[0].AddTextPart("Add First Paragraph"); //Retrieve the paragraph from text body IParagraph paragraph = textBody.Paragraphs[0]; //Add second text part to the first paragraph paragraph.AddTextPart().Text = ",2nd text part in 1st paragraph"; //Set vertical alignment textBody.VerticalAlignment = VerticalAlignmentType.Middle; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph Dim paragraph1 As IParagraph = textBody.AddParagraph() 'Add first text part to the paragraph textBody.Paragraphs(0).AddTextPart("Add First Paragraph") 'Retrieve the paragraph from text body Dim paragraph As IParagraph = textBody.Paragraphs(0) 'Add second text part to the first paragraph paragraph.AddTextPart().Text = ",2nd text part in 1st paragraph" 'Set vertical alignment textBody.VerticalAlignment = VerticalAlignmentType.Middle 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets a boolean value indicates whether to anchor center with the vertical alignment. true if [anchor center]; otherwise, false. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph IParagraph paragraph1 = textBody.AddParagraph(); //Add first text part to the paragraph textBody.Paragraphs[0].AddTextPart("Add First Paragraph"); //Set anchor center to the textBody textBody.AnchorCenter = true; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph Dim paragraph1 As IParagraph = textBody.AddParagraph() 'Add first text part to the paragraph textBody.Paragraphs(0).AddTextPart("Add First Paragraph") 'Set anchor center to the textBody textBody.AnchorCenter = True 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the text direction. The text direction type of the TextBody. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 350); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph IParagraph paragraph1 = textBody.AddParagraph(); //Add first text part to the paragraph textBody.Paragraphs[0].AddTextPart("Add First Paragraph"); //Set the text direction textBody.TextDirection = TextDirectionType.Horizontal; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 350) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph Dim paragraph1 As IParagraph = textBody.AddParagraph() 'Add first text part to the paragraph textBody.Paragraphs(0).AddTextPart("Add First Paragraph") 'Set the text direction textBody.TextDirection = TextDirectionType.Horizontal 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets a boolean value indicates whether to enable shrink text on overflow true if [ShrinkTextOnOverflow]; otherwise, false. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 50); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph IParagraph paragraph1 = textBody.AddParagraph("Hi hello welcome to syncfusion."); //Add second paragraph IParagraph paragraph2 = textBody.AddParagraph("A warm welcome to the syncfusion with greedy hearts."); //Set ShrinkTextOnOverflow to the textBody textBody.FitTextOption = FitTextOption.ShrinkTextOnOverFlow; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 50) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph Dim paragraph1 As IParagraph = textBody.AddParagraph("Hi hello welcome to syncfusion.") 'Add second paragraph Dim paragraph1 As IParagraph = textBody.AddParagraph("A warm welcome to syncfusion with greedy hearts.") 'Set ShrinkTextOnOverflow to the textBody textBody.FitTextOption = FitTextOption.ShrinkTextOnOverFlow; 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represents an individual text part in a paragraph. Sets the hyperlink to the textpart. Represents the address of the target hyperlink Returns an instance. The target can be a document path, web url, target slide, email_id. //Create a new presentation. IPresentation presDoc = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph to text body textBody.AddParagraph(); //Create instance for text part ITextPart textPart = textBody.Paragraphs[0].AddTextPart(); //Set text for the text part textPart.Text = "Syncfusion"; //Set HyperLink for this textpart IHyperLink hyperLink = textPart.SetHyperlink("www.syncfusion.com"); //Save the presentation to the file system. presDoc.Save("Output.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph to text body textBody.AddParagraph() 'Create instance for text part Dim textPart As ITextPart = textBody.Paragraphs(0).AddTextPart() 'Set text for the text part textPart.Text = "Syncfusion" 'Set HyperLink for this textpart Dim hyperLink As IHyperLink = textPart.SetHyperlink("www.syncfusion.com") ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() Removes the hyperlink from the current textpart. //Create a new presentation. IPresentation ppDoc = Presentation.Create(); //Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Adds paragraph into the shape IParagraph paragraph = shape.TextBody.AddParagraph(); //Adds text to the TextPart paragraph.Text = "Google"; //Set hyperlink to the TextPart IHyperLink hyperLink = paragraph.TextParts[0].SetHyperlink("https://www.google.com"); //Set screen tip to the hyperlink hyperLink.ScreenTip = "This hyperlink navigates to Google site"; //Remove the hyperlink. paragraph.TextParts[0].RemoveHyperLink(); //Save the presentation ppDoc.Save("Sample.pptx"); //Close the presentation ppDoc.Close(); 'Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Adds paragraph into the shape Dim paragraph As IParagraph = shape.TextBody.AddParagraph() 'Adds text to the TextPart paragraph.Text = "Google" 'Set hyperlink to the TextPart Dim hyperLink As IHyperLink = paragraph.TextParts(0).SetHyperlink("https://www.google.com") 'Set screen tip to the hyperlink hyperLink.ScreenTip = "This hyperlink navigates to Google site" 'Remove the hyperlink paragraph.TextParts(0).RemoveHyperLink() 'Save the presentation ppDoc.Save("Sample.pptx") 'Close the presentation ppDoc.Close() Gets an instance of the text part. Read-only. The font of the TextPart. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph to text body textBody.AddParagraph(); //Create instance for text part ITextPart textPart = textBody.Paragraphs[0].AddTextPart("FirstParagraph, first TextPart"); //Create instance to hold font properties of text part IFont font = textPart.Font; //Set the bold style font.Bold = true; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph to text body textBody.AddParagraph() 'Create instance for text part Dim textPart As ITextPart = textBody.Paragraphs(0).AddTextPart("FirstParagraph, first TextPart") 'Create instance to hold font properties of text part Dim font As IFont = textPart.Font 'Set the bold style font.Bold = True 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the text content. The text value of the TextPart. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph to text body textBody.AddParagraph(); //Create instance for text part ITextPart textPart = textBody.Paragraphs[0].AddTextPart(); //Set text for the text part textPart.Text = "FirstParagraph, first TextPart"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph to text body textBody.AddParagraph() 'Create instance for text part Dim textPart As ITextPart = textBody.Paragraphs(0).AddTextPart() 'Set text for the text part textPart.Text = "FirstParagraph, first TextPart" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the underline color for the text. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //create instance for text body from shape ITextBody textBody = shape.TextBody; //Add first paragraph to text body textBody.AddParagraph(); //Create instance for text part ITextPart textPart = textBody.Paragraphs[0].AddTextPart(); //Set text for the text part textPart.Text = "FirstParagraph, first TextPart"; IColor underlineColor = textPart.UnderlineColor; //Set the text part underline color underlineColor = ColorObject.Navy; //Set underline type for text part textPart.Font.Underline = TextUnderlineType.Double; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'create instance for text body from shape Dim textBody As ITextBody = shape.TextBody 'Add first paragraph to text body textBody.AddParagraph() 'Create instance for text part Dim textPart As ITextPart = textBody.Paragraphs(0).AddTextPart() 'Set text for the text part textPart.Text = "FirstParagraph, first TextPart" Dim underlineColor As IColor = textPart.UnderlineColor 'Set the text part underline color underlineColor = ColorObject.Navy 'Set underline type for text part textPart.Font.Underline = TextUnderlineType.[Double] 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Returns an instance that represents the hyperlink for the specified textpart. Read-only. //Create a new presentation. IPresentation ppDoc = Presentation.Create(); //Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); //Add a rectangle to the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100); //Adds paragraph into the shape IParagraph paragraph = shape.TextBody.AddParagraph(); //Adds text to the TextPart paragraph.Text = "Google"; //Set hyperlink to the TextPart IHyperLink hyperLink = paragraph.TextParts[0].SetHyperlink("https://www.google.com"); //Set screen tip to the hyperlink hyperLink.ScreenTip = "This hyperlink navigates to Google site"; //Remove the hyperlink. paragraph.TextParts[0].RemoveHyperLink(); //Save the presentation ppDoc.Save("Sample.pptx"); //Close the presentation ppDoc.Close(); 'Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add a rectangle to the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 100, 100, 100, 100) 'Adds paragraph into the shape Dim paragraph As IParagraph = shape.TextBody.AddParagraph() 'Adds text to the TextPart paragraph.Text = "Google" 'Set hyperlink to the TextPart Dim hyperLink As IHyperLink = paragraph.TextParts(0).SetHyperlink("https://www.google.com") 'Set screen tip to the hyperlink hyperLink.ScreenTip = "This hyperlink navigates to Google site" 'Save the presentation ppDoc.Save("Sample.pptx") 'Close the presentation ppDoc.Close() Represents a collection of instance in a paragraph. Adds a new instance to the text part collection. Returns the newly created instance. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add paragraph to the shape's text body IParagraph paragraph = shape.TextBody.Paragraphs.Add(); //Retrieve the text parts of a paragraph ITextParts textParts = paragraph.TextParts; //Add a text part to the collection ITextPart textPart = textParts.Add(); //Set text to text part textPart.Text = "Reynold Xin, PhD student at UC Berkeley AMPLab"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add paragraph to the shape's text body Dim paragraph As IParagraph = shape.TextBody.Paragraphs.Add() 'Retrieve the text parts of a paragraph Dim text parts As ITextParts = paragraph.TextParts 'Add a text part to the collection Dim text part As ITextPart = text parts.Add() 'Set text to text part text part.Text = "Reynold Xin, PhD student at UC Berkeley AMPLab" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the first occurrence of a specified instance from the text part collection. Represents the instance to remove. /// /// //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add paragraph to the shape's text body IParagraph paragraph = shape.TextBody.Paragraphs.Add(); //Retrieve the text parts of a paragraph ITextParts textParts = paragraph.TextParts; //Add text part to collection textParts.Add("Reynold Xin, PhD student at UC Berkeley AMPLab"); //Add a text part to the collection ITextPart textPart = textParts.Add(); //Set text to text part textPart.Text = "My Textpart"; //Remove a particular text part from collection textParts.Remove(textPart); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add paragraph to the shape's text body Dim paragraph As IParagraph = shape.TextBody.Paragraphs.Add() 'Retrieve the text parts of a paragraph Dim text parts As ITextParts = paragraph.TextParts 'Add text part to collection text parts.Add("Reynold Xin, PhD student at UC Berkeley AMPLab") 'Add a text part to the collection Dim text part As ITextPart = text parts.Add() 'Set text to text part text part.Text = "My Textpart" 'Remove a particular text part from collection text parts.Remove(text part) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the instance at the specified index of the text part collection. The zero-based index of the text part to be removed. /// //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add paragraph to the shape's text body IParagraph paragraph = shape.TextBody.Paragraphs.Add(); //Retrieve the text parts of a paragraph ITextParts textParts = paragraph.TextParts; //Add text part to collection textParts.Add("Reynold Xin, PhD student at UC Berkeley AMPLab"); //Add a text part to the collection ITextPart textPart = textParts.Add(); //Set text to text part textPart.Text = "My Textpart"; //Remove text part at specific index textParts.RemoveAt(1); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add paragraph to the shape's text body Dim paragraph As IParagraph = shape.TextBody.Paragraphs.Add() 'Retrieve the text parts of a paragraph Dim text parts As ITextParts = paragraph.TextParts 'Add text part to collection text parts.Add("Reynold Xin, PhD student at UC Berkeley AMPLab") 'Add a text part to the collection Dim text part As ITextPart = text parts.Add() 'Set text to text part text part.Text = "My Textpart" 'Remove text part at specific index text parts.RemoveAt(1) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Returns the zero-based index of the first occurrence of the instance within the collection. The instance to locate in the collection. Returns the zero-based index of the first occurrence of instance within the collection, if found; otherwise, –1. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add paragraph to the shape's text body IParagraph paragraph = shape.TextBody.Paragraphs.Add(); //Retrieve the text parts of a paragraph ITextParts textParts = paragraph.TextParts; //Add text part to collection textParts.Add("Reynold Xin, PhD student at UC Berkeley AMPLab"); //Add a text part to the collection ITextPart textPart = textParts.Add(); //Set text to text part textPart.Text = "My Textpart"; //Get the index position of a text part int index = textParts.IndexOf(textPart); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add paragraph to the shape's text body Dim paragraph As IParagraph = shape.TextBody.Paragraphs.Add() 'Retrieve the text parts of a paragraph Dim text parts As ITextParts = paragraph.TextParts 'Add text part to collection text parts.Add("Reynold Xin, PhD student at UC Berkeley AMPLab") 'Add a text part to the collection Dim text part As ITextPart = text parts.Add() 'Set text to text part text part.Text = "My Textpart" 'Get the index position of a text part Dim index As Integer = text parts.IndexOf(text part) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes all the instance from text part collection. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add paragraph to the shape's text body IParagraph paragraph = shape.TextBody.Paragraphs.Add(); //Retrieve the text parts of a paragraph ITextParts textParts = paragraph.TextParts; //Add a text part to the collection ITextPart textPart = textParts.Add("Reynold Xin, PhD student at UC Berkeley AMPLab"); //Clear the text parts textParts.Clear(); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add paragraph to the shape's text body Dim paragraph As IParagraph = shape.TextBody.Paragraphs.Add() 'Retrieve the text parts of a paragraph Dim text parts As ITextParts = paragraph.TextParts 'Add a text part to the collection Dim text part As ITextPart = text parts.Add("Reynold Xin, PhD student at UC Berkeley AMPLab") 'Clear the text parts text parts.Clear() 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Adds a new instance at the end of the text part collection with the specified text. Represents the text content to initialize the text part. Returns the newly added instance. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add paragraph to the shape's text body IParagraph paragraph = shape.TextBody.Paragraphs.Add(); //Retrieve the text parts of a paragraph ITextParts textParts = paragraph.TextParts; //Add a text part to the collection ITextPart textPart = textParts.Add("Reynold Xin, PhD student at UC Berkeley AMPLab"); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add paragraph to the shape's text body Dim paragraph As IParagraph = shape.TextBody.Paragraphs.Add() 'Retrieve the text parts of a paragraph Dim text parts As ITextParts = paragraph.TextParts 'Add a text part to the collection Dim text part As ITextPart = text parts.Add("Reynold Xin, PhD student at UC Berkeley AMPLab") 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Returns a boolean value indicates whether the specified text content is in the text part collection or not. The text to locate in the text part collection. Returns true if text founds in the collection otherwise false //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add paragraph to the shape's text body IParagraph paragraph = shape.TextBody.Paragraphs.Add(); //Retrieve the text parts of a paragraph ITextParts textParts = paragraph.TextParts; //Add text part to collection textParts.Add("Reynold Xin, PhD student at UC Berkeley AMPLab"); //Add a text part to the collection ITextPart textPart = textParts.Add(); //Set text to text part textPart.Text = "My Textpart"; //Check if text exist in the text part collection if (textParts.Contains("My Textpart")) textParts.RemoveAt(1); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add paragraph to the shape's text body Dim paragraph As IParagraph = shape.TextBody.Paragraphs.Add() 'Retrieve the text parts of a paragraph Dim text parts As ITextParts = paragraph.TextParts 'Add text part to collection text parts.Add("Reynold Xin, PhD student at UC Berkeley AMPLab") 'Add a text part to the collection Dim text part As ITextPart = text parts.Add() 'Set text to text part text part.Text = "My Textpart" 'Check if text exist in the text part collection If text parts.Contains("My Textpart") Then text parts.RemoveAt(1) End If 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the number of elements in the text part collection. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add paragraph to the shape's text body IParagraph paragraph = shape.TextBody.Paragraphs.Add(); //Retrieve the text parts of a paragraph ITextParts textParts = paragraph.TextParts; //Add a text part to the collection ITextPart textPart = textParts.Add(); //Set text to text part textPart.Text = "Reynold Xin, PhD student at UC Berkeley AMPLab"; //Add text part to paragraph shape.TextBody.Paragraphs[0].AddTextPart("First Paragraph, second TextPart"); //Get the count of the text parts, read only int count = textParts.Count; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add paragraph to the shape's text body Dim paragraph As IParagraph = shape.TextBody.Paragraphs.Add() 'Retrieve the text parts of a paragraph Dim text parts As ITextParts = paragraph.TextParts 'Add a text part to the collection Dim text part As ITextPart = text parts.Add() 'Set text to text part text part.Text = "Reynold Xin, PhD student at UC Berkeley AMPLab" 'Add text part to paragraph shape.TextBody.Paragraphs(0).AddTextPart("First Paragraph, second TextPart") 'Get the count of the text parts, read only Dim count As Integer = text parts.Count 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets a instance at the specified index of the collection. Read-only. Determines the index of the text part. Returns an instance. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a blank slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a text box to the slide IShape shape = slide.Shapes.AddTextBox(100, 150, 300, 200); //Add paragraph to the shape's text body IParagraph paragraph = shape.TextBody.Paragraphs.Add(); //Retrieve the text parts of a paragraph ITextParts textParts = paragraph.TextParts; //Add a text part to the collection ITextPart textPart = textParts.Add(); //Set text to text part textPart.Text = "Reynold Xin, PhD student at UC Berkeley AMPLab"; //Add text part to paragraph shape.TextBody.Paragraphs[0].AddTextPart(); //Retrieve the text part using index position ITextPart _textPart = textParts[1]; //Set the font name for text part _textPart.Font.FontName = "Calibri"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a blank slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to the slide Dim shape As IShape = slide.Shapes.AddTextBox(100, 150, 300, 200) 'Add paragraph to the shape's text body Dim paragraph As IParagraph = shape.TextBody.Paragraphs.Add() 'Retrieve the text parts of a paragraph Dim text parts As ITextParts = paragraph.TextParts 'Add a text part to the collection Dim text part As ITextPart = text parts.Add() 'Set text to text part text part.Text = "Reynold Xin, PhD student at UC Berkeley AMPLab" 'Add text part to paragraph shape.TextBody.Paragraphs(0).AddTextPart() 'Retrieve the text part using index position Dim _text part As ITextPart = text parts(1) 'Set the font name for text part _text part.Font.FontName = "Calibri" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represent a selection of text inside paragraph. Gets the selected text parts. Array of TextParts //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with a text IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Hello World"); ITextSelection textSelection = presentation.Find("World", false, false); // Gets the found text containing text parts foreach (ITextPart textPart in textSelection.GetTextParts()) { //Sets Bold property textPart.Font.Bold = true; } //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Creates a presentation. Dim presentation As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) 'Add a new paragraph with a text Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Hello World") 'Finds the text from the Presentation document Dim textSelection As ITextSelection = presentation.Find("World", False, False) 'Gets the text parts from the selection For Each textPart As ITextPart In textSelection.GetTextParts() textPart.Font.Bold = True Next presentation.Save("Output.pptx") presentation.Close() Gets as one text part. TextPart //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with a text IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Hello World"); // Finds the text from the mentioned slide ITextSelection[] textSelections = slide.FindAll("World", false, false); foreach (ITextSelection textSelection in textSelections) { //Gets the found text as single text part ITextPart textPart = textSelection.GetAsOneTextPart(); //Replace the text textPart.Text = "Replaced text"; } //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Creates a presentation. Dim presentation As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) 'Add a new paragraph with a text Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Hello World") 'Finds the text from the mentioned slide Dim textSelections As ITextSelection() = slide.FindAll("World", False, False) 'Gets the found text as single text part and replace it For Each textSelection As ITextSelection In textSelections Dim textPart As ITextPart = textSelection.GetAsOneTextPart() textPart.Text = "Replaced text" Next presentation.Save("Output.pptx") presentation.Close() Gets the selected text. Read-only. The string that represents the selected text. string that contains the selected text. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with a text IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Hello World"); // Finds the text from the Presentation document ITextSelection textSelection = presentation.Find("World", false, false); // Gets the selected text from the text selection string text = textSelection.SelectedText; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Creates a presentation. Dim presentation As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) 'Add a new paragraph with a text Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Hello World") 'Finds the text from the Presentation document Dim textSelection As ITextSelection = presentation.Find("World", False, False) 'Gets the selected text from the text selection Dim text As String = textSelection.SelectedText presentation.Save("Output.pptx") presentation.Close() Gets the string at the specified index from the collection. The zero-based index of the string to get. The string at the specified collection. string that contains the selected text from the specified index. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with a text IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Hello World"); // Finds all the text from the Presentation document ITextSelection[] textSelections = presentation.FindAll("World", false, false); string text = textSelections[0].SelectedText; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Creates a presentation. Dim presentation As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) 'Add a new paragraph with a text Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Hello World") 'Finds all the text from the Presentation document Dim textSelections As ITextSelection() = presentation.FindAll("World", False, False) 'Gets the selected text from the text selections index Dim text As String = textSelections(0).SelectedText presentation.Save("Output.pptx") presentation.Close() Gets the number of text chunks in the collection. Read-only. The count. integer value that represents the number of text chunks. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with a text IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Hello World"); ITextSelection textSelection = presentation.Find("World", false, false); int count = textSelection.Count; //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Creates a presentation. Dim presentation As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) 'Add a new paragraph with a text Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Hello World") 'Finds the text from the Presentation document Dim textSelection As ITextSelection = presentation.Find("World", False, False) 'Gets the selected text from the text selections index Dim count As Integer = textSelection.Count presentation.Save("Output.pptx") presentation.Close() Represents the table cell. Creates a copy of the current cell. Returns the cloned cell object //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Gets the first column cell. ICell cell = table.Columns[0].Cells[0]; //Clone the cell element. ICell clonedCell = cell.Clone(); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim pptxDoc As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Gets the first column cell. Dim cell As ICell = table.Columns(0).Cells(0) 'Clone the cell element. Dim clonedCell As ICell = cell.Clone() 'Saves the Presentation. pptxDoc.Save("Sample.pptx") 'Close the presentation. pptxDoc.Close() Gets an instance that represents the borders and diagonal lines of a cell. Read-only. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200); //Get the cell from a row in a table ICell cell = table.Rows[0].Cells[0]; //Get the cell border properties, read only ICellBorders cellBorders = cell.CellBorders; //Set the Cell border property cellBorders.BorderBottom.BeginArrowheadLength = ArrowheadLength.Medium; //Save the presentation presentation.Save("CellBorders.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200) 'Get the cell from a row in a table Dim cell As ICell = table.Rows(0).Cells(0) 'Get the cell border properties, read only Dim cellBorders As ICellBorders = cell.CellBorders 'Set the Cell border property cellBorders.BorderBottom.BeginArrowheadLength = ArrowheadLength.Medium 'Save the presentation presentation__1.Save("CellBorders.pptx") 'Close the presentation presentation__1.Close() Gets or sets the number of cells merged in a row. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200); //Get the cell from a row in a table ICell cell = table.Rows[0].Cells[0]; //Set the column span cell.ColumnSpan = 2; //Save the presentation presentation.Save("ColumnSpan.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200) 'Get the cell from a row in a table Dim cell As ICell = table.Rows(0).Cells(0) 'Set the column span cell.ColumnSpan = 2 'Save the presentation presentation__1.Save("ColumnSpan.pptx") 'Close the presentation presentation__1.Close() Gets or sets the column width in points. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200); //Get the cell from a row in a table ICell cell = table.Rows[0].Cells[0]; //Set the column width cell.ColumnWidth = 40; //Save the presentation presentation.Save("ColumnWidth.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200) 'Get the cell from a row in a table Dim cell As ICell = table.Rows(0).Cells(0) 'Set the column width cell.ColumnWidth = 40 'Save the presentation presentation__1.Save("ColumnWidth.pptx") 'Close the presentation presentation__1.Close() Gets an instance that contains fill formatting options. Read-only. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200); //Get the cell from a row in a table ICell cell = table.Rows[0].Cells[0]; //Set the fill type of the cell as solid cell.Fill.FillType = FillType.Solid; //Set color for the solid fill cell.Fill.SolidFill.Color = ColorObject.FromArgb(10, 34, 89, 32); //Save the presentation presentation.Save("CellFill.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200) 'Get the cell from a row in a table Dim cell As ICell = table.Rows(0).Cells(0) 'Set the fill type of the cell as solid cell.Fill.FillType = FillType.Solid 'Set color for the solid fill cell.Fill.SolidFill.Color = ColorObject.FromArgb(10, 34, 89, 32) 'Save the presentation presentation__1.Save("CellFill.pptx") 'Close the presentation presentation__1.Close() Gets whether this cell is part of a horizontally merged cells. Read-only. true if horizontal merge; otherwise, false. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200); //Get the cell from a row in a table ICell cell = table.Rows[0].Cells[0]; //Set the column span cell.ColumnSpan = 2; //Check if it is horizontal merge, it is read only bool horizontalMerge = cell.IsHorizontalMerge; //Save the presentation presentation.Save("HorizontalMerge.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200) 'Get the cell from a row in a table Dim cell As ICell = table.Rows(0).Cells(0) 'Set the column span cell.ColumnSpan = 2 'Check if it is horizontal merge, it is read only Dim horizontalMerge As Boolean = cell.IsHorizontalMerge 'Save the presentation presentation__1.Save("HorizontalMerge.pptx") 'Close the presentation presentation__1.Close() Gets or sets the number of cells merged in a column. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200); //Get the cell from a row in a table ICell cell = table.Rows[0].Cells[0]; //Set the row span cell.RowSpan = 2; //Save the presentation presentation.Save("RowSpan.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200) 'Get the cell from a row in a table Dim cell As ICell = table.Rows(0).Cells(0) 'Set the row span cell.RowSpan = 2 'Save the presentation presentation__1.Save("RowSpan.pptx") 'Close the presentation presentation__1.Close() Gets an instance that represents the text in a paragraph. Read-only. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200); //Get the cell from a row in a table ICell cell = table.Rows[0].Cells[0]; //Set the text content for the cell cell.TextBody.AddParagraph("First row First Cell"); //Save the presentation presentation.Save("CellTextBody.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200) 'Get the cell from a row in a table Dim cell As ICell = table.Rows(0).Cells(0) 'Set the text content for the cell cell.TextBody.AddParagraph("First row First Cell") 'Save the presentation presentation__1.Save("CellTextBody.pptx") 'Close the presentation presentation__1.Close() Gets whether this cell is part of a vertically merged cells. Read-only. true if vertical merge; otherwise, false. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200); //Get the cell from a row in a table ICell cell = table.Rows[0].Cells[0]; //Set the column span cell.ColumnSpan = 2; //Check if it is vertical merge, it is read only bool verticalMerge = cell.IsVerticalMerge; //Save the presentation presentation.Save("VerticalMerge.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200) 'Get the cell from a row in a table Dim cell As ICell = table.Rows(0).Cells(0) 'Set the column span cell.ColumnSpan = 2 'Check if it is vertical merge, it is read only Dim verticalMerge As Boolean = cell.IsVerticalMerge 'Save the presentation presentation__1.Save("VerticalMerge.pptx") 'Close the presentation presentation__1.Close() Represent the borders and diagonal lines of a cell. Gets the bottom border of the cell. Read-only. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200); //Get the cell from a row in a table ICell cell = table.Rows[0].Cells[0]; //Get the cell border properties ICellBorders cellBorders = cell.CellBorders; //Get the border bottom of the cell, read only ILineFormat borderBottom = cellBorders.BorderBottom; //Set the begin arrow head length borderBottom.BeginArrowheadLength = ArrowheadLength.Long; //Set the dash style of border bottom borderBottom.DashStyle = LineDashStyle.DashDotDot; //Set the weight borderBottom.Weight = 5; //Save the presentation presentation.Save("BorderBottom.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200) 'Get the cell from a row in a table Dim cell As ICell = table.Rows(0).Cells(0) 'Get the cell border properties Dim cellBorders As ICellBorders = cell.CellBorders 'Get the border bottom of the cell, read only Dim borderBottom As ILineFormat = cellBorders.BorderBottom 'Set the begin arrow head length borderBottom.BeginArrowheadLength = ArrowheadLength.[Long] 'Set the dash style of border bottom borderBottom.DashStyle = LineDashStyle.DashDotDot 'Set the weight borderBottom.Weight = 5 'Save the presentation presentation__1.Save("BorderBottom.pptx") 'Close the presentation presentation__1.Close() Gets the diagonal down border of the cell. Read-only. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200); //Get the cell from a row in a table ICell cell = table.Rows[0].Cells[0]; //Get the cell border properties ICellBorders cellBorders = cell.CellBorders; //Get the border diagonal down of the cell, read only ILineFormat borderDiagonalDown = cellBorders.BorderDiagonalDown; //Set the fill type of border diagonal down borderDiagonalDown.Fill.FillType = FillType.Solid; //Set the color for solid fill borderDiagonalDown.Fill.SolidFill.Color = ColorObject.Navy; //Save the presentation presentation.Save("BorderDiagonalDown.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200) 'Get the cell from a row in a table Dim cell As ICell = table.Rows(0).Cells(0) 'Get the cell border properties Dim cellBorders As ICellBorders = cell.CellBorders 'Get the border diagonal down of the cell, read only Dim borderDiagonalDown As ILineFormat = cellBorders.BorderDiagonalDown 'Set the fill type of border diagonal down borderDiagonalDown.Fill.FillType = FillType.Solid 'Set the color for solid fill borderDiagonalDown.Fill.SolidFill.Color = ColorObject.Navy 'Save the presentation presentation__1.Save("BorderDiagonalDown.pptx") 'Close the presentation presentation__1.Close() Gets the diagonal up border of the cell. Read-only. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200); //Get the cell from a row in a table ICell cell = table.Rows[0].Cells[0]; //Get the cell border properties ICellBorders cellBorders = cell.CellBorders; //Get the border diagonal up of the cell, read only ILineFormat borderDiagonalUp = cellBorders.BorderDiagonalUp; //Set the end arrow head style of border diagonal up borderDiagonalUp.EndArrowheadStyle = ArrowheadStyle.ArrowOpen; //Save the presentation presentation.Save("BorderDiagonalUp.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200) 'Get the cell from a row in a table Dim cell As ICell = table.Rows(0).Cells(0) 'Get the cell border properties Dim cellBorders As ICellBorders = cell.CellBorders 'Get the border diagonal up of the cell, read only Dim borderDiagonalUp As ILineFormat = cellBorders.BorderDiagonalUp 'Set the end arrow head style of border diagonal up borderDiagonalUp.EndArrowheadStyle = ArrowheadStyle.ArrowOpen 'Save the presentation presentation__1.Save("BorderDiagonalUp.pptx") 'Close the presentation presentation__1.Close() Gets the left border of the cell. Read-only. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200); //Get the cell from a row in a table ICell cell = table.Rows[0].Cells[0]; //Get the cell border properties ICellBorders cellBorders = cell.CellBorders; //Get the border left of the cell, read only ILineFormat borderLeft = cellBorders.BorderLeft; //Set the end arrow head width borderLeft.EndArrowheadWidth = ArrowheadWidth.Narrow; //Set the cap style borderLeft.CapStyle = LineCapStyle.Round; //Save the presentation presentation.Save("BorderLeft.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200) 'Get the cell from a row in a table Dim cell As ICell = table.Rows(0).Cells(0) 'Get the cell border properties Dim cellBorders As ICellBorders = cell.CellBorders 'Get the border left of the cell, read only Dim borderLeft As ILineFormat = cellBorders.BorderLeft 'Set the end arrow head width borderLeft.EndArrowheadWidth = ArrowheadWidth.Narrow 'Set the cap style borderLeft.CapStyle = LineCapStyle.Round 'Save the presentation presentation__1.Save("BorderLeft.pptx") 'Close the presentation presentation__1.Close() Gets the right border of the cell. Read-only. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200); //Get the cell from a row in a table ICell cell = table.Rows[0].Cells[0]; //Get the cell border properties ICellBorders cellBorders = cell.CellBorders; //Get the border right of the cell, read only ILineFormat borderRight = cellBorders.BorderRight; //Set the end arrow head style of border right borderRight.EndArrowheadStyle = ArrowheadStyle.ArrowStealth; //Save the presentation presentation.Save("BorderRight.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200) 'Get the cell from a row in a table Dim cell As ICell = table.Rows(0).Cells(0) 'Get the cell border properties Dim cellBorders As ICellBorders = cell.CellBorders 'Get the border right of the cell, read only Dim borderRight As ILineFormat = cellBorders.BorderRight 'Set the end arrow head style of border right borderRight.EndArrowheadStyle = ArrowheadStyle.ArrowStealth 'Save the presentation presentation__1.Save("BorderRight.pptx") 'Close the presentation presentation__1.Close() Gets the top border of the cell. Read-only. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200); //Get the cell from a row in a table ICell cell = table.Rows[0].Cells[0]; //Get the cell border properties ICellBorders cellBorders = cell.CellBorders; //Get the border top of the cell, read only ILineFormat borderTop = cellBorders.BorderTop; //Set the begin arrow head width of border top borderTop.BeginArrowheadWidth = ArrowheadWidth.Wide; //Set the line type of border top borderTop.LineJoinType = LineJoinType.Miter; //Save the presentation presentation.Save("BorderTop.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(4, 3, 100, 120, 300, 200) 'Get the cell from a row in a table Dim cell As ICell = table.Rows(0).Cells(0) 'Get the cell border properties Dim cellBorders As ICellBorders = cell.CellBorders 'Get the border top of the cell, read only Dim borderTop As ILineFormat = cellBorders.BorderTop 'Set the begin arrow head width of border top borderTop.BeginArrowheadWidth = ArrowheadWidth.Wide 'Set the line type of border top borderTop.LineJoinType = LineJoinType.Miter 'Save the presentation presentation__1.Save("BorderTop.pptx") 'Close the presentation presentation__1.Close() Represents a collection of objects in a table. Gets the number of cells in the row or column. Read-only. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(3, 3, 100, 120, 300, 200); //Create instance to hold the cell collection from the table ICells cells = table.Rows[0].Cells; //Get the count of cells, read only int count = cells.Count; //Save the presentation presentation.Save("Cells.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(3, 3, 100, 120, 300, 200) 'Create instance to hold the cell collection from the table Dim cells As ICells = table.Rows(0).Cells 'Get the count of cells, read only Dim count As Integer = cells.Count 'Save the presentation presentation__1.Save("Cells.pptx") 'Close the presentation presentation__1.Close() Gets a instance at the specified index from the row or column. Read-only. The zero-based index of the element. Returns the cell at the particular index if found otherwise -1. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(3, 3, 100, 120, 300, 200); //Create instance to hold the cell collection from the table ICells cells = table.Rows[0].Cells; //Get the specific cell from the collection, read only ICell cell = cells[0]; //Add text content to cell cell.TextBody.AddParagraph("First row, first cell"); //Save the presentation presentation.Save("Cells.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(3, 3, 100, 120, 300, 200) 'Create instance to hold the cell collection from the table Dim cells As ICells = table.Rows(0).Cells 'Get the specific cell from the collection, read only Dim cell As ICell = cells(0) 'Add text content to cell cell.TextBody.AddParagraph("First row, first cell") 'Save the presentation presentation__1.Save("Cells.pptx") 'Close the presentation presentation__1.Close() Represents the row in a table. Creates a copy of the current row. Returns the cloned row object //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Clone the row element. IRow row = table.Rows[0].Clone(); //Add text content to the cell. row.Cells[0].TextBody.Text = "Cloned row"; //Add row to the collection table.Rows.Add(row); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim pptxDoc As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Clone the row element. Dim row As IRow = table.Rows(0).Clone() 'Add text content to the cell. row.Cells(0).TextBody.Text = "Cloned row" 'Add row to the collection table.Rows.Add(row) 'Saves the Presentation. pptxDoc.Save("Sample.pptx") 'Close the presentation. pptxDoc.Close() Gets an instance that represents the cell collection. Read-only The cells. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the row from row collection IRow row = table.Rows[0]; //Get the cell collection from the row, read only ICells cells = row.Cells; //Set the text content for cells in row cells[0].TextBody.AddParagraph("First row, First Column"); cells[1].TextBody.AddParagraph("First row, Second Column"); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the row from row collection Dim row As IRow = table.Rows(0) 'Get the cell collection from the row, read only Dim cells As ICells = row.Cells 'Set the text content for cells in row cells(0).TextBody.AddParagraph("First row, First Column") cells(1).TextBody.AddParagraph("First row, Second Column") 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets height of the row, in points. The height. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the row from row collection IRow row = table.Rows[0]; //Set the height of the row row.Height = 40; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the row from row collection Dim row As IRow = table.Rows(0) 'Set the height of the row row.Height = 40 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represents a collection of objects in a table. Adds a new row at the end of the row collection. Returns the newly added instance. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the row collection from table IRows rows = table.Rows; //Add row to the collection rows.Add(); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the row collection from table Dim rows As IRows = table.Rows 'Add row to the collection rows.Add() 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Adds the specified row at the end of the row collection. Represents an instance to be added. Returns the zero-based index of the newly added row object in the row collection. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the row collection from table IRows rows = table.Rows; //Retrieve a single row from the row collection, read only IRow row = table.Rows[0]; //Add a specific row to the collection rows.Add(row); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the row collection from table Dim rows As IRows = table.Rows 'Retrieve a single row from the row collection, read only Dim row As IRow = table.Rows(0) 'Add a specific row to the collection rows.Add(row) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Inserts the specified row at specified index in the table. The zero-based index at which the row should be inserted. The row instance to insert. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Retrieve a single row from the row collection, read only IRow row = table.Rows[0]; //Set fill type for the cell in a row row.Cells[0].Fill.FillType = FillType.Solid; //Set color of the solid fill row.Cells[0].Fill.SolidFill.Color = ColorObject.SaddleBrown; //Get the row collection from table IRows rows = table.Rows; //Insert row at index 2 rows.Insert(2, row); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Retrieve a single row from the row collection, read only Dim row As IRow = table.Rows(0) 'Set fill type for the cell in a row row.Cells(0).Fill.FillType = FillType.Solid 'Set color of the solid fill row.Cells(0).Fill.SolidFill.Color = ColorObject.SaddleBrown 'Insert row at index 2 rows.Insert(2, row) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the row at the specified index of the row collection. The zero-based index of the row to remove. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(4, 2, 100, 120, 300, 200); //Get the row collection from table IRows rows = table.Rows; //Remove a specific row instance rows.RemoveAt(0); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(4, 2, 100, 120, 300, 200) 'Remove a specific row instance rows.RemoveAt(0) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the first occurrence of a specified row from the row collection. The row object to be removed from the collection. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Retrieve a single row from the row collection, read only IRow row = table.Rows[0]; //Get the row collection from table IRows rows = table.Rows; //Remove a specific row instance rows.Remove(row); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Retrieve a single row from the row collection, read only Dim row As IRow = table.Rows(0) 'Remove a specific row instance rows.Remove(row) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Returns the zero-based index of the first occurrence of the instance within the collection. The instance to locate in the collection. Returns the zero-based index of the first occurrence of row instance within the collection, if found; otherwise, –1. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the row collection from table IRows rows = table.Rows; //Retrieve a single row from the row collection, read only IRow row = table.Rows[0]; //Add a specific row to the collection rows.Add(row); //Get the index of a specific row from the collection int index = rows.IndexOf(row); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the row collection from table Dim rows As IRows = table.Rows 'Retrieve a single row from the row collection, read only Dim row As IRow = table.Rows(0) 'Add a specific row to the collection rows.Add(row) 'Get the index of a specific row from the collection Dim index As Integer = rows.IndexOf(row) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes all the elements from row collection. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the row collection from table IRows rows = table.Rows; //Retrieve a single row from the row collection, read only IRow row = table.Rows[0]; //Add a specific row to the collection rows.Add(row); //Clear the row collection rows.Clear(); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the row collection from table Dim rows As IRows = table.Rows 'Retrieve a single row from the row collection, read only Dim row As IRow = table.Rows(0) 'Add a specific row to the collection rows.Add(row) 'Clear the row collection rows.Clear() 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the number of elements in the rows collection. Read-only. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the row collection from table IRows rows = table.Rows; //Retrieve a single row from the row collection, read only IRow row = table.Rows[0]; //Add a specific row to the collection rows.Add(row); //Get the count of row collection, read only int count = rows.Count; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the row collection from table Dim rows As IRows = table.Rows 'Retrieve a single row from the row collection, read only Dim row As IRow = table.Rows(0) 'Add a specific row to the collection rows.Add(row) 'Get the count of row collection, read only Dim count As Integer = rows.Count 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets a instance at the specified index from the row collection. Read-only. Specifies the index of the row to locate. Returns an instance. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the row from row collection IRow row = table.Rows[0]; //Set the height of the row row.Height = 30; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the row from row collection Dim row As IRow = table.Rows(0) 'Set the height of the row row.Height = 30 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represents the table in a slide. Gets the dynamic height of the table. //Create instance of PowerPoint presentation IPresentation presDoc = Presentation.Create(); //Add slide to the presentation ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 10); //Set the text content for specific cell in a row table.Rows[0].Cells[0].TextBody.AddParagraph("Hello World"); //Get the dynamic height of the table float height = table.GetActualHeight(); //Save the presentation presDoc.Save("Sample.pptx"); //Close the presentation presDoc.Close(); /// Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Open Table in the slide to make changes Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 10) ‘Set the text content for specific cell in a row table.Rows[0].Cells[0].TextBody.AddParagraph("Hello World"); ‘Get the dynamic height of table Dim height As float = table.GetActualHeight() ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() /// Inserts the column at the specified index position of the table The index position to insert the column //Create instance of PowerPoint presentation IPresentation presDoc = Presentation.Create(); //Add slide to the presentation ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Insert the column at the specified index position table.InsertColumn(1); //Save the presentation presDoc.Save("Sample.pptx"); //Close the presentation presDoc.Close(); Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) ‘Insert the column at the specified index position table.InsertColumn(1); ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() /// Gets or sets a boolean value indicates whether to display special formatting for the first column. true if this instance has first column; otherwise, false. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Retrieve each cell and fill text content to the cell, it is read only ICell cell = table[0, 0]; cell.TextBody.AddParagraph("First Row and First Column"); cell = table[0, 1]; cell.TextBody.AddParagraph("First Row and Second Column"); cell = table[1, 0]; cell.TextBody.AddParagraph("Second Row and First Column"); cell = table[1, 1]; cell.TextBody.AddParagraph("Second Row and Second Column"); //Set the table has first column table.HasFirstColumn = true; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Retrieve each cell and fill text content to the cell, it is read only Dim cell As ICell = table(0, 0) cell.TextBody.AddParagraph("First Row and First Column") cell = table(0, 1) cell.TextBody.AddParagraph("First Row and Second Column") cell = table(1, 0) cell.TextBody.AddParagraph("Second Row and First Column") cell = table(1, 1) cell.TextBody.AddParagraph("Second Row and Second Column") 'Set the table has first column table.HasFirstColumn = True 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets a boolean value indicates whether to display special formatting for the first row. true if this instance has header row; otherwise, false. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Retrieve each cell and fill text content to the cell, it is read only ICell cell = table[0, 0]; cell.TextBody.AddParagraph("First Row and First Column"); cell = table[0, 1]; cell.TextBody.AddParagraph("First Row and Second Column"); cell = table[1, 0]; cell.TextBody.AddParagraph("Second Row and First Column"); cell = table[1, 1]; cell.TextBody.AddParagraph("Second Row and Second Column"); //Set the header row table.HasHeaderRow = true; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Retrieve each cell and fill text content to the cell, it is read only Dim cell As ICell = table(0, 0) cell.TextBody.AddParagraph("First Row and First Column") cell = table(0, 1) cell.TextBody.AddParagraph("First Row and Second Column") cell = table(1, 0) cell.TextBody.AddParagraph("Second Row and First Column") cell = table(1, 1) cell.TextBody.AddParagraph("Second Row and Second Column") 'Set the table has header row table.HasHeaderRow = True 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets a boolean value indicates whether to display banded rows, in which even rows are formatted differently from odd rows. true if this instance has banded rows; otherwise, false. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Retrieve each cell and fill text content to the cell, it is read only ICell cell = table[0, 0]; cell.TextBody.AddParagraph("First Row and First Column"); cell = table[0, 1]; cell.TextBody.AddParagraph("First Row and Second Column"); cell = table[1, 0]; cell.TextBody.AddParagraph("Second Row and First Column"); cell = table[1, 1]; cell.TextBody.AddParagraph("Second Row and Second Column"); //Set horizontal banding for the table table.HasBandedRows = true; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Retrieve each cell and fill text content to the cell, it is read only Dim cell As ICell = table(0, 0) cell.TextBody.AddParagraph("First Row and First Column") cell = table(0, 1) cell.TextBody.AddParagraph("First Row and Second Column") cell = table(1, 0) cell.TextBody.AddParagraph("Second Row and First Column") cell = table(1, 1) cell.TextBody.AddParagraph("Second Row and Second Column") 'Set horizontal banding for the table table.HasBandedRows = True 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets a boolean value indicates whether to display special formatting for the last column. true if this instance has last column; otherwise, false. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Retrieve each cell and fill text content to the cell, it is read only ICell cell = table[0, 0]; cell.TextBody.AddParagraph("First Row and First Column"); cell = table[0, 1]; cell.TextBody.AddParagraph("First Row and Second Column"); cell = table[1, 0]; cell.TextBody.AddParagraph("Second Row and First Column"); cell = table[1, 1]; cell.TextBody.AddParagraph("Second Row and Second Column"); //Set the last column table.HasLastColumn = true; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Retrieve each cell and fill text content to the cell, it is read only Dim cell As ICell = table(0, 0) cell.TextBody.AddParagraph("First Row and First Column") cell = table(0, 1) cell.TextBody.AddParagraph("First Row and Second Column") cell = table(1, 0) cell.TextBody.AddParagraph("Second Row and First Column") cell = table(1, 1) cell.TextBody.AddParagraph("Second Row and Second Column") 'Set the table has last column table.HasLastColumn = True 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets a boolean value indicates whether to display special formatting for the last row of the specified table. true if this instance has total row; otherwise, false. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Retrieve each cell and fill text content to the cell, it is read only ICell cell = table[0, 0]; cell.TextBody.AddParagraph("First Row and First Column"); cell = table[0, 1]; cell.TextBody.AddParagraph("First Row and Second Column"); cell = table[1, 0]; cell.TextBody.AddParagraph("Second Row and First Column"); cell = table[1, 1]; cell.TextBody.AddParagraph("Second Row and Second Column"); //Set the total row table.HasTotalRow = true; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Retrieve each cell and fill text content to the cell, it is read only Dim cell As ICell = table(0, 0) cell.TextBody.AddParagraph("First Row and First Column") cell = table(0, 1) cell.TextBody.AddParagraph("First Row and Second Column") cell = table(1, 0) cell.TextBody.AddParagraph("Second Row and First Column") cell = table(1, 1) cell.TextBody.AddParagraph("Second Row and Second Column") 'Set the table has total row table.HasTotalRow = True 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets an instance that represents the row collection. Read-only. The rows. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the row collection from the table, it is read only IRows rows = table.Rows; //Set the text content for specific cell in a row rows[0].Cells[0].TextBody.AddParagraph("Row - 1, Column - 1"); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the row collection from the table, it is read only Dim rows As IRows = table.Rows 'Set the text content for specific cell in a row rows(0).Cells(0).TextBody.AddParagraph("Row - 1, Column - 1") 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets an instance that represents the column collection. Read-only. The columns. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the row collection from the table, it is read only IColumns columns = table.Columns; //Set the text content for specific cell in a column columns[0].Cells[0].TextBody.AddParagraph("Column - 1, Row - 1"); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the row collection from the table, it is read only Dim columns As IColumns = table.Columns 'Set the text content for specific cell in a column columns(0).Cells(0).TextBody.AddParagraph("Column - 1, Row - 1") 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets a instance that represents the table style. The built in style. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the row collection from the table, it is read only IRows rows = table.Rows; //Set the text content for specific cell in a row rows[0].Cells[0].TextBody.AddParagraph("Row - 1, Column - 1"); //Set the builtin style for the table table.BuiltInStyle = BuiltInTableStyle.MediumStyle2Accent6; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the row collection from the table, it is read only Dim rows As IRows = table.Rows 'Set the text content for specific cell in a row rows(0).Cells(0).TextBody.AddParagraph("Row - 1, Column - 1") 'Set the builtin style for the table table.BuiltInStyle = BuiltInTableStyle.MediumStyle2Accent6 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets a boolean value indicates whether to display banded columns, in which even columns are formatted differently from odd columns. true if this instance has banded columns; otherwise, false. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Retrieve each cell and fill text content to the cell, it is read only ICell cell = table[0, 0]; cell.TextBody.AddParagraph("First Row and First Column"); cell = table[0, 1]; cell.TextBody.AddParagraph("First Row and Second Column"); cell = table[1, 0]; cell.TextBody.AddParagraph("Second Row and First Column"); cell = table[1, 1]; cell.TextBody.AddParagraph("Second Row and Second Column"); //Set vertical banding for the table table.HasBandedColumns = true; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Retrieve each cell and fill text content to the cell, it is read only Dim cell As ICell = table(0, 0) cell.TextBody.AddParagraph("First Row and First Column") cell = table(0, 1) cell.TextBody.AddParagraph("First Row and Second Column") cell = table(1, 0) cell.TextBody.AddParagraph("Second Row and First Column") cell = table(1, 1) cell.TextBody.AddParagraph("Second Row and Second Column") 'Set vertical banding for the table table.HasBandedColumns = True 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets a single instance from the table. Read-only. Determines the row index. Determines the column index. Returns an instance. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Retrieve each cell and fill text content to the cell, it is read only ICell cell = table[0, 0]; cell.TextBody.AddParagraph("First Row and First Column"); cell = table[0, 1]; cell.TextBody.AddParagraph("First Row and Second Column"); cell = table[1, 0]; cell.TextBody.AddParagraph("Second Row and First Column"); cell = table[1, 1]; cell.TextBody.AddParagraph("Second Row and Second Column"); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Retrieve each cell and fill text content to the cell, it is read only Dim cell As ICell = table(0, 0) cell.TextBody.AddParagraph("First Row and First Column") cell = table(0, 1) cell.TextBody.AddParagraph("First Row and Second Column") cell = table(1, 0) cell.TextBody.AddParagraph("Second Row and First Column") cell = table(1, 1) cell.TextBody.AddParagraph("Second Row and Second Column") 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the total number of columns in the table. //Create instance of PowerPoint presentation IPresentation presDoc = Presentation.Create(); //Add slide to the presentation ISlide slide = presDoc.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the total number of columns in the table int columnsCount = table.ColumnsCount; //Save the presentation presDoc.Save("Sample.pptx"); //Close the presentation presDoc.Close(); /// Dim presDoc As IPresentation = Presentation.Create() ‘Add slide to the presentation Dim slide As ISlide = presDoc.Slides.Add(SlideLayoutType.Blank) ‘Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) ‘Get the total number of columns in the table Dim columnsCount As Integer = table.ColumnsCount ‘Save the presentation presDoc.Save("Sample.pptx") ‘Close the presentation presDoc.Close() /// Represents a collection of instance. Adds a table to the shape collection with the specified number of rows and columns. The valid range is 1 to 75. Specifies the row count of the table. The valid range is 1 to 75. Specifies the column count of the table. The valid range is 1 to 75. Represents the left position, in points. The Left value ranges from -169056 to 169056. Represents the top position, in points. The Top value ranges from -169056 to 169056. Represents the width, in points. The Width value ranges from 0 to 169056. Represents the height, in points. The Height value ranges from 0 to 169056. Returns the instance that represents the newly created table. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold table collection in a slide ITables tables = slide.Tables; //Add tables to the table collection ITable table = tables.AddTable(2, 2, 100, 120, 300, 200); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold table collection in a slide Dim tables As ITables = slide.Tables 'Add tables to the table collection Dim table As ITable = tables.AddTable(2, 2, 100, 120, 300, 200) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Returns the zero-based index of the first occurrence of the instance within the collection. The instance to locate in the collection. Returns the zero-based index of the first occurrence of table within the collection, if found; otherwise, –1. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold table collection in a slide ITables tables = slide.Tables; //Add tables to the table collection ITable table = tables.AddTable(2, 2, 100, 120, 300, 200); tables.AddTable(1, 1, 300, 200, 100, 100); tables.AddTable(1, 1, 400, 30, 100, 100); //Get the index of a specific table int index = tables.IndexOf(table); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold table collection in a slide Dim tables As ITables = slide.Tables 'Add tables to the table collection Dim table As ITable = tables.AddTable(2, 2, 100, 120, 300, 200) tables.AddTable(1, 1, 300, 200, 100, 100) tables.AddTable(1, 1, 400, 30, 100, 100) 'Get the index of a specific table Dim index As Integer = tables.IndexOf(table) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the first occurrence of a specified table from the table collection. The table object to be removed from the collection. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold table collection in a slide ITables tables = slide.Tables; //Add tables to the table collection ITable table = tables.AddTable(2, 2, 100, 120, 300, 200); tables.AddTable(1, 1, 300, 200, 100, 100); tables.AddTable(1, 1, 400, 30, 100, 100); //Get the specific table from the collection using index, read only ITable _table = tables[1]; //Remove a particular table instance tables.Remove(_table); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold table collection in a slide Dim tables As ITables = slide.Tables 'Add tables to the table collection Dim table As ITable = tables.AddTable(2, 2, 100, 120, 300, 200) tables.AddTable(1, 1, 300, 200, 100, 100) tables.AddTable(1, 1, 400, 30, 100, 100) 'Get the specific table from the collection using index, read only Dim _table As ITable = tables(1) 'Remove a particular table instance tables.Remove(_table) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the table at the specified index of the table collection. The zero-based index of the element to be removed. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold table collection in a slide ITables tables = slide.Tables; //Add tables to the table collection ITable table = tables.AddTable(2, 2, 100, 120, 300, 200); tables.AddTable(1, 1, 300, 200, 100, 100); //Remove table using index position tables.RemoveAt(1); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold table collection in a slide Dim tables As ITables = slide.Tables 'Add tables to the table collection Dim table As ITable = tables.AddTable(2, 2, 100, 120, 300, 200) tables.AddTable(1, 1, 300, 200, 100, 100) 'Remove table using index position tables.RemoveAt(1) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets a instance at specified index from the collection. Read-only. Determines the table index. Returns an instance. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold table collection in a slide ITables tables = slide.Tables; //Add tables to the table collection ITable table = tables.AddTable(2, 2, 100, 120, 300, 200); tables.AddTable(1, 1, 300, 200, 100, 100); tables.AddTable(1, 1, 400, 30, 100, 100); //Get the specific table from the collection using index, read only ITable _table = tables[1]; //Set the built-in style for the table _table.BuiltInStyle = BuiltInTableStyle.MediumStyle2Accent6; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold table collection in a slide Dim tables As ITables = slide.Tables 'Add tables to the table collection Dim table As ITable = tables.AddTable(2, 2, 100, 120, 300, 200) tables.AddTable(1, 1, 300, 200, 100, 100) tables.AddTable(1, 1, 400, 30, 100, 100) 'Get the specific table from the collection using index, read only Dim _table As ITable = tables(1) 'Set the built-in style for the table _table.BuiltInStyle = BuiltInTableStyle.MediumStyle2Accent6 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the number of elements in the table collection. Read-only. The total count of the table. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Create instance to hold table collection in a slide ITables tables = slide.Tables; //Add tables to the table collection ITable table = tables.AddTable(2, 2, 100, 120, 300, 200); tables.AddTable(1, 1, 300, 200, 100, 100); tables.AddTable(1, 1, 400, 30, 100, 100); //Get the count of table collection, it is read only int count = tables.Count; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Create instance to hold table collection in a slide Dim tables As ITables = slide.Tables 'Add tables to the table collection Dim table As ITable = tables.AddTable(2, 2, 100, 120, 300, 200) tables.AddTable(1, 1, 300, 200, 100, 100) tables.AddTable(1, 1, 400, 30, 100, 100) 'Get the count of table collection, it is read only Dim count As Integer = tables.Count 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represents the Column in a table. Creates a copy of the current column. Returns the cloned column object //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Clone the column element. IColumn column = table.Columns[0].Clone(); //Add text content to the cell. column.Cells[0].TextBody.Text = "Cloned column"; //Add column to the collection table.Columns.Add(column); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim pptxDoc As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Clone the column element. Dim column As IColumn = table.Columns(0).Clone() 'Add text content to the cell. column.Cells(0).TextBody.Text = "Cloned column" 'Add column to the collection table.Columns.Add(column) 'Saves the Presentation. pptxDoc.Save("Sample.pptx") 'Close the presentation. pptxDoc.Close() Gets an instance that represents the cell collection. Read-only The cells. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the column from column collection IColumn column = table.Columns[0]; //Get the cell collection from the column, read only ICells cells = column.Cells; //Set the text content for cells in column cells[0].TextBody.AddParagraph("First row, First Column"); cells[1].TextBody.AddParagraph("Second row, First Column"); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the column from column collection Dim column As IColumn = table.Columns(0) 'Get the cell collection from the column, read only Dim cells As ICells = column.Cells 'Set the text content for cells in column cells(0).TextBody.AddParagraph("First row, First Column") cells(1).TextBody.AddParagraph("Second row, First Column") 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets width of the column, in points. The width. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the column from column collection IColumn column = table.Columns[0]; //Set the width of the column column.Width = 240; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the column from column collection Dim column As IColumn = table.Columns(0) 'Set the width of the column column.Width = 240 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represents a collection of objects in a table. Adds a new column at the end of the column collection. Returns the newly added instance. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the column collection from table IColumns columns = table.Columns; //Add column to the collection columns.Add(); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the column collection from table Dim columns As IColumns = table.Columns 'Add column to the collection columns.Add() 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Adds the specified column at the end of the column collection. Represents an instance to be added. Returns the zero-based index of the newly added column object in the column collection. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the column collection from table IColumns columns = table.Columns; //Retrieve a single column from the column collection, read only IColumn column = columns[0]; //Add a specific column to the collection columns.Add(column); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the column collection from table Dim columns As IColumns = table.Columns 'Retrieve a single column from the column collection, read only Dim column As IColumn = columns(0) 'Add a specific column to the collection columns.Add(column) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Inserts the specified column at specified index in the table. The zero-based index at which the column should be inserted. The column instance to insert. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Retrieve a single column from the column collection, read only IColumn column = table.Columns[0]; //Set fill type for the cell in a column column.Cells[0].Fill.FillType = FillType.Solid; //Set color of the solid fill column.Cells[0].Fill.SolidFill.Color = ColorObject.SaddleBrown; //Get the column collection from table IColumns columns = table.Columns; //Insert column at index 2 columns.Insert(2, column); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the column collection from table Dim columns As IColumns = table.Columns 'Retrieve a single column from the column collection, read only Dim column As IColumn = columns(0) 'Set fill type for the cell in a column column.Cells(0).Fill.FillType = FillType.Solid 'Set color of the solid fill column.Cells(0).Fill.SolidFill.Color = ColorObject.SaddleBrown 'Insert column at index 2 columns.Insert(2, column) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the column at the specified index of the column collection. The zero-based index of the column to remove. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(4, 2, 100, 120, 300, 200); //Get the column collection from table IColumns columns = table.Columns; //Remove a specific column instance columns.RemoveAt(0); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(4, 2, 100, 120, 300, 200) 'Get the column collection from table Dim columns As IColumns = table.Columns 'Remove a specific column instance columns.RemoveAt(0) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes the first occurrence of a specified column from the column collection. The column object to be removed from the collection. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Retrieve a single column from the column collection, read only IColumn column = table.Columns[0]; //Get the column collection from table IColumns columns = table.Columns; //Remove a specific column instance columns.Remove(column); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the column collection from table Dim columns As IColumns = table.Columns 'Retrieve a single column from the column collection, read only Dim column As IColumn = table.Columns(0) 'Remove a specific column instance columns.Remove(column) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Returns the zero-based index of the first occurrence of the instance within the collection. The instance to locate in the collection. Returns the zero-based index of the first occurrence of column instance within the collection, if found; otherwise, –1. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the column collection from table IColumns columns = table.Columns; //Retrieve a single column from the column collection, read only IColumn column = table.Columns[0]; //Add a specific column to the collection columns.Add(column); //Get the index of a specific column from the collection int index = columns.IndexOf(column); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the column collection from table Dim columns As IColumns = table.Columns 'Retrieve a single column from the column collection, read only Dim column As IColumn = columns(0) 'Add a specific column to the collection columns.Add(column) 'Get the index of a specific column from the collection Dim index As Integer = columns.IndexOf(column) 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Removes all the elements from column collection. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the column collection from table IColumns columns = table.Columns; //Retrieve a single column from the column collection, read only IColumn column = columns[0]; //Add a specific column to the collection columns.Add(column); //Clear the column collection columns.Clear(); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the column collection from table Dim columns As IColumns = table.Columns 'Retrieve a single column from the column collection, read only Dim column As IColumn = columns(0) 'Add a specific column to the collection columns.Add(column) 'Clear the column collection columns.Clear() 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets the number of elements in the column collection. Read-only. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the column collection from table IColumns columns = table.Columns; //Retrieve a single column from the column collection, read only IColumn column = columns[0]; //Add a specific column to the collection columns.Add(column); //Get the count of column collection, read only int count = columns.Count; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the column collection from table Dim columns As IColumns = table.Columns 'Retrieve a single column from the column collection, read only Dim column As IColumn = columns(0) 'Add a specific column to the collection columns.Add(column) 'Get the count of column collection, read only Dim count As Integer = columns.Count 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets a instance at the specified index from the column collection. Read-only. Specifies the index of the column to locate. Returns an instance. //Create instance of PowerPoint presentation IPresentation presentation = Presentation.Create(); //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200); //Get the column from column collection IColumn column = table.Columns[0]; //Set the width of the column column.Width = 240; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create instance of PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(2, 2, 100, 120, 300, 200) 'Get the column from column collection Dim column As IColumn = table.Columns(0) 'Set the width of the column column.Width = 300 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Check whether current line has different height or not. Returns true, if it has different height; Otherwise false. Gets or Sets a height of line. Gets or Sets a maximum ascent of the line. Represents a TextBody column information. Used in multi column layouting. Create a object of ColumnInfo. Represents a owner text body, where this column exists. Gets a owner text body of the column. Gets or Sets the paragraph start index of this column. Gets or Sets the line start index of the paragraph. Gets or Sets the height of the column. Gets or Sets a TextBody columns information. Used in multi column layouting. Represent a CharacterRangeType of current text range. Parse a ColorMapOvr elements of slide. Represent a reader object. Represent a Baseslide. Parse the ole object Parse the ole data Check whether the mentioned node exists or not Extracts extended properties from reader and inserts it workbook. XmlReader to extract extended properties from. Extracts core properties from reader and inserts it workbook. XmlReader to extract core properties from. Extracts custom properties from reader and inserts it workbook. XmlReader to extract custom properties from. Extracts custom property from reader and inserts it into custom property implementation. XmlReader to extract data from. Custom property. Parses the smart art whole property. Represents the reader object. Represents the Smart Art data model. Parse the extension list properties Parse the extension Parse the NonVisual drawing properties for SmartArtPoint Get Path adjust value Represents the font settings in the PowerPoint document. //Open the existing PowerPoint presentation. IPresentation pptxDoc = Presentation.Open("Template.pptx"); //Initializes a set of default fallback fonts. pptxDoc.FontSettings.FallbackFonts.InitializeDefault(); //Converts the first slide into image Image image = pptxDoc.Slides[0].ConvertToImage(Syncfusion.Drawing.ImageType.Metafile); //Disposes the image image.Dispose(); //Close the Presentation pptxDoc.Close(); 'Open the existing PowerPoint presentation. Dim pptxDoc As IPresentation = Presentation.Open("Template.pptx") 'Initializes a set of default fallback fonts. pptxDoc.FontSettings.FallbackFonts.InitializeDefault() 'Converts the first slide into image Dim image As Image = pptxDoc.Slides(0).ConvertToImage(Syncfusion.Drawing.ImageType.Metafile) 'Disposes the image image.Dispose() 'Close the Presentation pptxDoc.Close() Gets the font based on given font details. Name of the font. Size of the font. Style of the font. The created font, or substituted font by event. Creates font based on given font details. Name of the font. Size of the font. Style of the font. The created font. Dispose the objects of FontSetting class. //Open the existing PowerPoint presentation. IPresentation pptxDoc = Presentation.Open("Template.pptx"); //Adds fallback font for "Hebrew" script type. pptxDoc.FontSettings.FallbackFonts.Add(ScriptType.Hebrew, "Arial, Courier New"); //Adds fallback font for "Hindi" script type. pptxDoc.FontSettings.FallbackFonts.Add(ScriptType.Hindi, "Mangal, Nirmala UI"); //Converts the first slide into image Image image = pptxDoc.Slides[0].ConvertToImage(Syncfusion.Drawing.ImageType.Metafile); //Disposes the image image.Dispose(); //Close the Presentation pptxDoc.Close(); 'Open the existing PowerPoint presentation. Dim pptxDoc As IPresentation = Presentation.Open("Template.pptx") 'Adds fallback font for "Hebrew" script type. pptxDoc.FontSettings.FallbackFonts.Add(ScriptType.Hebrew, "Arial, Courier New") 'Adds fallback font for "Hindi" script type. pptxDoc.FontSettings.FallbackFonts.Add(ScriptType.Hindi, "Mangal, Nirmala UI") 'Converts the first slide into image Dim image As Image = pptxDoc.Slides(0).ConvertToImage(Syncfusion.Drawing.ImageType.Metafile) 'Disposes the image image.Dispose() 'Close the Presentation pptxDoc.Close() Represents the method that handles substitute font event. Represents the original font name. Represents the substitute font name. Represents the substitute font name. Represents the original fontstyle. Initializes a new instance of class for the specified document with original (missing) font name, and alternate font name. Name of the original (missing) font name. Name of the alternate font name. Font style of the font Gets the original font name. Read Only. The string that specifies the original font name. //Load the PowerPoint presentation and convert to image IPresentation pptxDoc = Presentation.Open("Sample.pptx"); // Initializes the 'SubstituteFont' event to set the replacement font pptxDoc.FontSettings.SubstituteFont += FontSettings_SubstituteFont; //Converts the first slide into image Image image = pptxDoc.Slides[0].ConvertToImage(Syncfusion.Drawing.ImageType.Metafile); //Disposes the image image.Dispose(); //Close the presentation. pptxDoc.Close(); /// /// Sets the alternate font when a specified font is unavailable in the production environment /// /// FontSettings type of the Presentation in which the specified font is used but unavailable in production environment. /// Retrieves the unavailable font name and receives the substitute font name for conversion. private static void FontSettings_SubstituteFont(object sender, SubstituteFontEventArgs args) { if (args.OriginalFontName == "Arial Unicode MS") args.AlternateFontName = "Arial"; else if (args.OriginalFontName == "Calibri Light") args.AlternateFontName = "Calibri"; else args.AlternateFontName = "TimesNewRoman"; } 'Load the PowerPoint presentation and convert to image Dim pptxDoc As IPresentation = Presentation.Open("Sample.pptx") 'Initializes the 'SubstituteFont' event to set the replacement font AddHandler pptxDoc.FontSettings.SubstituteFont, AddressOf SubstituteFont 'Convert the PowerPoint presentation to image. Dim image As Image = pptxDoc.Slides(0).ConvertToImage(Syncfusion.Drawing.ImageType.Metafile) 'Dispose the image image.Dispose() 'Close the Presentation. pptxDoc.Close() ''' ''' Sets the alternate font when a specified font is unavailable in the production environment ''' ''' FontSettings type of the Presentation in which the specified font is used but unavailable in production environment. ''' Retrieves the unavailable font name and receives the substitute font name for conversion. Private Sub SubstituteFont(ByVal sender As Object, ByVal args As SubstituteFontEventArgs) ' Sets the alternate font when a specified font is not installed in the production environment If args.OriginalFontName = "Arial Unicode MS" Then args.AlternateFontName = "Arial" ElseIf args.OriginalFontName = "Calibri Light" Then args.AlternateFontName = "Calibri" Else args.AlternateFontName = "Times New Roman" End If End Sub Gets or sets the alternate font name. The string that specifies the alternate font name. //Load the PowerPoint presentation and convert to image IPresentation pptxDoc = Presentation.Open("Sample.pptx"); // Initializes the 'SubstituteFont' event to set the replacement font pptxDoc.FontSettings.SubstituteFont += FontSettings_SubstituteFont; //Converts the first slide into image Image image = pptxDoc.Slides[0].ConvertToImage(Syncfusion.Drawing.ImageType.Metafile); //Disposes the image image.Dispose(); //Close the presentation. pptxDoc.Close(); /// /// Sets the alternate font when a specified font is unavailable in the production environment /// /// FontSettings type of the Presentation in which the specified font is used but unavailable in production environment. /// Retrieves the unavailable font name and receives the substitute font name for conversion. private static void FontSettings_SubstituteFont(object sender, SubstituteFontEventArgs args) { if (args.OriginalFontName == "Arial Unicode MS") args.AlternateFontName = "Arial"; else if (args.OriginalFontName == "Calibri Light") args.AlternateFontName = "Calibri"; else args.AlternateFontName = "TimesNewRoman"; } 'Load the PowerPoint presentation and convert to image Dim pptxDoc As IPresentation = Presentation.Open("Sample.pptx") 'Initializes the 'SubstituteFont' event to set the replacement font AddHandler pptxDoc.FontSettings.SubstituteFont, AddressOf SubstituteFont 'Convert the PowerPoint presentation to image. Dim image As Image = pptxDoc.Slides(0).ConvertToImage(Syncfusion.Drawing.ImageType.Metafile) 'Dispose the image image.Dispose() 'Close the Presentation. pptxDoc.Close() ''' ''' Sets the alternate font when a specified font is unavailable in the production environment ''' ''' FontSettings type of the Presentation in which the specified font is used but unavailable in production environment. ''' Retrieves the unavailable font name and receives the substitute font name for conversion. Private Sub SubstituteFont(ByVal sender As Object, ByVal args As SubstituteFontEventArgs) ' Sets the alternate font when a specified font is not installed in the production environment If args.OriginalFontName = "Arial Unicode MS" Then args.AlternateFontName = "Arial" ElseIf args.OriginalFontName = "Calibri Light" Then args.AlternateFontName = "Calibri" Else args.AlternateFontName = "Times New Roman" End If End Sub Contains types that support Presentation which is used to create and manipulate PowerPoint Presentations. Represents the PowerPoint presentation. Stream name that represent summary name. Stream name that represent document summary name. Creates a new instance. Returns the newly created presentation instance. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Add a new slide of comparison slide layout type. ISlide slide = presentation.Slides.Add(SlideLayoutType.Comparison); //Save the presentation. presentation.Save("Sample.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Add a new slide of comparison slide layout type. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Comparison) 'Save the presentation. presentation__1.Save("Sample.pptx") 'Close the presentation. presentation__1.Close() Opens the presentation from the specified file name. Specifies the file name of the presentation to open. Returns a object that represents the opened presentation. //Open a presentation. Presentation presentation = Presentation.Open("Input.pptx") as Presentation; //Add a new slide of comparison slide layout type. ISlide slide = presentation.Slides.Add(SlideLayoutType.Comparison); //Save the presentation. presentation.Save("Sample.pptx"); //Close the presentation. presentation.Close(); 'Open a presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Open("Input.pptx"), Presentation) 'Add a new slide of comparison slide layout type. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Comparison) 'Save the presentation. presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Opens the presentation from the specified stream. The stream instance that represents the presentation. Returns a object that represents the opened presentation. From v20.4.0.x release, this method will not dispose the given . You should handle the disposal of in your application. //Create instance for memory stream MemoryStream fileStream = new MemoryStream(); //Open a presentation IPresentation presentation = Presentation.Open(fileStream); presentation.Save("Sample.pptx"); //Close the presentation. presentation.Close(); //Dispose the filestream fileStream.Dispose(); 'Create instance for memory stream Dim fileStream As New MemoryStream() 'Open a presentation Dim presentation__1 As IPresentation = Presentation.Open(fileStream) presentation__1.Save("Sample.pptx") 'Close the presentation. presentation__1.Close() 'Dispose the filestream fileStream.Dispose() Saves the presentation to the specified file name. Specifies the file name to save the presentation. At present, the Essential Presentation library only supports the PPTX file format. //Create an instance of presentation Presentation presentation = Presentation.Create() as Presentation; //Add slide to the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add table to the slide ITable table = slide.Shapes.AddTable(3, 3, 100, 120, 300, 200); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create an instance of presentation Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Add slide to the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add table to the slide Dim table As ITable = slide.Shapes.AddTable(3, 3, 100, 120, 300, 200) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() At present, the Essential Presentation library only supports the PPTX file format. //Create instance for memory stream MemoryStream fileStream = new MemoryStream(); //Create an instance of presentation Presentation presentation = Presentation.Create() as Presentation; //Save the presentation using stream presentation.Save(fileStream); //Close the presentation. presentation.Close(); //Dispose the filestream fileStream.Dispose(); 'Create instance for memory stream Dim fileStream As New MemoryStream() 'Create an instance of presentation Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Save the presentation using stream presentation__1.Save(fileStream) 'Close the presentation. presentation__1.Close() 'Dispose the filestream fileStream.Dispose() Creates an independent copy of instance. /// Returns the cloned presentation instance. //Create an instance for presentation Presentation presentation = Presentation.Create() as Presentation; //Add a new slide of comparison slide layout type. ISlide slide = presentation.Slides.Add(SlideLayoutType.Comparison); //Clone the entire presentation. IPresentation presentationClone = presentation.Clone(); //Add a new slide of title layout type. slide = presentationClone.Slides.Add(SlideLayoutType.Title); //Add an auto shape of regular pentagon auto shape type. slide.Shapes.AddShape(AutoShapeType.RegularPentagon, 10, 20, 300, 400); //Save the cloned presentation presentationClone.Save("Sample.pptx"); //Close the presentation. presentation.Close(); //Close the cloned presentation. presentationClone.Close(); Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Add a new slide of comparison slide layout type. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Comparison) 'Clone the entire presentation. Dim presentationClone As IPresentation = presentation__1.Clone() 'Add a new slide of title layout type. slide = presentationClone.Slides.Add(SlideLayoutType.Title) 'Add an auto shape of regular pentagon auto shape type. slide.Shapes.AddShape(AutoShapeType.RegularPentagon, 10, 20, 300, 400) 'Save the cloned presentation presentationClone.Save("Sample.pptx") 'Close the presentation. presentation__1.Close() 'Close the cloned presentation. presentationClone.Close() Saves the presentation to the specified HttpResponse instance. At present, the Essential Presentation library only supports the PPTX file format. The name of the file in HttpResponse. The format type of the presentation. The HttpResponse to save the presentation. //Create a presentation Presentation presentation = Presentation.Create() as Presentation; //Save the presentation to the specified HttpResponse presentation.Save("Sample.pptx", FormatType.Pptx, HttpContext.Current.Response); 'Create a presentation Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Save the presentation to the specified HttpResponse presentation__1.Save("Sample.pptx", FormatType.Pptx, Response) Opens the encrypted presentation from the specified file name and password. Path of the presentation file. Password required to open the presentation file. Returns a object that represents the opened presentation. //Open the encrypted presentation. Presentation presentation = Presentation.Open("Input.pptx", "MYPASSWORD!@#$%") as Presentation; //Save the presentation. presentation.Save("Sample.pptx"); //Close the presentation. presentation.Close(); 'Open the encrypted presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Open("Input.pptx", "MYPASSWORD!@#$%"), Presentation) 'Save the presentation. presentation__1.Save("Sample.pptx") 'Close the presentation. presentation__1.Close() Opens the encrypted presentation from the specified stream and password. The instance of the presentation. The password required to open the presentation. Returns the object that represents the opened presentation. From v20.4.0.x release, this method will not dispose the given . You should handle the disposal of in your application. //Create instance for memory stream MemoryStream fileStream = new MemoryStream(); //Open a presentation string InputPath = ""; IPresentation presentation = Presentation.Open(fileStream,InputPath); presentation.Save("Sample.pptx"); //Close the presentation. presentation.Close(); //Dispose the filestream fileStream.Dispose(); 'Create instance for memory stream Dim fileStream As New MemoryStream() 'Open a presentation Dim presentation__1 As IPresentation = Presentation.Open(fileStream, Input.pptx) presentation__1.Save("Sample.pptx") 'Close the presentation. presentation__1.Close() 'Dispose the filestream fileStream.Dispose() Encrypts the presentation using the specified password. Password to encrypt the presentation. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Add a new slide of content with caption slide layout type. ISlide slide = presentation.Slides.Add(SlideLayoutType.ContentWithCaption); //Add a auto shape of moon type auto shape. IShape shape = slide.Shapes.AddShape(AutoShapeType.Moon, 50, 0, 200, 200); //Add a paragraph with text content to the shape. shape.TextBody.AddParagraph("Text for moon shape"); //Encrypt the presentation with the combination of alpha and symbol string password. presentation.Encrypt("MYPASSWORD!@#$%"); //Save the presentation. presentation.Save("Sample.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Add a new slide of content with caption slide layout type. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.ContentWithCaption) 'Add a auto shape of moon type auto shape. Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Moon, 50, 0, 200, 200) 'Add a paragraph with text content to the shape. shape.TextBody.AddParagraph("Text for moon shape") 'Encrypt the presentation with the combination of alpha and symbol string password. presentation__1.Encrypt("MYPASSWORD!@#$%") 'Save the presentation. presentation__1.Save("Sample.pptx") 'Close the presentation. presentation__1.Close() Removes the encryption from presentation. To remove the encryption we must have opened the presentation with password. //Open the encrypted presentation. Presentation presentation = Presentation.Open("Input.pptx", "MYPASSWORD!@#$%") as Presentation; //Remove the encryption. presentation.RemoveEncryption(); //Save the presentation. presentation.Save("Sample.pptx"); //Close the presentation. presentation.Close(); 'Open the encrypted presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Open("Input.pptx", "MYPASSWORD!@#$%"), Presentation) 'Remove the encryption. presentation__1.RemoveEncryption() 'Save the presentation. presentation__1.Save("Sample.pptx") 'Close the presentation. presentation__1.Close() Add a watermark to the presentation file The presentation instance Add a watermark to the slide The slide instance Add a watermark shape to the center of the master slide Add a watermark shape to the bottom of the first and last slide Converts the slides in presentation to images using the specified image format. Specifies the image format in which you want to convert slides. Returns the array of the converted images. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Add a content with caption slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.ContentWithCaption); //Add a table to the slide. ITable table = slide.Tables.AddTable(5, 5, 0, 0, 500, 500); //Set the built in table style. table.BuiltInStyle = BuiltInTableStyle.DarkStyle2Accent3Accent4; //Iterate through the row collection. foreach (IRow row in table.Rows) { //Iterate through the cell collection. foreach (ICell cell in row.Cells) { //Add a paragraph to the cell. cell.TextBody.AddParagraph("New Paragraph"); } } //Converts the each and every slide in the presentation to image of stream array type. Stream[] imageStreamArray = presentation.RenderAsImages(Syncfusion.Drawing.ImageFormat.Jpeg); //Iterate the stream array. foreach (Stream stream in imageStreamArray) { //Save the stream in image of .jpg format. Image.FromStream(stream).Save("RenderAsImage" + Guid.NewGuid() + ".jpg"); } //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Add a content with caption slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.ContentWithCaption) 'Add a table to the slide. Dim table As ITable = slide.Tables.AddTable(5, 5, 0, 0, 500, 500) 'Set the built in table style. table.BuiltInStyle = BuiltInTableStyle.DarkStyle2Accent3Accent4 'Iterate through the row collection. For Each row As IRow In table.Rows 'Iterate through the cell collection. For Each cell As ICell In row.Cells 'Add a paragraph to the cell. cell.TextBody.AddParagraph("New Paragraph") Next Next 'Converts the each and every slide in the presentation to image of stream array type. Dim imageStreamArray As Stream() = presentation__1.RenderAsImages(Syncfusion.Drawing.ImageFormat.Jpeg) 'Iterate the stream array. For Each stream As Stream In imageStreamArray 'Save the stream in image of .jpg format. Image.FromStream(stream).Save("RenderAsImage" + Guid.NewGuid() + ".jpg") Next 'Close the presentation. presentation__1.Close() Converts the slides in presentation to images using the specified image type. Specifies the image type in which you want to convert slides. Returns the array of the converted images. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Add a content with caption slide to the presentation. ISlide slide = presentation.Slides.Add(SlideLayoutType.ContentWithCaption); //Add a table to the slide. ITable table = slide.Tables.AddTable(5, 5, 0, 0, 500, 500); //Set the built in table style. table.BuiltInStyle = BuiltInTableStyle.DarkStyle2Accent3Accent4; //Iterate through the row collection. foreach (IRow row in table.Rows) { //Iterate through the cell collection. foreach (ICell cell in row.Cells) { //Add a paragraph to the cell. cell.TextBody.AddParagraph("New Paragraph"); } } //Converts the each and every slide in the presentation to image of System.Drawing.Image type array. Image[] imageArray = presentation.RenderAsImages(Syncfusion.Drawing.ImageType.Metafile); //Iterate the image array. foreach (Image image in imageArray) { //Save the image of .bmp format. image.Save("RenderAsImage" + Guid.NewGuid() + ".bmp"); } //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Add a content with caption slide to the presentation. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.ContentWithCaption) 'Add a table to the slide. Dim table As ITable = slide.Tables.AddTable(5, 5, 0, 0, 500, 500) 'Set the built in table style. table.BuiltInStyle = BuiltInTableStyle.DarkStyle2Accent3Accent4 'Iterate through the row collection. For Each row As IRow In table.Rows 'Iterate through the cell collection. For Each cell As ICell In row.Cells 'Add a paragraph to the cell. cell.TextBody.AddParagraph("New Paragraph") Next Next 'Converts the each and every slide in the presentation to image of System.Drawing.Image type array. Dim imageArray As Image() = presentation__1.RenderAsImages(Syncfusion.Drawing.ImageType.Metafile) 'Iterate the image array. For Each image As Image In imageArray 'Save the image of .bmp format. image.Save("RenderAsImage" + Guid.NewGuid() + ".bmp") Next 'Close the presentation. presentation__1.Close() Prepares response before saving. Adds the preserved elements into new presentation. Releases any resources associated with the presentation instance. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Add a new slide of comparison slide layout type. ISlide slide = presentation.Slides.Add(SlideLayoutType.Comparison); //Save the presentation. presentation.Save("Sample.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Add a new slide of comparison slide layout type. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Comparison) 'Save the presentation. presentation__1.Save("Sample.pptx") 'Close the presentation. presentation__1.Close() Releases all resources used by the instance. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Add a new slide of comparison slide layout type. ISlide slide = presentation.Slides.Add(SlideLayoutType.Comparison); //Save the presentation. presentation.Save("Sample.pptx"); //Dispose the presentation. presentation.Dispose(); 'Create a new presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add a new slide of comparison slide layout type. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Comparison) 'Save the presentation. presentation__1.Save("Sample.pptx") 'Dispose the presentation. presentation__1.Dispose() Determines whether the data in the stream are encrypted or not. Stream in which the presentation content are stored. Returns whether the stream is encrypted or not. Removes the macros from the presentation instance. //Opens an existing macro enabled PowerPoint presentation IPresentation pptxDoc = Presentation.Open("Sample.PPTM"); //Checks whether the presentation has macros and then removes them if (pptxDoc.HasMacros) pptxDoc.RemoveMacros(); //Saves the presentation pptxDoc.Save("Output.pptx"); //Closes the presentation pptxDoc.Close(); 'Opens an existing macro enabled PowerPoint presentation Dim pptxDoc As IPresentation = Presentation.Open("Sample.PPTM") 'Checks whether the presentation has macros and then removes them If pptxDoc.HasMacros Then pptxDoc.RemoveMacros() End If 'Saves the presentation pptxDoc.Save("Output.pptx") 'Closes the presentation pptxDoc.Close() Sets the write protection for the presentation instance Password to enforce protection. Maximum length of password should be 15. If it exceeds 15, first 15 characters will be considered for protection, remaining will be ignored. //Create an instance for presentation IPresentation presentation = Presentation.Create(); //Add a new slide of comparison slide layout type. ISlide slide = presentation.Slides.Add(SlideLayoutType.Comparison); //Add an auto shape of regular pentagon auto shape type. slide.Shapes.AddShape(AutoShapeType.RegularPentagon, 10, 20, 300, 400); //Set the write protection for Presentation instance with password. presentation.SetWriteProtection("MYPASSWORD"); //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation. presentation.Close(); 'Create an instance for presentation Dim presentation As IPresentation = Presentation.Create() 'Add a new slide of comparison slide layout type. Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Comparison) 'Add an auto shape of regular pentagon auto shape type. slide.Shapes.AddShape(AutoShapeType.RegularPentagon, 10, 20, 300, 400) 'Set the write protection for Presentation instance with password. presentation.SetWriteProtection("MYPASSWORD") 'Save the presentation presentation.Save("Sample.pptx") 'Close the presentation. presentation.Close() Removes the write Protection from presentation instance //Create an instance for presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Check whether the presentation is write protected. if (presentation.IsWriteProtected) { //Removes the write protection from presentation instance presentation.RemoveWriteProtection(); } //Save the presentation presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create an instance for presentation Dim presentation As IPresentation = Presentation.Open("Sample.pptx") 'Check whether the presentation is write protected. if (presentation.IsWriteProtected) { 'Removes the write protection from presentation instance presentation.RemoveWriteProtection() } 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation. presentation.Close() Finds all the given text from the presentation document The collection that contains all the entries of the found text in the document. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with a text IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Hello World"); // Finds all the text from the Presentation document ITextSelection[] textSelections = presentation.FindAll("World", false, false); foreach (ITextSelection textSelection in textSelections) { //Gets the found text as single text part ITextPart textPart = textSelection.GetAsOneTextPart(); //Replace the text textPart.Text = "Replaced text"; } //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Creates a presentation. Dim pptxDoc As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) 'Add a new paragraph with a text Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Hello World") 'Finds the text from the Presentation document Dim textSelections As ITextSelection() = pptxDoc.FindAll("World", False, False) 'Gets the found text as single text part and replace it For Each textSelection As ITextSelection In textSelections Dim textPart As ITextPart = textSelection.GetAsOneTextPart() textPart.Text = "Replaced text" Next pptxDoc.Save("Output.pptx") 'Close the presentation. pptxDoc.Close() Finds all the given text from the presentation document using Regex Pattern The collection that contains all the entries of the found text in the document. //Opens an existing presentation. IPresentation pptxDoc = Presentation.Open("Input.pptx"); // Create a regex pattern to find a text that starts with 'H' and ends with 'o'. Regex regex = new Regex("H.+?o"); //Finds all the occurrences of a specified regular expression. ITextSelection[] textSelections = pptxDoc.FindAll(regex); foreach (ITextSelection textSelection in textSelections) { //Gets the found text as single text part ITextPart textPart = textSelection.GetAsOneTextPart(); //Replace the text textPart.Text = "Replaced text"; } //Saves the Presentation pptxDoc.Save("Output.pptx"); // Close the presentation. pptxDoc.Close(); 'Opens an existing presentation. Dim pptxDoc As IPresentation = Presentation.Open("Input.pptx") ' Create a regex pattern to find a text that starts with 'H' and ends with 'o'. Dim regex As Regex = New Regex("H.+?o") 'Finds all the occurrences of a specified regular expression. Dim textSelections As ITextSelection() = pptxDoc.FindAll(regex) For Each textSelection As ITextSelection In textSelections 'Gets the found text as single text part Dim textPart As ITextPart = textSelection.GetAsOneTextPart() 'Replace the text textPart.Text = "Replaced text" Next 'Saves the Presentation pptxDoc.Save("Output.pptx") 'Close the presentation. pptxDoc.Close() Finds the first occurance of the given word from the presentation The that contains the found text in the document. //Create a new presentation instance. IPresentation presentation = Presentation.Create(); //Add the slide into the presentation ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); // Add a text box to hold the list IShape textBoxShape = slide.AddTextBox(65, 140, 410, 270); // Add a new paragraph with a text IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Hello World"); // Finds the text from the Presentation document ITextSelection textSelection = presentation.Find("World", false, false); // Gets the found text containing text parts foreach (ITextPart textPart in textSelection.GetTextParts()) { //Sets Bold property textPart.Font.Bold = true; } //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Creates a presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Add the slide into the presentation Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a text box to hold the list Dim textBoxShape As IShape = slide.AddTextBox(65, 140, 410, 270) 'Add a new paragraph with a text Dim paragraph As IParagraph = textBoxShape.TextBody.AddParagraph("Hello World") 'Finds the text from the Presentation document Dim textSelection As ITextSelection = presentation__1.Find("World", False, False) 'Gets the text parts from the selection For Each textPart As ITextPart In textSelection.GetTextParts() textPart.Font.Bold = True Next presentation__1.Save("Output.pptx") 'Close the presentation. presentation__1.Close() Finds the first occurance of the given word from the presentation using Regex Pattern The that contains the found text in the document. //Opens an existing presentation. IPresentation pptxDoc = Presentation.Open("Input.pptx"); // Create a regex pattern to find a text that starts with 'H' and ends with 'o'. Regex regex = new Regex("H.+?o"); //Find the first occurrence of a specified regular expression. ITextSelection textSelection = pptxDoc.Find(regex); //Gets the found text as single text part ITextPart textPart = textSelection.GetAsOneTextPart(); //Replace the text textPart.Text = "Replaced text"; //Saves the Presentation pptxDoc.Save("Output.pptx"); //Close the presentation pptxDoc.Close(); 'Opens an existing presentation. Dim pptxDoc As IPresentation = Presentation.Open("Input.pptx") 'Create a regex pattern to find a text that starts with 'H' and ends with 'o'. Dim regex As Regex = New Regex("H.+?o") 'Find the first occurrence of a specified regular expression. Dim textSelection As ITextSelection = pptxDoc.Find(regex) 'Gets the found text as single text part Dim textPart As ITextPart = textSelection.GetAsOneTextPart() 'Replace the text textPart.Text = "Replaced text" 'Saves the Presentation pptxDoc.Save("Output.pptx") 'Close the presentation. pptxDoc.Close() Returns a collection of instances. Read-only. //Creates a PowerPoint presentation IPresentation presentation = Presentation.Create(); //Adds a section to the PowerPoint presentation ISection section = presentation.Sections.Add(); //Sets a name to the created section section.Name = "SectionDemo"; //Adds a slide to the created section ISlide slide = section.AddSlide(SlideLayoutType.Blank); //Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo"); //Saves the PowerPoint presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Creates a PowerPoint presentation Dim presentation__1 As IPresentation = Presentation.Create() 'Adds a section to the PowerPoint presentation Dim section As ISection = presentation__1.Sections.Add() 'Sets a name to the created section section.Name = "SectionDemo" 'Adds a slide to the created section Dim slide As ISlide = section.AddSlide(SlideLayoutType.Blank) 'Adds a text box to the slide slide.AddTextBox(10, 10, 100, 100).TextBody.AddParagraph("Slide in SectionDemo") 'Saves the PowerPoint presentation presentation__1.Save("Sample.pptx") 'Close the Presentation instance presentation__1.Close() Gets the font settings. Read Only. The font settings in the PowerPoint document. //Load the PowerPoint presentation and convert to image IPresentation pptxDoc = Presentation.Open("Sample.pptx"); // Initializes the 'SubstituteFont' event to set the replacement font pptxDoc.FontSettings.InitializeFallbackFonts(); //Converts the first slide into image Image image = pptxDoc.Slides[0].ConvertToImage(Syncfusion.Drawing.ImageType.Metafile); //Close the presentation. pptxDoc.Close(); 'Load the PowerPoint presentation and convert to image Dim pptxDoc As IPresentation = Presentation.Open("Sample.pptx") 'Use a sets of default FallbackFont collection to IPresentation. pptxDoc.FontSettings.FallbackFonts.InitializeDefault() 'Convert the PowerPoint presentation to image. Dim image As Image = pptxDoc.Slides(0).ConvertToImage(Syncfusion.Drawing.ImageType.Metafile) 'Close the Presentation instance pptxDoc.Close() Gets the collection of the instance. Read-only. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the collection of layout Slide IMasterSlides masterslides = presentation.Masters; //Get a master by specifying the index in collection IMasterSlide masterSlide = presentation.Masters[0]; //Add a group shape to master slide masterSlide.GroupShapes.AddGroupShape(200,234,198,173); //Add an autoshape - bevel to master slide masterSlide.Shapes.AddShape(AutoShapeType.Bevel,237,45,187,120); //Add master slide to the collection masterslides.Add(masterSlide); //Save the presentation presentation.Save("Output.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the collection of layout Slide Dim masterslides As IMasterSlides = presentation__1.Masters 'Get a master by specifying the index in collection Dim masterSlide As IMasterSlide = presentation__1.Masters(0) 'Add a group shape to master slide masterSlide.GroupShapes.AddGroupShape(200, 234, 198, 173) 'Add an autoshape - bevel to master slide masterSlide.Shapes.AddShape(AutoShapeType.Bevel, 237, 45, 187, 120) 'Add master slide to the collection masterslides.Add(masterSlide) 'Save the presentation presentation__1.Save("Output.pptx") 'Close the presentation presentation__1.Close() Gets the slide collection of instance. Read-only. //Create a new presentation. IPresentation presentation = Presentation.Create(); //Create instance to hold the slide collection ISlides slides = presentation.Slides; //Add slide to presentation slides.Add(); //Add a blank slide to the presentation. slides.Add(SlideLayoutType.Blank); //Add slide to the collection by passing the slide instance slides.Add(slides.Add(SlideLayoutType.Title)); //Retrieve the specific slide item, read only ISlide _slide = slides[0]; //Set the slide name _slide.Name = "My Slide"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a new presentation. IPresentation presentation = Presentation.Create(); 'Create instance to hold the slide collection ISlides slides = presentation.Slides; 'Add slide to presentation slides.Add(); 'Add a blank slide to the presentation. slides.Add(SlideLayoutType.Blank); 'Add slide to the collection by passing the slide instance slides.Add(slides.Add(SlideLayoutType.Title)); 'Retrieve the specific slide item, read only ISlide _slide = slides[0]; 'Set the slide name slide.Name = "My Slide"; 'Save the presentation presentation.Save("Sample.pptx"); 'Close the presentation presentation.Close(); Gets or sets a value indicating whether the instance is marked as final. //Create an instance for PowerPoint presentation IPresentation pptxDoc = Presentation.Create(); //Add slide to the presentation ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank); //Mark the presentation as final pptxDoc.Final = true; //Save the presentation pptxDoc.Save("Sample.pptx"); //Close the presentation pptxDoc.Close(); 'Create an instance for PowerPoint presentation Dim pptxDoc As IPresentation = Presentation.Create() 'Add slide to the presentation Dim slide As ISlide = pptxDoc.Slides.Add(SlideLayoutType.Blank) 'Mark the presentation as final pptxDoc.Final = True 'Save the presentation pptxDoc.Save("Sample.pptx") 'Close the presentation pptxDoc.Close() Gets an instance. Initialize the ChartToImageConverter in-order to convert a chart in presentation to image. //Create a new presentation. Presentation presentation = Presentation.Create() as Presentation; //Initialize the chart to image converter. presentation.ChartToImageConverter = new ChartToImageConverter(); //Set the scaling mode for the chart. presentation.ChartToImageConverter.ScalingMode = ScalingMode.Best; //Add a blank slide for the chart. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Add a chart to the slide. IPresentationChart officeChart = slide.Charts.AddChart(100, 100, 600, 400); //Set chart data officeChart.ChartData.SetValue(1, 4, "Month"); officeChart.ChartData.SetValue(2, 4, "July"); officeChart.ChartData.SetValue(3, 4, "August"); officeChart.ChartData.SetValue(4, 4, "September"); officeChart.ChartData.SetValue(5, 4, "October"); officeChart.ChartData.SetValue(6, 4, "November"); officeChart.ChartData.SetValue(7, 4, "December"); officeChart.ChartData.SetValue(1, 1, "2013"); officeChart.ChartData.SetValue(2, 1, 35); officeChart.ChartData.SetValue(3, 1, 37); officeChart.ChartData.SetValue(4, 1, 30); officeChart.ChartData.SetValue(5, 1, 29); officeChart.ChartData.SetValue(6, 1, 25); officeChart.ChartData.SetValue(7, 1, 30); officeChart.ChartData.SetValue(1, 2, "2014"); officeChart.ChartData.SetValue(2, 2, 30); officeChart.ChartData.SetValue(3, 2, 25); officeChart.ChartData.SetValue(4, 2, 29); officeChart.ChartData.SetValue(5, 2, 35); officeChart.ChartData.SetValue(6, 2, 38); officeChart.ChartData.SetValue(7, 2, 32); officeChart.ChartData.SetValue(1, 3, "2015"); officeChart.ChartData.SetValue(2, 3, 35); officeChart.ChartData.SetValue(3, 3, 37); officeChart.ChartData.SetValue(4, 3, 30); officeChart.ChartData.SetValue(5, 3, 50); officeChart.ChartData.SetValue(6, 3, 25); officeChart.ChartData.SetValue(7, 3, 30); //Add chart serie. IOfficeChartSerie serie1 = officeChart.Series.Add("2013"); //Set serie value. serie1.Values = officeChart.ChartData[2, 1, 7, 1]; //Add chart serie. IOfficeChartSerie serie2 = officeChart.Series.Add("2014"); //Set serie value. serie2.Values = officeChart.ChartData[2, 2, 7, 2]; //Add chart serie. IOfficeChartSerie serie3 = officeChart.Series.Add("2015"); //Set serie value. serie3.Values = officeChart.ChartData[2, 3, 7, 3]; //Set category labels value for the primary category axis. officeChart.PrimaryCategoryAxis.CategoryLabels = officeChart.ChartData[2, 4, 7, 4]; //Set the chart type. officeChart.ChartType = OfficeChartType.Column_Clustered; //Set the chart title. officeChart.ChartTitle = "Mine Chart"; //Convert the chart to image. Image[] chartImages = presentation.RenderAsImages(Syncfusion.Drawing.ImageType.Metafile); foreach (Image image in chartImages) { //Save the image. image.Save("ChartToImageConverter" + Guid.NewGuid() + ".png"); } //Save the presentation. presentation.Save("ChartToImageConverter.pptx"); //Close the presentation. presentation.Close(); 'Create a new presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Initialize the chart to image converter. presentation__1.ChartToImageConverter = New ChartToImageConverter() 'Set the scaling mode for the chart. presentation__1.ChartToImageConverter.ScalingMode = ScalingMode.Best 'Add a blank slide for the chart. Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) 'Add a chart to the slide. Dim officeChart As IPresentationChart = slide.Charts.AddChart(100, 100, 600, 400) 'Set chart data officeChart.ChartData.SetValue(1, 4, "Month") officeChart.ChartData.SetValue(2, 4, "July") officeChart.ChartData.SetValue(3, 4, "August") officeChart.ChartData.SetValue(4, 4, "September") officeChart.ChartData.SetValue(5, 4, "October") officeChart.ChartData.SetValue(6, 4, "November") officeChart.ChartData.SetValue(7, 4, "December") officeChart.ChartData.SetValue(1, 1, "2013") officeChart.ChartData.SetValue(2, 1, 35) officeChart.ChartData.SetValue(3, 1, 37) officeChart.ChartData.SetValue(4, 1, 30) officeChart.ChartData.SetValue(5, 1, 29) officeChart.ChartData.SetValue(6, 1, 25) officeChart.ChartData.SetValue(7, 1, 30) officeChart.ChartData.SetValue(1, 2, "2014") officeChart.ChartData.SetValue(2, 2, 30) officeChart.ChartData.SetValue(3, 2, 25) officeChart.ChartData.SetValue(4, 2, 29) officeChart.ChartData.SetValue(5, 2, 35) officeChart.ChartData.SetValue(6, 2, 38) officeChart.ChartData.SetValue(7, 2, 32) officeChart.ChartData.SetValue(1, 3, "2015") officeChart.ChartData.SetValue(2, 3, 35) officeChart.ChartData.SetValue(3, 3, 37) officeChart.ChartData.SetValue(4, 3, 30) officeChart.ChartData.SetValue(5, 3, 50) officeChart.ChartData.SetValue(6, 3, 25) officeChart.ChartData.SetValue(7, 3, 30) 'Add chart serie. Dim serie1 As IOfficeChartSerie = officeChart.Series.Add("2013") 'Set serie value. serie1.Values = officeChart.ChartData(2, 1, 7, 1) 'Add chart serie. Dim serie2 As IOfficeChartSerie = officeChart.Series.Add("2014") 'Set serie value. serie2.Values = officeChart.ChartData(2, 2, 7, 2) 'Add chart serie. Dim serie3 As IOfficeChartSerie = officeChart.Series.Add("2015") 'Set serie value. serie3.Values = officeChart.ChartData(2, 3, 7, 3) 'Set category labels value for the primary category axis. officeChart.PrimaryCategoryAxis.CategoryLabels = officeChart.ChartData(2, 4, 7, 4) 'Set the chart type. officeChart.ChartType = OfficeChartType.Column_Clustered 'Set the chart title. officeChart.ChartTitle = "Mine Chart" 'Convert the chart to image. Dim chartImages As Image() = presentation__1.RenderAsImages(Syncfusion.Drawing.ImageType.Metafile) For Each image As Image In chartImages 'Save the image. image.Save("ChartToImageConverter" + Guid.NewGuid() + ".png") Next 'Save the presentation. presentation__1.Save("ChartToImageConverter.pptx") 'Close the presentation. presentation__1.Close() Represents the Show Header and Footer Placeholders on Title slide Gets an instance. Read-only. //Create a presentation. Presentation presentation = Presentation.Create() as Presentation; //Retrieve the built-in document property, it is read only IBuiltInDocumentProperties builtin = presentation.BuiltInDocumentProperties; //Set the application name builtin.ApplicationName = "Essential Presentation"; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Retrieve the built-in document property, it is read only Dim builtin As IBuiltInDocumentProperties = presentation__1.BuiltInDocumentProperties 'Set the application name builtin.ApplicationName = "Essential Presentation" 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets an instance. Read-only. //Create a presentation. IPresentation presentation = Presentation.Create(); //Retrieve the custom document property, it is read only ICustomDocumentProperties custom = presentation.CustomDocumentProperties; //Add custom document property custom.Add("PropertyA"); //Set the boolean property custom["PropertyA"].Boolean = true; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a presentation. Dim presentation__1 As IPresentation = Presentation.Create() 'Retrieve the custom document property, it is read only Dim [custom] As ICustomDocumentProperties = presentation__1.CustomDocumentProperties 'Add custom document property [custom].Add("PropertyA") 'Set the boolean property [custom]("PropertyA").[Boolean] = True 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Gets or sets the first slide number of the PowerPoint Presentation. The default value is 1. First slide number is the starting slide number of presentation, and this API allows to set the first slide number from 0 to 9999. //Creates a new PowerPint Presentation. using (IPresentation presentation = Presentation.Create()) { //Sets the first slide number of the PowerPoint Presentation. presentation.FirstSlideNumber = 5; //Adds slide to the PowerPoint. ISlide slide1 = presentation.Slides.Add(SlideLayoutType.TitleAndContent); //Adds slide to the PowerPoint. ISlide slide2 = presentation.Slides.Add(SlideLayoutType.TitleAndContent); //Adds slide to the PowerPoint. ISlide slide3 = presentation.Slides.Add(SlideLayoutType.TitleAndContent); //Gets the first slide slidenumber. int firstSlideNumber = slide1.SlideNumber; //Gets the second slide slidenumber. int secondSlideNumber = slide2.SlideNumber; //Saves the PowerPoint Presentation. presentation.Save("Output.pptx"); } 'Creates a PowerPoint instance Using pptxDoc As IPresentation = Presentation.Create() 'Sets the first slide number of the PowerPoint Presentation. pptxDoc.FirstSlideNumber = 5 'Adds a slide to the PowerPoint presentation Dim slide1 As ISlide = pptxDoc.Slides.Add(SlideLayoutType.TitleAndContent) 'Adds a slide to the PowerPoint presentation Dim slide2 As ISlide = pptxDoc.Slides.Add(SlideLayoutType.TitleAndContent) 'Adds a slide to the PowerPoint presentation Dim slide3 As ISlide = pptxDoc.Slides.Add(SlideLayoutType.TitleAndContent) 'Gets the first slide slidenumber. Dim firstSlideNumber As Integer = slide1.SlideNumber 'Gets the second slide slidenumber. Dim secondSlideNumber As Integer = slide2.SlideNumber 'Saves the Presentation to the file system. pptxDoc.Save("Output.pptx") End Using Gets the notes size of instance. Read-only. Gets or sets the slide names and its ISlide instance from input file. Gets the slide size of instance. Read-only. //Create a presentation. Presentation presentation = Presentation.Create() as Presentation; //Add a blank slide for the chart. ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); //Retrieve the slides size, read only ISlideSize slidesize = presentation.SlideSize; //Set the slide orientation of presentation slidesize.SlideOrientation = SlideOrientation.Landscape; //Save the presentation presentation.Save("Sample.pptx"); //Close the presentation presentation.Close(); 'Create a presentation. Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation) 'Add a blank slide for the chart. Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Retrieve the slides size, read only Dim slidesize As ISlideSize = presentation__1.SlideSize 'Set the slide orientation of presentation slidesize.SlideOrientation = SlideOrientation.Landscape 'Save the presentation presentation__1.Save("Sample.pptx") 'Close the presentation presentation__1.Close() Represents a RendererBase object. Used to perform a MeasureString process. Gets or sets the password for the current presentation. Get or Sets the ExcelCount in the presentation Gets or sets whether the presentation has macros. //Opens an existing macro enabled PowerPoint presentation IPresentation pptxDoc = Presentation.Open("Sample.PPTM"); //Checks whether the presentation has macros and then removes them if (pptxDoc.HasMacros) pptxDoc.RemoveMacros(); //Saves the presentation pptxDoc.Save("Output.pptx"); //Closes the presentation pptxDoc.Close(); 'Opens an existing macro enabled PowerPoint presentation Dim pptxDoc As IPresentation = Presentation.Open("Sample.PPTM") 'Checks whether the presentation has macros and then removes them If pptxDoc.HasMacros Then pptxDoc.RemoveMacros() End If 'Saves the presentation pptxDoc.Save("Output.pptx") 'Closes the presentation pptxDoc.Close() Gets whether the presentation is write Protected. Read-only. //Create an instance for presentation IPresentation presentation = Presentation.Open("Sample.pptx"); //Check whether the presentation is write protected. if (presentation.IsWriteProtected) { //Removes the write protection from presentation instance presentation.RemoveWriteProtection(); } //Save the presentation presentation.Save("Output.pptx"); //Close the presentation. presentation.Close(); 'Create an instance for presentation Dim presentation As IPresentation = Presentation.Open("Sample.pptx") 'Check whether the presentation is write protected. if (presentation.IsWriteProtected) { 'Removes the write protection from presentation instance presentation.RemoveWriteProtection() } 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation. presentation.Close() Specifies the iterations count (spin count) to run hashing algorithm. Specifies the dictionary used to hold the attributes and values for modifyVerifier/writeProtection element. Key - Attribute name and Value - Attribute values. Generates necessary attributes and its values of write protection element for setting the write protection. Removes all the attributes and its values of write protection element. Creates the salt. The length. Computes the hash. The salt. The encrypted password. Combines the byte arrays. The array1. The array2. Specifies the dictionary used to hold the attributes and values for modifyVerifier/writeProtection element. Key - Attribute name and Value - Attribute values. Gets a Boolean value represents whether the dictionary has any attributes and values for modifyVerifier/writeProtection element. Gets the remove image element dictionary. Draw notes placeholder shape. Represents the shape to be draw. Check whether the picture is cropped with predefined shape path. Specify the picture to check Return true, if picture is cropped with shape; otherwise return false. Apply duotone to the give image. In where the duotone need to apply. duotone color informations. Duotone applied image. Apply color Transformation to the given color. Color Transformation information. color in where the transformation occur. Transformation applied color. Executes Linear interpolation for Duotone. In where the factor is applied. In where the factor is applied. Factor value. Final factorized color. Draws the paragraph collection. The collection of paragraphs to draw. Draws the paragraphs of notes slide shapes. The collection of paragraphs to draw. Draws the string using character spacing by splitting the string into character. Represents the paragraph object. Represents the System.Drawing.Font. Represents the solid brush to draw the text. Represents the bounds of the text. Represents the text content. Represents the font instance. Gets or sets a value, which indicates whether the converted PDF document is tagged or not. Draws a solid Rectangle in the image with the given Rectangle object that acts as a Highlight Color for that textpart Highlight color of the textpart Rectangle object that has to be filled with the highlight color Draws the notes slide content. The notes slide to draw. An array of streams containing the rendered content of notes slide. Radial Gradient Fill implementation. Path Specifies whether azure compatible with Metafile creation Determine to check whether Azure compatible with EMF creation Creates the image. Change the Syncfusion.Drawing.ImageFormat to System.Drawing.Imaging.ImageFormat. Represent the image format to change. Returns the System.Drawing.Imaging.ImageFormat. Specifies whether azure compatible with Metafile creation Represents the conversion of PowerPoint slide to series of images based on animation order. //Open a PowerPoint Presentation. IPresentation pptxDoc = Presentation.Open("Input.pptx"); //Initialize the PresentationAnimationConverter to perform slide to image conversion based on animation order. PresentationAnimationConverter animationConverter = new PresentationAnimationConverter(); int i = 0; foreach (ISlide slide in pptxDoc.Slides) { //Convert the PowerPoint slide to a series of images based on entrance animation effects. Stream[] imageStreams = animationConverter.Convert(slide, Syncfusion.Drawing.ImageFormat.Png); //Save the image stream. foreach (Stream stream in imageStreams) { //Dispose the stream. stream.Dispose(); } } //Close the Presentation pptxDoc.Close(); //Dispose the instance. animationConverter.Dispose(); 'Open a PowerPoint Presentation. Dim pptxDoc As IPresentation = Presentation.Open("Input.pptx") 'Initialize the PresentationAnimationConverter to perform slide to image conversion based on animation order. Dim animationConverter As PresentationAnimationConverter = New PresentationAnimationConverter() Dim i As Integer = 0 For Each slide As ISlide In pptxDoc.Slides 'Convert the PowerPoint slide to a series of images based on entrance animation effects. Dim imageStreams As Stream() = animationConverter.Convert(slide, Syncfusion.Drawing.ImageFormat.Png) 'Save the image stream. For Each stream As Stream In imageStreams 'Dispose the stream. stream.Dispose() Next Next 'Close the Presentation pptxDoc.Close() 'Dispose the instance. animationConverter.Dispose() Releases all resources used by the object. //Open a PowerPoint Presentation. IPresentation pptxDoc = Presentation.Open("Input.pptx"); //Initialize the PresentationAnimationConverter to perform slide to image conversion based on animation order. PresentationAnimationConverter animationConverter = new PresentationAnimationConverter(); int i = 0; foreach (ISlide slide in pptxDoc.Slides) { //Convert the PowerPoint slide to a series of images based on entrance animation effects. Stream[] imageStreams = animationConverter.Convert(slide, Syncfusion.Drawing.ImageFormat.Png); //Save the image stream. foreach (Stream stream in imageStreams) { //Dispose the stream. stream.Dispose(); } } //Close the Presentation pptxDoc.Close(); //Dispose the instance. animationConverter.Dispose(); 'Open a PowerPoint Presentation. Dim pptxDoc As IPresentation = Presentation.Open("Input.pptx") 'Initialize the PresentationAnimationConverter to perform slide to image conversion based on animation order. Dim animationConverter As PresentationAnimationConverter = New PresentationAnimationConverter() Dim i As Integer = 0 For Each slide As ISlide In pptxDoc.Slides 'Convert the PowerPoint slide to a series of images based on entrance animation effects. Dim imageStreams As Stream() = animationConverter.Convert(slide, Syncfusion.Drawing.ImageFormat.Png) 'Save the image stream. For Each stream As Stream In imageStreams 'Dispose the stream. stream.Dispose() Next Next 'Close the Presentation pptxDoc.Close() 'Dispose the instance. animationConverter.Dispose() Gets the animated object list of the given slide. Represent the slide. Represents the animated object collection. Represents the trigger type of each animation effects. Returns the animated object list of the given slide. Get Curved Connector path formulaColl.Add("x2","*/ w adj1 100000"); formulaColl.Add("x1","+/ l x2 2"); formulaColl.Add("x3","+/ r x2 2"); formulaColl.Add("y3","*/ h 3 4"); Get Bent Connector path formulaColl.Add("x1","*/ w adj1 100000"); > Get Triangle path Gets the right arrow path. Gets the left arrow path. Gets down arrow path. Gets the left right arrow path. Gets the curved right arrow path. Gets the curved left arrow path. Gets the curved up arrow path. Gets the curved down arrow path. Gets up down arrow path. Gets the quad arrow path. Gets the left right up arrow path. Gets the bent arrow path. Gets the U trun arrow path. Gets the left up arrow path. Gets the bent up arrow path. Gets the striped right arrow path. Gets the notched right arrow path. Gets the pentagon path. Gets the chevron path. Gets the right arrow callout path. Gets down arrow callout path. Gets the left arrow callout path. Gets up arrow callout path. Gets the left right arrow callout path. Gets the quad arrow callout path. Gets the circular arrow path. Gets the math plus path. Gets the math minus path. Gets the math multiply path. Gets the math division path. Gets the math equal path. Gets the math not equal path. Gets the flow chart alternate process path. Gets the flow chart predefined process path. Gets the flow chart internal storage path. Gets the flow chart document path. Gets the flow chart multi document path. Gets the flow chart terminator path. Gets the flow chart preparation path. Gets the flow chart manual input path. Gets the flow chart manual operation path. Gets the flow chart connector path. Gets the flow chart off page connector path. Gets the flow chart card path. Gets the flow chart punched tape path. Gets the flow chart summing junction path. Gets the flow chart or path. Gets the flow chart collate path. Gets the flow chart sort path. Gets the flow chart extract path. Gets the flow chart merge path. Gets the flow chart online storage path. Gets the flow chart delay path. Gets the flow chart sequential access storage path. Gets the flow chart magnetic disk path. Gets the flow chart direct access storage path. Gets the flow chart display path. Gets the rectangular callout path. Gets the rounded rectangular callout path. Gets the oval callout path. Gets the cloud callout path. Gets the line callout1 path. Gets the line callout2 path. Gets the line callout3 path. Gets the line callout1 accent bar path. Gets the line callout2 accent bar path. Gets the line callout3 accent bar path. Gets the line callout1 no border path. Gets the line callout2 no border path. Gets the line callout3 no border path. Gets the line callout1 border and accent bar path. Gets the line callout2 border and accent bar path. Gets the line callout3 border and accent bar path. Sets the font name of the bullet. Represent the font name. Compares the current ListFormat object with given ListFormat object. The ListFormat object to compare with the current instance. True if the ListFormat objects are equal; otherwise, false. Specifies default numbering format. Specifies UppRoman numbering format. Specifies LowRoman numbering format. Specifies UpLetter numbering format. Specifies LowLetter numbering format. Specifies Ordinal numbering format. Specifies Number numbering format. Specifies OrdinalText numbering format. Specifies LeadingZero numbering format. Specifies Bullet numbering format. Special numbering format. Specifies None numbering format. Compare the input font instance with current font instance. Represent a input font to compare. Returns true, if input font is same as current font;Otherwise false. Gets the Default HighlightColor from the slide Color object Gets the Default HighlightColor from the layout or master slide ColorObject Gets a font name to render. Gets the default size for table font from master slide text style list. Returns the master slide other text style font size otherwise the default size Applies color mapping to the specified ColorObject. The ColorObject to which the color mapping will be applied. The modified ColorObject with the color mapping applied. Gets the HighlightColor from style list or Placeholder ColorObject Gets the highlightColor from the Master Slide ColorObject Gets the default highlightColor from the Presentation ColorObject Gets the default highlightColor from the Stylelist ColorObject Returns a font name value bases on script type. Sets the highlight colorobject Gets the highlight colorobject Highlight color Returns the bold property from the current paragraph Creates color object to the color mapping value in the base slide Sets the character spacing to the current font instance. Character spacing value. Gets the character spacing of the current font. Returns the character spacing value. Gets whether character spacing is applied in current font or not. Represent whether TextPart is bi-directional or not. Gets or sets the language identifier (locale). The short value that specifies the equivalent locale id. Check whether current font object has a font name or not. Gets and Sets the Highlight color for the Font Returns the bold property from the hierarchy if it is not mentioned in the current paragraph Represent the RTL property. Gets a Language value as string. Gets or sets the character spacing value for the text in a paragraph. Splits the text part based on line break character. Specifies the given text. Specifies the current text part. Adds a line break text part to the text part collection. Adds the specified text part to the textpart collection with the specified link. The text content to initialize the new instance. Applies hyperlink with to the textpart. Returns an instance. Gets a default Alignement Type from table styles. Returns a default alignment type. Split a text part based on the font script type. Check whether textInfo collection has a word split characters ' ', '-', '\t' (Tab) or not. Represent a input textinfo collection to check. Retruns true if textInfo collection has a word split characters ' ', '-', '\t'; Otherwise false. Check whether input text has RTL text or not. Represent a input text Returns true, if input text has RTL character; Otherwise false. To check whether the specified language is arabic language or not. Specify the language local id Return true if the language id is represent the arabic Split a text part based on the RTL text. Combine the TextPart by consicutive LTR and RTL texts. Shift the layouted textpart in right to left direction Update a bounds of re-ordered widgets. Get the start position of line based on paraBidi property. Reorders the child widgets of a line for RTL text. Check whether to insert a WordSplit Character into left or right. Update a CharacterRange type based on previous and next characters. Check whether current line has RTL content or not. Returns true, if current line have a RTL text; Otherwise false. Gets the line spacing value for the line Check whether the last text part of the paragraph is line break Close and Dispose the memory. Note: Do not invoke this method, use Close method clear the memmory. Finds all the occurance of the given word from the paragraph List of TextSelection Finds the first occurance of the given word in the paragraph Text selection Update the start and end index of the paragraph text parts Compares the content and properties of the current Paragraph object with given Paragraph object. The Paragraph object to compare with the current instance. True if the content and properties of the Paragraph objects are equal; otherwise, false. Gets or Sets the hidden property of paragraph based on animation. Property to access the end paragraph font properties Check whether the paragraph collection is hidden or not. Returns true, if its hidden; Otherwise, false. Compares the content and properties of the current Paragraphs object with given Paragraphs object. The Paragraphs object to compare with the current instance. True if the content and properties of the Paragraphs objects are equal; otherwise, false. Check whether langauage has been defined or not. Change first letter of string to uppercase. Finds all the occurance of the given word from the TextBody List of TextSelection Finds the first occurance of the given word in the TextBody Text selection Compares the current TextBody object with given TextBody object. The TextBody object to compare with the current instance. True if the TextBody objects are equal; otherwise, false. Compares the styles in the current style list with given style list. The dictionary representing the style list to compare with the current instance. True if the styles in the style lists are equal; otherwise, false. Gets or sets the spacing between the columns. This property only valid, when there is more than 1 column present. Gets or sets the right to left order of columns. Sets the hyperlink to the textpart. Represents the address of the target hyperlink Returns an instance. The target can be a document path, web url, target slide, email_id. Gets a updated slide number value. Returns a corrsponding slide number value. Gets a updated date and time string. Returns a upated date and time string Removes the hyperlink from the current textpart. Check whether current TextPart is, only having a WordSplit characters or not. Returns true, if it only has a WordSplit characters. Otherwise false. Check whether current TextPart is Hindi or not. Returns true, if it is a Hindi character. Otherwise false. Compares the content and properties of the current TextPart object with given TextPart object. The TextPart object to compare with the current instance. True if the content and properties of the TextPart objects are equal; otherwise, false. Represent a FontScriptType of current text range. Represents whether current TextRange has any chinese or symbol unicode or not. Represent a CharacterRangeType of current text range. Returns an instance that represents the hyperlink for the specified textpart. Gets or Sets the starting position of the TextPart in a Paragraph Represents the Text Selection Initializes a new instance of the class. The paragraph. The start char position. The end char position. Splits and returns the required text part from the parent text part Text part array Combines and returns the splited text parts as one text part. Text part Split the required text part from the owner text part Ensure the indexes Gets the start or end range index integer Add the text parts to the list Update the following text selections Gets the selected text. Read-only. The string that represents the selected text. Gets the string at the specified index from the collection. The zero-based index of the string to get. The string at the specified collection. Gets the number of text chunks in the collection. Read-only. The count. integer count of the selection Compares the content and properties of the current TextParts object with given TextParts object. The TextParts object to compare with the current instance. True if the content and properties of the TextParts objects are equal; otherwise, false. This class used for implementing Advanced Encryption Standard algorithm. Initializes a new instance of the Aes class. Key size. Key bytes Initializes this instance. Encipher 16 bit input 16 bit Input Output value Decipher 16-bit input Sets the nb nk nr. Size of the key. Builds the sbox. Builds the inv sbox. Builds the rcon. Adds the round key. The round. Subs the bytes. Invs the sub bytes. Shifts the rows. Invs the shift rows. Mixes the columns. Invs the mix columns. Keys the expansion. Subs the word. The word. Rots the word. The word. Possible key sizes. key size, in bits, for constructor. 128-bit. 192-bit. 256-bit. This class is responsible for decryption of Agile encryption (Word 2010/2013) files. Segment size. Dataspace map. Encryption info. Compound storage that should be decrypted. Intermediate key. Security helper contains utility methods for encryption/decryption. Hashing Algorithm used to compute hash. Computes a Hash-based Message Authentication Code (HMAC) using the System.Security.Cryptography.SHA1 hash function. Decrypts internal storage. Decrypted stream. Prepares decryptor for actual decryption. Compound storage to get required data. Checks whether password is correct. Password to check. True if password verification succeeded. Checks the encrypted package. The encrypted package. Decrypts the specified data. The data. Size of the block. The arr key. The IV. The actual length. Parses the transform. The data spaces. Parses the data space map. The data spaces. Parses the transform info. The transform storage. Represents the agile encryption info for Encryption/Decryption of Word 2010/2013 documents. A Version structure where Version.vMajor MUST be 0x0004, and Version.vMinor MUST be 0x0004. A Reserved 4 bytes, MUST be 0x00000040. An XmlEncryptionDescriptor structure that specifies encryption and hashing algorithm. Security helper contains utility methods for encryption/decryption. Default constructor. Initializes new instance. Stream to get data from. Serializes object into stream. Stream to serialize into. Gets or sets the version info. The version info. Gets or sets the reserved. The reserved. An XmlEncryptionDescriptor structure that specifies encryption and hashing algorithm. This class used to encrypt data using Agile encryption (Word 2010/2013). Default version. Reserved bytes. Segment size. Security helper contains utility methods for encryption/decryption. Hashing Algorithm used to compute hash. Computes a Hash-based Message Authentication Code (HMAC) using the System.Security.Cryptography.SHA1 hash function. Hashing Algorithm name used to compute hash. Encryption key bits. Hash size. Initializes encryptor for agile encryption. Initializes encryptor for agile encryption. The hash algorithm. The key bits. Size of the hash. Encrypts specified stream. Data to encrypt. Password to use. Root storage to put encrypted data into. Prepares the encryption info. The data. The root. The password. Prepares the encrypted package. The data. The root. The key data. The intermediate key. Initializes the key data. The key data. Initializes the encrypted key. The key. Preparse data spaces structures inside specified storage. Storage to put DataSpaces inside. Serializes VersionInfo stream inside specified storage. Storage to serialize VersionInfo into. Serializes transformation info. Storage to serialize into. Serializes dataspace info. Storage to serialize into. Serializes DataSpaceMap stream. Storage to place stream into. Creates the salt. The length. Encrypts the specified data. The data. Size of the block. The key. The IV. Represents the data space definition for Encryption/Decryption of Word documents. Default header size. Header length. List with transform references. Security helper contains utility methods for encryption/decryption. Initializes new instance. Initializes new instance of DataSpaceDefinition. Stream to get data from. Serializes dataspace definition into the stream. Stream to serialize into. List with transform references. Represents the data space map for Encryption/Decryption of Word documents. Size of the header. Map entries. Security helper contains utility methods for encryption/decryption. Default constructor. Initializes new instance of the DataSpaceMap. Stream to get data from. Serializes dataspace map into the stream. Stream to serialize into. Map entries. Represents the data space map entry for Encryption/Decryption of Word documents. List of the reference components. DataSpace name. Security helper contains utility methods for encryption/decryption. Default constructor. Initializes new instance of the map entry. Stream to get data from. Serializes single dataspace map entry into the stream. Stream to serialize into. List of the reference components. DataSpace name. Represents the data space reference component for Encryption/Decryption of Word documents. Component type. Component name. Security helper contains utility methods for encryption/decryption. Initializes new instance of the reference component. Component type. Component name. Initializes new instance of the component reference. Stream to get data from. Serializes object into stream. Stream to serialize into. Component type. Component name. Represents the encryption header for Encryption/Decryption of Word documents. An EncryptionHeaderFlags structure that specifies properties of the encryption algorithm used. Reserved, MUST be 0x00000000. A signed integer that specifies the encryption algorithm. A signed integer that specifies the hashing algorithm in concert with the Flags.fExternal bit. An unsigned integer that specifies the number of bits in the encryption key. MUST be a multiple of 8. An implementation specified value which corresponds to constants accepted by the specified CSP. MUST be compatible with the chosen CSP. Undefined and MUST be ignored. MUST be 0x00000000 and MUST be ignored. A null-terminated Unicode string that specifies the CSP name. Security helper contains utility methods for encryption/decryption. Default constructor. Initializes new instance of the header and extracts its data from the stream. Stream to get data from. Extracts item's data from the specified stream. Stream to get data from. Serialize item in the specified stream. Stream to serialize data into. An EncryptionHeaderFlags structure that specifies properties of the encryption algorithm used. Reserved, MUST be 0x00000000. A signed integer that specifies the encryption algorithm. A signed integer that specifies the hashing algorithm in concert with the Flags.fExternal bit. An unsigned integer that specifies the number of bits in the encryption key. MUST be a multiple of 8. An implementation specified value which corresponds to constants accepted by the specified CSP. MUST be compatible with the chosen CSP. Undefined and MUST be ignored. MUST be 0x00000000 and MUST be ignored. A null-terminated Unicode string that specifies the CSP name. Represents the encryption transform info for Encryption/Decryption of Word documents. Transform name. Block size. Cipher mode. Reserved. Security helper contains utility methods for encryption/decryption. Default constructor. Initializes new instance of the class. Stream to get data from. Serializes object into stream. Stream. Transform name. Block size. Cipher mode. Reserved. Represents the encryption verifier for Encryption/Decryption of Word documents. An array of bytes that specifies the salt value used during password hash generation. MUST NOT be the same data used for the verifier stored encrypted in the EncryptedVerifier field. MUST be the randomly generated Verifier value encrypted using the algorithm chosen by the implementation. An array of bytes that contains the encrypted form of the hash of the randomly generated Verifier value. The length of the array MUST be the size of the encryption block size multiplied by the number of blocks needed to encrypt the hash of the Verifier. If the encryption algorithm is RC4, the length MUST be 20 bytes. If the encryption algorithm is AES, the length MUST be 32 bytes. Size of the verifier hash. Security helper contains utility methods for encryption/decryption. Default constructor. Initializes new instance of the verifier. Stream to get data from. Extracts object from stream. Stream to get data from. Serializes object into stream. Stream to serialize into. An array of bytes that specifies the salt value used during password hash generation. MUST NOT be the same data used for the verifier stored encrypted in the EncryptedVerifier field. MUST be the randomly generated Verifier value encrypted using the algorithm chosen by the implementation. An array of bytes that contains the encrypted form of the hash of the randomly generated Verifier value. The length of the array MUST be the size of the encryption block size multiplied by the number of blocks needed to encrypt the hash of the Verifier. If the encryption algorithm is RC4, the length MUST be 20 bytes. If the encryption algorithm is AES, the length MUST be 32 bytes. Gets/sets size of the verifier hash. Initializes a new instance of the class. Initializes this instance. Initializes the before reading the document. Reads the Fib records from the specified stream. The stream. Reads the Fib records from the decrypted stream. The stream. Reads the Fib records after 64 bytes - cslw from the specified stream. The stream. Validates the cbRgFcLcb. Validates the CSW new. Writes the Fib records to the specified stream. The stream. Writes the internal. The stream. Writes the after encryption. The stream. Updates the fcMac. Closes this instance. Gets the fib version determined in the Word document as per file format specifications. The fib version. Gets or sets an unsigned integer that specifies that this is a Word Binary File. This value MUST be 0xA5EC. The w ident. Gets or sets the unused value. This value is undefined and MUST be ignored. The BaseUnused. Gets or sets a LID that specifies the install language of the application that is producing the document. If nFib is 0x00D9 or greater, then any East Asian install lid or any install lid with a base language of Spanish, German or French MUST be recorded as lidAmerican. If the nFib is 0x0101 or greater, then any install lid with a base language of Vietnamese, Thai, or Hindi MUST be recorded as lidAmerican. The lid. Gets or sets an unsigned integer that specifies the offset in the WordDocument stream of the FIB for the document which contains all the AutoText items. If this value is 0, there are no AutoText items attached. Otherwise the FIB is found at file location pnNext�512. If fGlsy is 1 or fDot is 0, this value MUST be 0. If pnNext is not 0, each FIB MUST share the same values for FibRgFcLcb97.fcPlcBteChpx, FibRgFcLcb97.lcbPlcBteChpx, FibRgFcLcb97.fcPlcBtePapx, FibRgFcLcb97.lcbPlcBtePapx, and FibRgLw97.cbMac. The pn next. Gets or sets a value specifies whether this is a document template (1). true if this is a document template; otherwise, false. Gets or sets a value specifies whether this is a document that contains only AutoText items (see FibRgFcLcb97.fcSttbfGlsy, FibRgFcLcb97.fcPlcfGlsy and FibRgFcLcb97.fcSttbGlsyStyle). true if this is a document that contains only AutoText items; otherwise, false. Gets or sets a value specifies that the last save operation that was performed on this document was an incremental save operation. true if fComplex; otherwise, false. Gets or sets an unsigned integer. If nFib is less than 0x00D9, then cQuickSaves specifies the number of consecutive times this document was incrementally saved. If nFib is 0x00D9 or greater, then cQuickSaves MUST be 0xF. The c quick saves. Gets or sets a value specifies whether the document is encrypted or obfuscated as specified in Encryption and Obfuscation. true if the document is encrypted or obfuscated; otherwise, false. Gets or sets a value specifies the Table stream to which the FIB refers. When this value is set to 1, use 1Table; when this value is set to 0, use 0Table. true if the Table stream is 1Table; otherwise, false. Gets or sets a value specifies whether the document author recommended that the document be opened in read-only mode. true if the document to be opened in read-only mode; otherwise, false. Gets or sets a value specifies whether the document has a write-reservation password. true if the document has a write-reservation password; otherwise, false. Gets or sets a value indicating ext character. This value MUST be 1. true if ext character; otherwise, false. Gets or sets a value specifies whether to override the language information and font that are specified in the paragraph style at istd 0 (the normal style) with the defaults that are appropriate for the installation language of the application. true if load override; otherwise, false. Gets or sets a value specifies whether the installation language of the application that created the document was an East Asian language. true if far east; otherwise, false. Gets or sets a value specifies whether the document is obfuscated by using XOR obfuscation. If fEncrypted is 1, this bit specifies whether the document is obfuscated by using XOR obfuscation (section 2.2.6.1); otherwise, this bit MUST be ignored. true if the document is obfuscated by using XOR obfuscation; otherwise, false. Gets or sets the key. If fEncrypted is 1 and fObfuscation is 1, this value specifies the XOR obfuscation (section 2.2.6.1) password verifier. If fEncrypted is 1 and fObfuscation is 0, this value specifies the size of the EncryptionHeader that is stored at the beginning of the Table stream as described in Encryption and Obfuscation. Otherwise, this value MUST be 0. The l key. Gets or sets the envr. This value MUST be 0, and MUST be ignored. The envr. Gets or sets a value indicating whether mac. This value MUST be 0, and MUST be ignored. true if mac; otherwise, false. Gets or sets a value specifies whether to override the section properties for page size, orientation, and margins with the defaults that are appropriate for the installation language of the application. true if load override page; otherwise, false. Gets or sets a value indicating the reserved1. This value is undefined and MUST be ignored. true if reserved1; otherwise, false. Gets or sets a value indicating the reserved2. This value is undefined and MUST be ignored. true if reserved2; otherwise, false. Gets or sets the spare0. This value is undefined and MUST be ignored. The f spare0. Gets or sets a value indicating the reserved3. This value MUST be 0 and MUST be ignored. The reserved3. Gets or sets a value indicating the reserved4. This value MUST be 0 and MUST be ignored. The reserved4. Gets or sets a value indicating the reserved5. This value is undefined and MUST be ignored. The reserved5. Gets or sets a value indicating the reserved6. This value is undefined and MUST be ignored. The reserved6. Gets or sets an unsigned integer that specifies the count of 16-bit values corresponding to fibRgW that follow. MUST be 0x000E. The CSW. Gets or sets this value is undefined and MUST be ignored. The fib rg w reserved1. Gets or sets this value is undefined and MUST be ignored. The fib rg w reserved2. Gets or sets this value is undefined and MUST be ignored. The fib rg w reserved3. Gets or sets This value is undefined and MUST be ignored. The fib rg w reserved4. A LID whose meaning depends on the nFib value. Gets or sets the lid fe. The lid fe. Gets or sets an unsigned integer that specifies the count of 32-bit values corresponding to fibRgLw that follow. MUST be 0x0016. The CSLW. Specifies the count of bytes of those written to the WordDocument stream of the file that have any meaning. Gets or sets the cb mac. The cb mac. Gets or sets this value is undefined and MUST be ignored. The rg lw reserved1. Gets or sets this value is undefined and MUST be ignored. The rg lw reserved2. Specifies the count of CPs in the main document. Gets or sets the CCP text. The CCP text. Specifies the count of CPs in the footnote subdocument. Gets or sets the CCP FTN. The CCP FTN. Specifies the count of CPs in the header subdocument. Gets or sets the CCP HDD. The CCP HDD. Gets or sets this value MUST be zero and MUST be ignored. The rg lw reserved3. Specifies the count of CPs in the comment subdocument. Gets or sets the CCP atn. The CCP atn. Specifies the count of CPs in the endnote subdocument. Gets or sets the CCP edn. The CCP edn. Specifies the count of CPs in the textbox subdocument of the main document. Gets or sets the CCP TXBX. The CCP TXBX. Specifies the count of CPs in the textbox subdocument of the header. Gets or sets the CCP HDR TXBX. The CCP HDR TXBX. Gets or sets this value is undefined and MUST be ignored. The rg lw reserved4. Gets or sets this value is undefined and MUST be ignored. The rg lw reserved5. Gets or sets the rg lw reserved6. The rg lw reserved6. Gets or sets this value is undefined and MUST be ignored The rg lw reserved7. Gets or sets this value is undefined and MUST be ignored The rg lw reserved8. Gets or sets the rg lw reserved9. The rg lw reserved9. Gets or sets this value is undefined and MUST be ignored. The rg lw reserved10. Gets or sets this value is undefined and MUST be ignored. The rg lw reserved11. Gets or sets this value MUST be zero and MUST be ignored. The rg lw reserved13. Gets or sets this value MUST be zero and MUST be ignored. The rg lw reserved14. Gets or sets an unsigned integer that specifies the count of 64-bit values corresponding to fibRgFcLcbBlob that follow. This MUST be one of the following values, depending on the value of nFib. Value of nFib cbRgFcLcb 0x00C1 0x005D 0x00D9 0x006C 0x0101 0x0088 0x010C 0x00A4 0x0112 0x00B7 The cb rg fc LCB. the fib rg fc LCB97 fc STSHF original. Gets or sets This value is undefined and MUST be ignored. The fib rg fc LCB97 fc STSHF original. Gets or sets This value is undefined and MUST be ignored. The fib rg fc LCB97 LCB STSHF original. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An STSH that specifies the style sheet for this document begins at this offset. The fc STSHF. Gets or sets An unsigned integer that specifies the size, in bytes, of the STSH that begins at offset fcStshf in the Table Stream. This MUST be a nonzero value. The LCB STSHF. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcffndRef begins at this offset and specifies the locations of footnote references in the Main Document, and whether those references use auto-numbering or custom symbols. If lcbPlcffndRef is zero, fcPlcffndRef is undefined and MUST be ignored. The fc PLCFFND reference. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcffndRef that begins at offset fcPlcffndRef in the Table Stream. The LCB PLCFFND reference. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcffndTxt begins at this offset and specifies the locations of each block of footnote text in the Footnote Document. If lcbPlcffndTxt is zero, fcPlcffndTxt is undefined and MUST be ignored. The fc PLCFFND text. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcffndTxt that begins at offset fcPlcffndTxt in the Table Stream. The LCB PLCFFND text. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfandRef begins at this offset and specifies the dates, user initials, and locations of comments in the Main Document. If lcbPlcfandRef is zero, fcPlcfandRef is undefined and MUST be ignored. The fc plcfand reference. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfandRef at offset fcPlcfandRef in the Table Stream. The LCB plcfand reference. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfandTxt begins at this offset and specifies the locations of comment text ranges in the Comment Document. If lcbPlcfandTxt is zero, fcPlcfandTxt is undefined, and MUST be ignored. The fc plcfand text. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfandTxt at offset fcPlcfandTxt in the Table Stream. The LCB plcfand text. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfSed begins at this offset and specifies the locations of property lists for each section in the Main Document. If lcbPlcfSed is zero, fcPlcfSed is undefined and MUST be ignored. The LCB plcfand text. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfSed that begins at offset fcPlcfSed in the Table Stream. The LCB PLCF sed. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc PLC pad. Gets or sets This value MUST be zero, and MUST be ignored. The fc PLC pad. Gets or sets An unsigned integer that specifies the size, in bytes, of the Plc at offset fcPlcfPhe in the Table Stream. The LCB PLCF phe. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A SttbfGlsy that contains information about the AutoText items that are defined in this document begins at this offset. The fc STTBF glsy. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfGlsy at offset fcSttbfGlsy in the Table Stream. If base.fGlsy of the Fib that contains this FibRgFcLcb97 is zero, this value MUST be zero. The LCB STTBF glsy. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfGlsy that contains information about the AutoText items that are defined in this document begins at this offset. The fc PLCF glsy. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfGlsy at offset fcPlcfGlsy in the Table Stream. If base.fGlsy of the Fib that contains this FibRgFcLcb97 is zero, this value MUST be zero. The LCB PLCF glsy. Gets or sets An unsigned integer that specifies the offset in the Table Stream where a Plcfhdd begins. The Plcfhdd specifies the locations of each block of header/footer text in the WordDocument Stream. The fc PLCF HDD. Gets or sets An unsigned integer that specifies the size, in bytes, of the Plcfhdd at offset fcPlcfHdd in the Table Stream. If there is no Plcfhdd, this value MUST be zero. A Plcfhdd MUST exist if FibRgLw97.ccpHdd indicates that there are characters in the Header Document The LCB PLCF HDD. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcBteChpx begins at the offset. fcPlcfBteChpx MUST be greater than zero, and MUST be a valid offset in the Table Stream. The fc PLCF bte CHPX. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcBteChpx at offset fcPlcfBteChpx in the Table Stream. lcbPlcfBteChpx MUST be greater than zero. The LCB PLCF bte CHPX. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcBtePapx begins at the offset. fcPlcfBtePapx MUST be greater than zero, and MUST be a valid offset in the Table Stream. The fc PLCF bte papx. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcBtePapx at offset fcPlcfBtePapx in the Table Stream. lcbPlcfBteChpx MUST be greater than zero. The LCB PLCF bte papx. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc PLCF sea. Gets or sets This value MUST be zero, and MUST be ignored. The LCB PLCF sea. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbfFfn begins at this offset. This table specifies the fonts that are used in the document. If lcbSttbfFfn is 0, fcSttbfFfn is undefined and MUST be ignored. The fc STTBF FFN. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfFfn at offset fcSttbfFfn in the Table Stream. The LCB STTBF FFN. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcFld begins at this offset and specifies the locations of field characters in the Main Document. All CPs in this PlcFld MUST be greater than or equal to 0 and less than or equal to FibRgLw97.ccpText. If lcbPlcfFldMom is zero, fcPlcfFldMom is undefined and MUST be ignored. The fc PLCF field mom. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcFld at offset fcPlcfFldMom in the Table Stream. The LCB PLCF field mom. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcFld begins at this offset and specifies the locations of field characters in the Header Document. All CPs in this PlcFld are relative to the starting position of the Header Document. The fc PLCF field HDR. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcFld at offset fcPlcfFldHdr in the Table Stream. The LCB PLCF field HDR. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcFld begins at this offset and specifies the locations of field characters in the Footnote Document. All CPs in this PlcFld are relative to the starting position of the Footnote Document. The fc PLCF field FTN. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcFld at offset fcPlcfFldFtn in the Table Stream. The LCB PLCF field FTN. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcFld begins at this offset and specifies the locations of field characters in the Comment Document. All CPs in this PlcFld are relative to the starting position of the Comment Document. The fc PLCF field atn. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcFld at offset fcPlcfFldAtn in the Table Stream. The LCB PLCF field atn. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc PLCF field MCR. Gets or sets This value MUST be zero, and MUST be ignored. The LCB PLCF field MCR. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbfBkmk that contains the names of the bookmarks (1) in the document begins at this offset. The fc STTBF BKMK. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfBkmk at offset fcSttbfBkmk. The LCB STTBF BKMK. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfBkf that contains information about the standard bookmarks (1) in the document begins at this offset. If lcbPlcfBkf is zero, fcPlcfBkf is undefined and MUST be ignored. The fc PLCF BKF. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfBkf at offset fcPlcfBkf. The LCB PLCF BKF. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfBkl that contains information about the standard bookmarks (1) in the document begins at this offset. The fc PLCF BKL. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfBkl at offset fcPlcfBkl. The LCB PLCF BKL. Gets or sets An unsigned integer that specifies the offset in the Table Stream of a Tcg that specifies command-related customizations. If lcbCmds is zero, fcCmds is undefined and MUST be ignored. The fc CMDS. Gets or sets An unsigned integer that specifies the size, in bytes, of the Tcg at offset fcCmds. The LCB CMDS. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc unused1. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused1. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc STTBF MCR. Gets or sets This value MUST be zero, and MUST be ignored. The LCB STTBF MCR. Gets or sets An unsigned integer that specifies an offset in the Table Stream. The PrDrvr, which contains printer driver information (the names of drivers, port, and so on), begins at this offset. The fc pr DRVR. Gets or sets An unsigned integer that specifies the size, in bytes, of the PrDrvr at offset fcPrDrvr. The LCB pr DRVR. Gets or sets An unsigned integer that specifies an offset in the Table Stream. The PrEnvPort that is the print environment in portrait mode begins at this offset. If lcbPrEnvPort is zero, fcPrEnvPort is undefined and MUST be ignored. The fc pr env port. Gets or sets An unsigned integer that specifies the size, in bytes, of the PrEnvPort at offset fcPrEnvPort. The LCB pr env port. Gets or sets An unsigned integer that specifies an offset in the Table Stream. The PrEnvLand that is the print environment in landscape mode begins at this offset. If lcbPrEnvLand is zero, fcPrEnvLand is undefined and MUST be ignored. The fc pr env land. Gets or sets An unsigned integer that specifies the size, in bytes, of the PrEnvLand at offset fcPrEnvLand. The LCB pr env land. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A Selsf begins at this offset and specifies the last selection that was made in the Main Document. If lcbWss is zero, fcWss is undefined and MUST be ignored. The fc WSS. Gets or sets An unsigned integer that specifies the size, in bytes, of the Selsf at offset fcWss. The LCB WSS. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A Dop begins at this offset. The fc dop. Gets or sets An unsigned integer that specifies the size, in bytes, of the Dopat fcDop. This value MUST NOT be zero. The LCB dop. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbfAssoc that contains strings that are associated with the document begins at this offset. The fc STTBF assoc. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfAssoc at offset fc SttbfAssoc. This value MUST NOT be zero. The LCB STTBF assoc. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A Clx begins at this offset. The fc CLX. Gets or sets An unsigned integer that specifies the size, in bytes, of the Clx at offset fcClx in the Table Stream. This value MUST be greater than zero. The LCB CLX. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc PLCF PGD FTN. Gets or sets This value MUST be zero, and MUST be ignored. The LCB PLCF PGD FTN. Gets or sets This value is undefined and MUST be ignored. The fib rg fc LCB97 fc autosave source. Gets or sets This value MUST be zero and MUST be ignored. The LCB autosave source. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An array of XSTs begins at this offset. The value of cch for all XSTs in this array MUST be less than 56. The number of entries in this array is limited to 0x7FFF. The fc GRP XST atn owners. Gets or sets An unsigned integer that specifies the size, in bytes, of the XST array at offset fcGrpXstAtnOwners in the Table Stream. The LCB GRP XST atn owners. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbfAtnBkmk that contains information about the annotation bookmarks in the document begins at this offset. The fc STTBF atn BKMK. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfAtnBkmk at offset fcSttbfAtnBkmk. The LCB STTBF atn BKMK. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc unused2. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused2. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc unused3. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused3. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfSpa begins at this offset. The PlcfSpa contains shape information for the Main Document. The fc PLC spa mom. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfSpa at offset fcPlcSpaMom. The LCB PLC spa mom. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfSpa begins at this offset. The PlcfSpa contains shape information for the Header Document. The fc PLC spa HDR. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfSpa at the offset fcPlcSpaHdr. The LCB PLC spa HDR. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfBkf that contains information about annotation bookmarks in the document begins at this offset. If lcbPlcfAtnBkf is zero, fcPlcfAtnBkf is undefined and MUST be ignored. The LCB PLC spa HDR. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfBkf at offset fcPlcfAtnBkf. The LCB PLCF atn BKF. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfBkl that contains information about annotation bookmarks in the document begins at this offset. If lcbPlcfAtnBkl is zero, then fcPlcfAtnBkl is undefined and MUST be ignored. The fc PLCF atn BKL. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfBkl at offset fcPlcfAtnBkl. The LCB PLCF atn BKL. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A Pms, which contains the current state of a print merge operation, begins at this offset. If lcbPms is zero, fcPms is undefined and MUST be ignored. The fc PMS. Gets or sets An unsigned integer which specifies the size, in bytes, of the Pms at offset fcPms. The LCB PMS. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc form field STTBS. Gets or sets This value MUST be zero, and MUST be ignored. The LCB form field STTBS. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfendRef that begins at this offset specifies the locations of endnote references in the Main Document and whether those references use auto-numbering or custom symbols. The fc plcfend reference. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfendRef that begins at offset fcPlcfendRef in the Table Stream. The LCB plcfend reference. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfendTxt begins at this offset and specifies the locations of each block of endnote text in the Endnote Document. If lcbPlcfendTxt is zero, fcPlcfendTxt is undefined and MUST be ignored. The fc plcfend text. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfendTxt that begins at offset fcPlcfendTxt in the Table Stream. The LCB plcfend text. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcFld begins at this offset and specifies the locations of field characters in the Endnote Document. The fc PLCF field edn. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcFld at offset fcPlcfFldEdn in the Table Stream. The LCB PLCF field edn. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc unused4. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused4. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An OfficeArtContent that contains information about the drawings in the document begins at this offset. The fc DGG information. Gets or sets An unsigned integer that specifies the size, in bytes, of the OfficeArtContent at the offset fcDggInfo. If lcbDggInfo is zero, there MUST NOT be any drawings in the document. The LCB DGG information. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbfRMark that contains the names of authors who have added revision marks or comments to the document begins at this offset. The fc STTBF r mark. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfRMark at the offset fcSttbfRMark. The LCB STTBF r mark. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbfCaption that contains information about the captions that are defined in this document begins at this offset. The fc STTBF caption. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfCaption at offset fcSttbfCaption in the Table Stream. If base.fDot of the Fib that contains this FibRgFcLcb97 is zero, this value MUST be zero. The LCB STTBF caption. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A SttbfAutoCaption that contains information about the AutoCaption strings defined in this document begins at this offset. The fc STTBF automatic caption. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfAutoCaption at offset fcSttbfAutoCaption in the Table Stream. If base.fDot of the Fib that contains this FibRgFcLcb97 is zero, this MUST be zero. The LCB STTBF automatic caption. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfWKB that contains information about all master documents and subdocuments begins at this offset. The fc PLCF WKB. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfWKB at offset fcPlcfWkb in the Table Stream. If lcbPlcfWkb is zero, fcPlcfWkb is undefined and MUST be ignored. The LCB PLCF WKB. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A Plcfspl, which specifies the state of the spell checker for each text range, begins at this offset. If lcbPlcfSpl is zero, then fcPlcfSpl is undefined and MUST be ignored. The fc PLCF SPL. Gets or sets An unsigned integer that specifies the size, in bytes, of the Plcfspl that begins at offset fcPlcfSpl in the Table Stream. The LCB PLCF SPL. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcftxbxTxt begins at this offset and specifies which ranges of text are contained in which textboxes. If lcbPlcftxbxTxt is zero, fcPlcftxbxTxt is undefined and MUST be ignored. The fc PLCFTXBX text. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcftxbxTxt that begins at offset fcPlcftxbxTxt in the Table Stream. The LCB PLCFTXBX text. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcFld begins at this offset and specifies the locations of field characters in the Textbox Document. All CPs in this PlcFld are relative to the starting position of the Textbox Document. The fc PLCF field TXBX. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcFld at offset fcPlcfFldTxbx in the Table Stream. The LCB PLCF field TXBX. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfHdrtxbxTxt begins at this offset and specifies which ranges of text are contained in which header textboxes. The fc PLCF HDRTXBX text. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfHdrtxbxTxt that begins at offset fcPlcfHdrtxbxTxt in the Table Stream. The LCB PLCF HDRTXBX text. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcFld at offset fcPlcffldHdrTxbx in the Table Stream. The fc PLCFFLD HDR TXBX. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcFld at offset fcPlcffldHdrTxbx in the Table Stream. The LCB PLCFFLD HDR TXBX. Gets or sets An unsigned integer that specifies an offset into the Table Stream. An StwUser that specifies the user-defined variables and VBAdigital signature (2), as specified by [MS-OSHARED] section 2.3.2, begins at this offset. The fc STW user. Gets or sets An unsigned integer that specifies the size, in bytes, of the StwUser at offset fcStwUser. The LCB STW user. Gets or sets An unsigned integer that specifies an offset into the Table Stream. A SttbTtmbd begins at this offset and specifies information about the TrueType fonts that are embedded in the document. If lcbSttbTtmbd is zero, fcSttbTtmbd is undefined and MUST be ignored. The fc STTB TTMBD. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbTtmbd at offset fcSttbTtmbd. The LCB STTB TTMBD. Gets or sets An unsigned integer that specifies the size, in bytes, of the RgCdb at offset fcCookieData in the Table Stream. The LCB cookie data. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated document page layout cache at offset fcPgdMotherOldOld in the Table Stream. The LCB PGD mother old old. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated document text flow break cache at offset fcBkdMotherOldOld in the Table Stream. The LCB BKD mother old old. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated footnote layout cache at offset fcPgdFtnOldOld in the Table Stream. The LCB PGD FTN old old. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated footnote text flow break cache at offset fcBkdFtnOldOld in the Table Stream. The LCB BKD FTN old old. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated endnote layout cache at offset fcPgdEdnOldOld in the Table Stream. The LCB PGD edn old old. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated endnote text flow break cache at offset fcBkdEdnOldOld in the Table Stream. The LCB BKD edn old old. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc STTBF intl field. Gets or sets This value MUST be zero, and MUST be ignored. The LCB STTBF intl field. Gets or sets An unsigned integer that specifies the size, in bytes, of the RouteSlip at offset fcRouteSlip in the Table Stream. The LCB route slip. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbFnm that contains information about the external files that are referenced by this document begins at this offset. If lcbSttbFnm is zero, fcSttbFnm is undefined and MUST be ignored. The fc STTB FNM. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbFnm at the offset fcSttbFnm. The LCB STTB FNM. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlfLst that contains list formatting information begins at this offset. An array of LVLs is appended to the PlfLst. The fc PLF LST. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlfLst at the offset fcPlfLst. This does not include the size of the array of LVLs that are appended to the PlfLst. The LCB PLF LST. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlfLfo that contains list formatting override information begins at this offset. If lcbPlfLfo is zero, fcPlfLfo is undefined and MUST be ignored. The fc PLF lfo. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlfLfo at the offset fcPlfLfo. The LCB PLF lfo. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcftxbxBkd begins at this offset and specifies which ranges of text go inside which textboxes. The fc PLCF TXBX BKD. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcftxbxBkd that begins at offset fcPlcfTxbxBkd in the Table Stream. The LCB PLCF TXBX BKD. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfTxbxHdrBkd begins at this offset and specifies which ranges of text are contained inside which header textboxes. The fc PLCF TXBX HDR BKD. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfTxbxHdrBkd that begins at offset fcPlcfTxbxHdrBkd in the Table Stream. The LCB PLCF TXBX HDR BKD. Gets or sets An unsigned integer. If this is nonzero, version-specific undo information exists at offset fcDocUndoWord9 in the WordDocument Stream. The LCB document undo word9. Gets or sets An unsigned integer that specifies the size, in bytes, of the version-specific undo information at offset fcRgbUse in the WordDocument Stream. The LCB RGB use. Gets or sets An unsigned integer that specifies the size, in bytes, of the version-specific undo information at offset fcUsp in the WordDocument Stream. The LCB usp. Gets or sets An unsigned integer that specifies the size, in bytes, of the version-specific undo informatio at offset fcUskf in the Table Stream. The LCB uskf. Gets or sets An unsigned integer that specifies the size, in bytes, of the Plc at offset fcPlcupcRgbUse in the Table Stream. The LCB plcupc RGB use. Gets or sets An unsigned integer that specifies the size, in bytes, of the Plc at offset fcPlcupcUsp in the Table Stream. The LCB plcupc usp. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A SttbGlsyStyle, which contains information about the styles that are used by the AutoText items which are defined in this document, begins at this offset. The fc STTB glsy style. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbGlsyStyle at offset fcSttbGlsyStyle in the Table Stream. If base.fGlsy of the Fib that contains this FibRgFcLcb97 is zero, this value MUST be zero. The LCB STTB glsy style. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlfGosl begins at the offset. If lcbPlgosl is zero, fcPlgosl is undefined and MUST be ignored. The fc plgosl. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlfGosl at offset fcPlgosl in the Table Stream. The LCB plgosl. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A RgxOcxInfo that specifies information about the OLE controls in the document begins at this offset. The fc plcocx. Gets or sets An unsigned integer that specifies the size, in bytes, of the RgxOcxInfo at the offset fcPlcocx. The LCB plcocx. Gets or sets The low-order part of a FILETIME structure, as specified by [MS-DTYP], that specifies when the document was last saved. The dw low date time. Gets or sets The high-order part of a FILETIME structure, as specified by [MS-DTYP], that specifies when the document was last saved. The dw high date time. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfAsumy begins at the offset. If lcbPlcfAsumy is zero, fcPlcfAsumy is undefined and MUST be ignored. The fc PLCF asumy. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfAsumy at offset fcPlcfAsumy in the Table Stream. The LCB PLCF asumy. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A Plcfgram, which specifies the state of the grammar checker for each text range, begins at this offset. If lcbPlcfGram is zero, then fcPlcfGram is undefined and MUST be ignored. The fc PLCF gram. Gets or sets An unsigned integer that specifies the size, in bytes, of the Plcfgram that begins at offset fcPlcfGram in the Table Stream. The LCB PLCF gram. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A SttbListNames, which specifies the LISTNUM field names of the lists in the document, begins at this offset. The fc STTB list names. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbListNames at the offset fcSttbListNames. The LCB STTB list names. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated, version-specific undo information at offset fcSttbfUssr in the Table Stream. The LCB STTBF ussr. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfTch at offset fcPlcfTch. The LCB PLCF TCH. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An RmdThreading that specifies the data concerning the e-mail messages and their authors in this document begins at this offset. The fc RMD threading. Gets or sets An unsigned integer that specifies the size, in bytes, of the RmdThreading at the offset fcRmdThreading. This value MUST NOT be zero. The LCB RMD threading. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A double-byte character Unicode string that specifies the message identifier of the document begins at this offset. This value MUST be ignored. The fc mid. Gets or sets An unsigned integer that specifies the size, in bytes, of the double-byte character Unicode string at offset fcMid. This value MUST be ignored. The LCB mid. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A SttbRgtplc that specifies the styles of lists in the document begins at this offset. If lcbSttbRgtplc is zero, fcSttbRgtplc is undefined and MUST be ignored. The fc STTB RGTPLC. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbRgtplc at the offset fcSttbRgtplc. The LCB STTB RGTPLC. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An MsoEnvelopeCLSID, which specifies the envelope data as specified by [MS-OSHARED] section 2.3.8.1, begins at this offset. If lcbMsoEnvelope is zero, fcMsoEnvelope is undefined and MUST be ignored. The fc mso envelope. Gets or sets An unsigned integer that specifies the size, in bytes, of the MsoEnvelopeCLSID at the offset fcMsoEnvelope. The LCB mso envelope. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A Plcflad begins at this offset and specifies the language auto-detect state of each text range. If lcbPlcfLad is zero, fcPlcfLad is undefined and MUST be ignored. The fc PLCF lad. Gets or sets an unsigned integer that specifies the size, in bytes, of the Plcflad that begins at offset fcPlcfLad in the Table Stream. The LCB PLCF lad. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A variable-length array with elements of type Dofrh begins at that offset. The elements of this array are records that support the frame set and list style features. If lcbRgDofr is zero, fcRgDofr is undefined and MUST be ignored. The fc rg dofr. Gets or sets an unsigned integer that specifies the size, in bytes, of the array that begins at offset fcRgDofr in the Table Stream. The LCB rg dofr. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PlfCosl begins at the offset. If lcbPlcosl is zero, fcPlcosl is undefined and MUST be ignored. The fc plcosl. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlfCosl at offset fcPlcosl in the Table Stream. The LCB plcosl. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlcfcookieOld at offset fcPlcfcookieOld in the Table Stream. The LCB PLCF cookie old. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated document page layout cache at offset fcPgdMotherOld in the Table Stream. The LCB PGD mother old. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated document text flow break cache at offset fcBkdMotherOld in the Table Stream. The LCB BKD mother old. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated footnote layout cache at offset fcPgdFtnOld in the Table Stream. The LCB PGD FTN old. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated footnote text flow break cache at offset fcBkdFtnOld in the Table Stream. The LCB BKD FTN old. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated endnote layout cache at offset fcPgdEdnOld in the Table Stream. The LCB PGD edn old. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated endnote text flow break cache at offset fcBkdEdnOld in the Table Stream. The LCB BKD edn old. Gets or sets the fc unused1. This value is undefined and MUST be ignored. The fc unused1. Gets or sets the LCB unused1.This value MUST be zero, and MUST be ignored The LCB unused1. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PGPArray begins at this offset. If lcbPlcfPgp is 0, fcPlcfPgp is undefined and MUST be ignored. The fc PLCF PGP. Gets or sets an unsigned integer that specifies the size, in bytes, of the PGPArray that is stored at offset fcPlcfPgp. The LCB PLCF PGP. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A Plcfuim begins at this offset. If lcbPlcfuim is zero, fcPlcfuim is undefined and MUST be ignored. The fc plcfuim. Gets or sets an unsigned integer that specifies the size, in bytes, of the Plcfuim at offset fcPlcfuim. The LCB plcfuim. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PlfguidUim begins at this offset. If lcbPlfguidUim is zero, fcPlfguidUim is undefined and MUST be ignored. The fc plfguid uim. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlfguidUim at offset fcPlfguidUim. The LCB plfguid uim. Gets or sets an unsigned integer that specifies an offset in the Table Stream. An AtrdExtra begins at this offset. If lcbAtrdExtra is zero, fcAtrdExtra is undefined and MUST be ignored. The fc atrd extra. Gets or sets an unsigned integer that specifies the size, in bytes, of the AtrdExtra at offset fcAtrdExtra in the Table Stream. The LCB atrd extra. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PLRSID begins at this offset. If lcbPlrsid is zero, fcPlrsid is undefined and MUST be ignored. The fc plrsid. Gets or sets an unsigned integer that specifies the size, in bytes, of the PLRSID at offset fcPlrsid in the Table Stream. The LCB plrsid. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbfBkmkFactoid containing information about smart tag bookmarks in the document begins at this offset. If lcbSttbfBkmkFactoid is zero, fcSttbfBkmkFactoid is undefined and MUST be ignored. The fc STTBF BKMK factoid. Gets or sets an unsigned integer that specifies the size, in bytes, of the SttbfBkmkFactoid at offset fcSttbfBkmkFactoid. The LCB STTBF BKMK factoid. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfBkfd that contains information about the smart tag bookmarks in the document begins at this offset. If lcbPlcfBkfFactoid is zero, fcPlcfBkfFactoid is undefined and MUST be ignored. The fc PLCF BKF factoid. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlcfBkfd at offset fcPlcfBkfFactoid. The LCB PLCF BKF factoid. Gets or sets an unsigned integer that specifies the size, in bytes, of the Plcfcookie at offset fcPlcfcookie in the Table Stream. The LCB plcfcookie. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A Plcfbkld that contains information about the smart tag bookmarks in the document begins at this offset. If lcbPlcfBklFactoid is zero, fcPlcfBklFactoid is undefined and MUST be ignored. The fc PLCF BKL factoid. Gets or sets an unsigned integer that specifies the size, in bytes, of the Plcfbkld at offset fcPlcfBklFactoid. The LCB PLCF BKL factoid. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A SmartTagData begins at this offset and specifies information about the smart tag recognizers that are used in this document. If lcbFactoidData is zero, fcFactoidData is undefined and MUST be ignored. The fc factoid data. Gets or sets an unsigned integer that specifies the size, in bytes, of the SmartTagData at offset fcFactoidData in the Table Stream. The LCB factoid data. Gets or sets An unsigned integer. If this value is nonzero, version-specific undo information exists at offset fcDocUndo in the WordDocument Stream. The LCB document undo. Gets or sets an unsigned integer that specifies an offset in the Table Stream. An SttbfBkmkFcc that contains information about the format consistency-checker bookmarks in the document begins at this offset. If lcbSttbfBkmkFcc is zero, fcSttbfBkmkFcc is undefined and MUST be ignored. The fc STTBF BKMK FCC. Gets or sets an unsigned integer that specifies the size, in bytes, of the SttbfBkmkFcc at offset fcSttbfBkmkFcc. The LCB STTBF BKMK FCC. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfBkfd that contains information about format consistency-checker bookmarks in the document begins at this offset. If lcbPlcfBkfFcc is zero, fcPlcfBkfFcc is undefined and MUST be ignored. The fc PLCF BKF FCC. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlcfBkfd at offset fcPlcfBkfFcc. The LCB PLCF BKF FCC. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PlcfBkld that contains information about the format consistency-checker bookmarks in the document begins at this offset. If lcbPlcfBklFcc is zero, fcPlcfBklFcc is undefined and MUST be ignored. The fc PLCF BKL FCC. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlcfBkld at offset fcPlcfBklFcc. The LCB PLCF BKL FCC. Gets or sets an unsigned integer that specifies an offset in the Table Stream. An SttbfBkmkBPRepairs that contains information about the repair bookmarks in the document begins at this offset. If lcbSttbfBkmkBPRepairs is zero, fcSttbfBkmkBPRepairs is undefined and MUST be ignored. The fc STTBFBKMK bp repairs. Gets or sets an unsigned integer that specifies the size, in bytes, of the SttbfBkmkBPRepairs at offset fcSttbfBkmkBPRepairs. The LCB STTBFBKMK bp repairs. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PlcfBkf that contains information about the repair bookmarks in the document begins at this offset. If lcbPlcfBkfBPRepairs is zero, fcPlcfBkfBPRepairs is undefined and MUST be ignored. The fc PLCFBKF bp repairs. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlcfBkf at offset fcPlcfbkfBPRepairs. The LCB PLCFBKF bp repairs. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PlcfBkl that contains information about the repair bookmarks in the document begins at this offset. If lcbPlcfBklBPRepairs is zero, fcPlcfBklBPRepairs is undefined and MUST be ignored. The fc PLCFBKL bp repairs. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlcfBkl at offset fcPlcfBklBPRepairs. The LCB PLCFBKL bp repairs. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A new Pms, which contains the current state of a print merge operation, begins at this offset. If lcbPmsNew is zero, fcPmsNew is undefined and MUST be ignored. The fc PMS new. Gets or sets an unsigned integer which specifies the size, in bytes, of the Pms at offset fcPmsNew. The LCB PMS new. Gets or sets an unsigned integer that specifies an offset in the Table Stream. Office Data Source Object (ODSO) data that is used to perform mail merge begins at this offset. The data is stored in an array of ODSOPropertyBase items. The ODSOPropertyBase items are of variable size and are stored contiguously. The complete set of properties that are contained in the array is determined by reading each ODSOPropertyBase, until a total of lcbODSO bytes of data are read. If lcbODSO is zero, fcODSO is undefined and MUST be ignored. The fc odso. Gets or sets an unsigned integer that specifies the size, in bytes, of the Office Data Source Object data at offset fcODSO in the Table Stream. The LCB odso. Gets or sets the fc unused2.This value is undefined and MUST be ignored. The fc unused2. Gets or sets the LCB unused2.This value MUST be zero, and MUST be ignored. The LCB unused2. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A Plcffactoid, which specifies the smart tag recognizer state of each text range, begins at this offset. If lcbPlcffactoid is zero, fcPlcffactoid is undefined and MUST be ignored. The fc plcffactoid. Gets or sets an unsigned integer that specifies the size, in bytes of the Plcffactoid that begins at offset fcPlcffactoid in the Table Stream. The LCB plcffactoid. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An Hplxsdr structure begins at this offset. This structure specifies information about XML schema definition references. The fc HPLXSDR. Gets or sets An unsigned integer that specifies the size, in bytes, of the Hplxsdr structure at the offset fcHplxsdr in the Table Stream. If lcbHplxsdr is zero, then fcHplxsdr is undefined and MUST be ignored. The LCB HPLXSDR. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbfBkmkSdt that contains information about the structured document tag bookmarks in the document begins at this offset. If lcbSttbfBkmkSdt is zero, then fcSttbfBkmkSdt is undefined and MUST be ignored. The fc STTBF BKMK SDT. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfBkmkSdt at offset fcSttbfBkmkSdt. The LCB STTBF BKMK SDT. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcBkfd that contains information about the structured document tag bookmarks in the document begins at this offset. If lcbPlcfBkfSdt is zero, fcPlcfBkfSdt is undefined and MUST be ignored. The fc PLCF BKF SDT. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcBkfd at offset fcPlcfBkfSdt. The LCB PLCF BKF SDT. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcBkld that contains information about the structured document tag bookmarks in the document begins at this offset. If lcbPlcfBklSdt is zero, fcPlcfBklSdt is undefined and MUST be ignored. The fc PLCF BKL SDT. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcBkld at offset fcPlcfBklSdt. The LCB PLCF BKL SDT. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An array of 16-bit Unicode characters, which specifies the full path and file name of the XML Stylesheet to apply when saving this document in XML format, begins at this offset. If lcbCustomXForm is zero, fcCustomXForm is undefined and MUST be ignored. The fc custom x form. Gets or sets an unsigned integer that specifies the size, in bytes, of the array at offset fcCustomXForm in the Table Stream. This value MUST be less than or equal to 4168 and MUST be evenly divisible by two. The LCB custom x form. Gets or sets an unsigned integer that specifies an offset in the Table Stream. An SttbfBkmkProt that contains information about range-level protection bookmarks in the document begins at this offset. If lcbSttbfBkmkProt is zero, fcSttbfBkmkProt is undefined and MUST be ignored. The fc STTBF BKMK prot. Gets or sets an unsigned integer that specifies the size, in bytes, of the SttbfBkmkProt at offset fcSttbfBkmkProt. The LCB STTBF BKMK prot. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PlcBkf that contains information about range-level protection bookmarks in the document begins at this offset. If lcbPlcfBkfProt is zero, then fcPlcfBkfProt is undefined and MUST be ignored. The fc PLCF BKF prot. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlcBkf at offset fcPlcfBkfProt. The LCB PLCF BKF prot. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PlcBkl containing information about range-level protection bookmarks in the document begins at this offset. If lcbPlcfBklProt is zero, then fcPlcfBklProt is undefined and MUST be ignored. The fc PLCF BKL prot. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlcBkl at offset fcPlcfBklProt. The LCB PLCF BKL prot. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A SttbProtUser that specifies the usernames that are used for range-level protection begins at this offset. The fc STTB prot user. Gets or sets an unsigned integer that specifies the size, in bytes, of the SttbProtUser at the offset fcSttbProtUser. The LCB STTB prot user. Gets or sets this value MUST be zero, and MUST be ignored. The fc unused. Gets or sets this value MUST be zero, and MUST be ignored. The LCB unused. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated document page layout cache at offset fcPgdMother in the Table Stream. The fc PGD mother. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated document text flow break cache at offset fcBkdMother in the Table Stream. The fc BKD mother. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated document text flow break cache at offset fcBkdMother in the Table Stream. The LCB BKD mother. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated document author filter cache at offset fcAfdMother in the Table Stream. The LCB afd mother. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated footnote layout cache at offset fcPgdFtn in the Table Stream. The LCB PGD FTN. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated footnote text flow break cache at offset fcBkdFtn in the Table Stream. The LCB BKD FTN. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated footnote author filter cache at offset fcAfdFtn in the Table Stream. The LCB afd FTN. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated endnote layout cache at offset fcPgdEdn in the Table Stream. The LCB PGD edn. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated endnote text flow break cache at offset fcBkdEdn in the Table Stream. The LCB BKD edn. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated endnote author filter cache at offset fcAfdEdn in the Table Stream. The LCB afd edn. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated AFD structure at offset fcAfd in the Table Stream. The LCB afd. Gets or sets This value is undefined and MUST be ignored. The fc PLCFMTHD. Gets or sets This value MUST be zero, and MUST be ignored. The LCB PLCFMTHD. Gets or sets This value is undefined and MUST be ignored. The fc STTBF BKMK move from. Gets or sets This value MUST be zero, and MUST be ignored. The LCB STTBF BKMK move from. Gets or sets This value is undefined and MUST be ignored The fc PLCF BKF move from. Gets or sets This value MUST be zero, and MUST be ignored. The LCB PLCF BKF move from. Gets or sets This value is undefined and MUST be ignored. The fc PLCF BKL move from. Gets or sets This value MUST be zero, and MUST be ignored. The LCB PLCF BKL move from. Gets or sets This value is undefined and MUST be ignored. The fc STTBF BKMK move to. Gets or sets This value MUST be zero, and MUST be ignored. The LCB STTBF BKMK move to. Gets or sets This value is undefined and MUST be ignored. The fc PLCF BKF move to. Gets or sets This value MUST be zero, and MUST be ignored. The LCB PLCF BKF move to. Gets or sets This value is undefined and MUST be ignored. The fc PLCF BKL move to. Gets or sets This value MUST be zero, and MUST be ignored. The LCB PLCF BKL move to. Gets or sets This value is undefined and MUST be ignored. The fc unused1. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused1. Gets or sets This value is undefined and MUST be ignored The fc unused2. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused2. Gets or sets This value is undefined and MUST be ignored. The fc unused3. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused3. Gets or sets This value is undefined and MUST be ignored. The fc STTBF BKMK arto. Gets or sets This value MUST be zero, and MUST be ignored. The LCB STTBF BKMK arto. Gets or sets This value is undefined and MUST be ignored. The fc PLCF BKF arto. Gets or sets This value MUST be zero, and MUST be ignored The LCB PLCF BKF arto. Gets or sets Undefined and MUST be ignored. The fc PLCF BKL arto. Gets or sets MUST be zero, and MUST be ignored. The LCB PLCF BKL arto. Gets or sets This value is undefined and MUST be ignored. The fc arto data. Gets or sets This value MUST be zero, and MUST be ignored. The LCB arto data. Gets or sets This value is undefined and MUST be ignored. The fc unused4. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused4. Gets or sets This value is undefined and MUST be ignored. The fc unused5. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused5. Gets or sets This value is undefined and MUST be ignored. The fc unused6. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused6. Gets or sets This value is undefined and MUST be ignored. The fc oss theme. Gets or sets This value is undefined and MUST be ignored. The fc color scheme mapping. Gets or sets an unsigned integer that specifies the count of 16-bit values corresponding to fibRgCswNew that follow. This MUST be one of the following values, depending on the value of nFib. Value of nFib cswNew 0x00C1 0 0x00D9 0x0002 0x0101 0x0002 0x010C 0x0002 0x0112 0x0005 The CSW new. Gets or sets an unsigned integer that specifies the version number of the file format that is used. This value MUST be one of the following. 0x00D9 0x0101 0x010C 0x0112 The n fib new. Gets or sets an unsigned integer that specifies the number of times that this document was incrementally saved since the last full save. This value MUST be between 0 and 0x000F, inclusively. The c quick saves new. Gets or sets the lid theme other. This value is undefined and MUST be ignored. The lid theme other. Gets or sets the lid theme far east. This value is undefined and MUST be ignored. The lid theme fe. Gets or sets the lid theme complex script. This value is undefined and MUST be ignored. The lid theme cs. Gets the size of the encoding character. The size of the encoding character. Gets or sets the encoding. The encoding. Summary description for MD5_CTX. scratch buffer input buffer actual digest after MD5Final call Updates The input buf. The buffer length. Finals this instance. Stores the digest. F(x, y, z) The x. The y. The z. G(x, y, z) The x. The y. The z. H(x, y, z) The x. The y. The z. I(x, y, z) The x. The y. The z. ROTATE_LEFT The x. The n. FF A. The b. The c. The d. The x. The s. The ac. GG A. The b. The c. The d. The x. The s. The ac. HH A. The b. The c. The d. The x. The s. The ac. II A. The b. The c. The d. The x. The s. The ac. Transforms the specified inn. The inn. Gets the I. The I. Gets the buffer. The buffer. Gets the input buffer. The input buffer. Gets the digest. The digest. This class contains utility methods used by Word 2007 and Word 2010 Encryption/Decryption implementation. Number of iterations used for key generation. Name of encryption info stream. Name of dataspaces storage. Name of dataspace map stream. Name of the transform primary stream. Name of dataspace info storage. Name of transform info storage. Name of encrypted package stream. Gets the type of the encryption. The storage. Reads Int32 value from the stream. Stream to get data from. Temporary buffer to put extracted bytes into. Extracted Int32 value. Extracts padded unicode string from a stream. Stream to get data from. Extracted string. Read zero-terminated string from the stream. Stream to get string from. Extracted string (without trailing zero). Writes Int32 value into the stream. Stream to put data into. Value to write. Writes padded unicode string from a stream. Stream to get data from. Value to write. Writes zero-terminated string into the stream. Stream to put string into. Value to write. Creates key object based on the salt and password. Password to use. Salt to use. Required key length. Array with created key. Creates the agile encryption key. The password. The salt. The block key. Length of the key. The iteration count. Encrypts/decrypts buffer with specified method. Data to process. Method to use. Size of the encryption block. Modified (encrypted/decrypted) data. Combines two arrays into one. The first buffer to combine. The second buffer to combine. Combined array. Corrects the size. The hash buf. The size. The padding. Concatenates the IV. The data. The IV. Compares the array. The buffer1. The buffer2. Represents type of the encryption. Word 2007 encryption format. Word 2010 encryption format. Wrong encryption format. This class is responsible for decryption of Standard encryption (Word 2007) files. Size of the decryption block. Dataspace map. Encryption info. Compound storage that should be decrypted. Array containing key data. Security helper contains utility methods for encryption/decryption. Decrypts internal storage. Decrypted stream. Prepares decryptor for actual decryption. Compound storage to get required data from. Checks whether password is correct. Password to check. True if password verification succeeded. Decrypts specified buffer. Extracts transform data from the storage. Storage to get data from. Extracts dataspace map from the storage. Storage to get data from. Extracts TransformInfo from the storage. Storage to get data from. Represents the standard encryption info for Encryption/Decryption of Word documents. A Version structure where Version.vMajor MUST be 0x0003, and Version.vMinor MUST be 0x0002. A copy of the Flags stored in the EncryptionHeader field of this structure. An EncryptionHeader structure that specifies parameters used to encrypt data. An EncryptionVerifier structure. Security helper contains utility methods for encryption/decryption. Default constructor. Initializes new instance. Stream to get data from. Serializes object into stream. Stream to serialize into. A Version structure where Version.vMajor MUST be 0x0003, and Version.vMinor MUST be 0x0002. A copy of the Flags stored in the EncryptionHeader field of this structure. An EncryptionHeader structure that specifies parameters used to encrypt data. An EncryptionVerifier structure. This class used to encrypt data using Standard encryption (Word 2007) with AES 128 encryption algorithm and SHA-1 hashing algorithm. Key length. Default version. Default flags. Encryption algorithm id (AES-128). Hashing algorithm id (SHA-1). Provider type. Default CSP name. Security helper contains utility methods for encryption/decryption. Encrypts specified stream. Data to encrypt. Password to use. Root storage to put encrypted data into. Preparse data spaces structures inside specified storage. Storage to put DataSpaces inside. Serializes VersionInfo stream inside specified storage. Storage to serialize VersionInfo into. Serializes transformation info. Storage to serialize into. Serializes dataspace info. Storage to serialize into. Serializes DataSpaceMap stream. Storage to place stream into. Prepare EncryptionInfo record and stores it in appropriate stream. Root storage. Encryption password. Encryption key. Creates random salt. Desired salt length. Array with random data. Encrypts specified buffer. Data to encrypt. Encryption key. Encrypted data. Encrypt specified stream. Stream to encrypt. Encryption key. Output stream. Represents the transform info header for Encryption/Decryption of Word documents. An unsigned integer that specifies the type of transform to be applied. An identifier associated with a specific transform. The friendly name of the transform. The reader version. The updater version. The writer version. Security helper contains utility methods for encryption/decryption. Default constructor. Initializes new instance of the class. Stream to get data from. Serializes object into stream. Stream to serialize into. An unsigned integer that specifies the type of transform to be applied. An identifier associated with a specific transform. The friendly name of the transform. The reader version. The updater version. The writer version. Represents the version information for Encryption/Decryption of Word documents. The functionality for which the DataSpaceVersionInfo structure specifies version information. MUST be "Microsoft.Container.DataSpaces". The reader version of the data spaces structure. The updater version of the data spaces structure. The writer version of the data spaces structure. Security helper contains utility methods for encryption/decryption. Default constructor. Serializes object into specified stream. Stream to serialize into. The functionality for which the DataSpaceVersionInfo structure specifies version information. MUST be "Microsoft.Container.DataSpaces". The reader version of the data spaces structure. The updater version of the data spaces structure. The writer version of the data spaces structure. Represents the xml encryption descriptor for Encryption/Decryption of Word 2010/2013 documents. Specifies the key data used for Encryption/Decryption. Specifies the data integrity used for Encryption/Decryption. Specifies the key encryptors used for Encryption/Decryption. Default constructor. Parses the specified stream. The stream. Serializes object into stream. Stream to serialize into. Create xml writer The stream returns the xml writer Gets or sets the key data. The key data. Gets or sets the data integrity. The data integrity. Gets or sets the key encryptors. The key encryptors. Represents the key data for Encryption/Decryption of Word 2010 documents. Specifies the number of bytes used by salt. Specifies the number of bytes used to encrypt one block of data. Specifies the number of bits used by encryption algorithm. Specifies the number of bytes used by hash value. Specifies the cipher algorithm. Specifies the chaining mode used by the cipher algorithm. Specifies the hashing algorithm. Specifies the salt value. Default constructor. Parses the specified reader. The reader. Serializes the specified writer. The writer. Gets or sets the size of the salt. The size of the salt. Gets or sets the size of the block. The size of the block. Gets or sets the key bits. The key bits. Gets or sets the size of the hash. The size of the hash. Gets or sets the cipher algorithm. The cipher algorithm. Gets or sets the cipher chaining. The cipher chaining. Gets or sets the hash algorithm. The hash algorithm. Gets or sets the salt. The salt. Represents the data integrity for Encryption/Decryption of Word 2010 documents. Specifies an encrypted key used for generating the encryptedHmacValue. Specifies an HMAC derived from the encryptedHmacKey and the encrypted data. Default constructor. Parses the specified reader. The reader. Serializes the specified writer. The writer. Gets or sets the encrypted hmac key. The encrypted hmac key. Gets or sets the encrypted hmac value. The encrypted hmac value. Represents the key encryptors for Encryption/Decryption of Word 2010 documents. Specifies encrypted key used for Encryption/Decryption. Default constructor. Parses the specified reader. The reader. Serializes the specified writer. The writer. Gets or sets the encrypted key. The encrypted key. Represents the encrypted key for Encryption/Decryption of Word 2010 documents. Specifies the spin count Specifies the number of bytes used by salt. Specifies the number of bytes used to encrypt one block of data. Specifies the number of bits used by encryption algorithm. Specifies the number of bytes used by hash value. Specifies the cipher algorithm. Specifies the chaining mode used by the cipher algorithm. Specifies the hashing algorithm. Specifies the salt value. Specifies the encrypted verifier hash input used in password verification. Specifies the encrypted verifier hash value used in password verification. Specifies the encrypted form of the intermediate key. Default constructor. Parses the specified reader. The reader. Serializes the specified writer. The writer. Gets or sets the spin count. The spin count. Gets or sets the size of the salt. The size of the salt. Gets or sets the size of the block. The size of the block. Gets or sets the key bits. The key bits. Gets or sets the size of the hash. The size of the hash. Gets or sets the cipher algorithm. The cipher algorithm. Gets or sets the cipher chaining. The cipher chaining. Gets or sets the hash algorithm. The hash algorithm. Gets or sets the salt. The salt. Gets or sets the encrypted verifier hash input. The encrypted verifier hash input. Gets or sets the encrypted verifier hash value. The encrypted verifier hash value. Gets or sets the encrypted key value. The encrypted key value. Prefix for DocPropsVTypes namespace. Name of the relation type that indicates XSI part. Prefix for core properties namespace. Name of the relation type that indicates dublin core part. Prefix for dublin core namespace. Name of the relation type that indicates dublin core terms part. Prefix for dublin core terms namespace. Name of the relation type that indicates DCMIType part. Name of the relation type that indicates that part contains extended document properties. Name of the relation type that indicates that part contains core properties. Writes the theme override. XML writer instance Baseslide theme collection Serializes the Theme override elements. XML writer instance Baseslide theme collection Serializes extended document properties. XmlWriter to serialize extended properties into. Serializes core properties into XmlWriter. XmlWriter to serialize core properties into. Serializes created and modified datetime element into XmlWriter. XmlWriter to serialize into. Element tag name. Date time value. Serializes custom properties into XmlWriter. XmlWriter to serialize properties into. Serializes attribute if it differs from default value. XmlWriter to serialize into. Attribute name. Attribute value. Default value. Serializes attribute if it differs from default value. XmlWriter to serialize into. Attribute name. Attribute value. Default value. Serializes custom property into XmlWriter. XmlWriter to serialize into. Custom property to serialize. Custom property id. Serialize the extension list properties Serialize the NonVisual SmartArtPoint properties Adds a relation to the layout slide with specified number and master slide. The relation id of the layout slide. The master slide of the layout slide. The collection of relations after adding the relation. Generates the layout number. Adds a layout slide at the end of the collection. Represents an instance to be added. Creates an instance with the specified and layout name, then adds it to the collection. The layout type to customize The custom name of the layout slide Returns the created layout slide with specified name and type Inserts an element into the layout slide collection at the specified index. The zero-based index at which value should be inserted. The layout slide item to insert. Inserts an element into the layout slide collection at the specified index. The zero-based index at which value should be inserted. The layout slide item to insert. Inserts a layout slide into the collection at the specified index. The zero-based index at which the layout slide should be inserted. The layout slide to insert into the collection. The type of the layout slide. The name of the layout slide. The inserted layout slide. Generates a unique layout ID. A string representing the generated layout ID. Sorts the string list in ascending order. The string list to be sorted. The largest value among the list. Remove a layout slide relation from the master slide and presentation document. Represent the layout slide to remove. Gets a LayoutSlide collection with respect to its SlideLayoutType. Represent a SlideLayoutType to select. Returns a LayoutSlide collection with respect to its SlideLayoutType. Gets a LayoutSlide collection with respect to its LayoutSlide name. Represent a LayoutSlide name to select. Returns a LayoutSlide collection with respect to its LayoutSlide name Filter (Remove) a LayoutSlide based on available PlaceHolders. Represent a PlaceHolderType to compare. Represent a LayoutSlide collection to filter. Gets a equivalent LayoutSlide from a destination Presentation. Represent a source LayoutSlide to compare. Returns a equivalent LayoutSlide from a destination Presentation. Adds a master slide at the end of the collection. Represents an instance to be added. Inserts the master slide to the collection at the specified index. Represents index position at which the master slide should be inserted. Represents the master slide to be inserted. Inserts the master slide to the collection at the specified index. Represents index position at which the master slide should be inserted. Represents the master slide to be inserted. Clears the master slides collection. Remove the MasterSlide from PowerPoint document. Represent a master slide to remove. Add the master slide to the collection at the specified index. Represents index position at which the master slide should be inserted. Represents the master slide to be inserted. Represents the source Presentation. Updates the layout slide relation. Check whether the relation need to be removed. Represents the string value to be checked. Returns true if the string does not contains the keywords; otherwise false Updates the master slide theme relation. Updates the layout slide id and gets the master slide id. Represents the master slide. Returns the new master slide id. Sorts the list. Represents the list to be sorted. Returns the largest value of the list. Sort the layout slide list. Represents the layout slide list. Adds a new notes to the slide. Returns the notes slide of instance. Removes the notes slide. Gets the Unique ID for the current slide. Read-only. The Unique ID ranges from 256 to 2147483647. Gets the number of the current slide. Read-only. Gets the current notes slide instance. Returns null if no notes are present. Adds the specified cloned slide at the end of slide collection with specified paste options. An instance to be added to the destination presentation. Specifies the for merging the slide. Optional Parameter. An instance of the source presentation from which the slide is cloned from. The cloned slide can be added within the same presentation or this can be done between one presentation to another Checks if a given master slide and layout slide have related master and layout slides in a presentation. The source master slide to compare. The source layout slide to compare. Related master slide number. True if a related master and layout are found; otherwise, false. Inserts an element into the slide collection at the specified index. The zero-based index at which value should be inserted. The slide value to insert. Adds the specified cloned slide at the specified index of slide collection with specified paste options. Specifies the index position of the slide in which the cloned slide should get added An instance to be added to the destination presentation. Specifies the for merging the slide. Optional Parameter. An instance of the source presentation from which the slide is cloned from. The cloned slide can be added within the same presentation or this can be done between one presentation to another Updates the layout slide relationship of the slide. Represents the master slide. The slide to be updated with the layout slide relation. Compares the current SlideSize object with given SlideSize object. The SlideSize object to compare with the current instance. True if the SlideSize objects are equal; otherwise, false. Checks whether all the cell borders are applied Return false if any one cell border was not applied Sets a default line for cell borders Gets the column index from the specified cell index. Represent the index of a cell. Return the column index of the cell. Gets the row index from the specified cell index. Represent the index of a cell. Return the row index of the cell. Creates a copy of the current cell. Returns the cloned cell object If the column is passed from another table or another slide Sets the parent as the current base slide Represents the column object Creates a copy of the current row. Returns the cloned row object If the row is passed from another table or from another slide Sets the parent as the current base slide Represents the row object Gets the adjacent cell border for the current border. Represent the current cell index. Represent the current border type. Returns the adjacent cell border Compares the current Shape object with given Shape object. The Shape object to compare with the current instance. True if the Shape objects are equal; otherwise, false. Creates a copy of the current table. Returns the cloned table object Compares the current DefaultFonts object with given DefaultFonts object. The DefaultFonts object to compare with the current instance. True if the DefaultFonts objects are equal; otherwise, false. Compares the current Theme object with given Theme object. The Theme object to compare with the current instance. True if the Theme objects are equal; otherwise, false. Compares the theme colors in the current theme color dictionary with given theme color dictionary. The dictionary representing the theme color list to compare with the current instance. True if the theme colors in the dictionaries are equal; otherwise, false. Compares the fills in the current fill list with given fill list. The list representing the fill list to compare with the current instance. True if the fills in the lists are equal; otherwise, false. Compares the background fills in the current fill list with given fill list. The list representing the fill list to compare with the current instance. True if the background fills in the lists are equal; otherwise, false. Compares the line formats in the current line format list with given line format list. The list representing the line format list to compare with the current instance. True if the line formats in the lists are equal; otherwise, false. Compares the effect styles in the current effect style list with given effect style list. The list representing the effect style list to compare with the current instance. True if the effect styles in the lists are equal; otherwise, false. Name of the theme. Name of the color scheme. Represents the conversion utilities. UtilityMethods utility = new UtilityMethods(); //Convert emu to inch double inch = UtilityMethods.EmuToInch(234); //Convert emu to point double point = UtilityMethods.EmuToPoint(234); //Convert inch to emu double emu = UtilityMethods.InchToEmu(12); //Convert inch to pixel float pixel = UtilityMethods.InchToPixel(34); //convert inch to point float inchToPoint = UtilityMethods.InchToPoint(540); //Convert point to emu double pointToEmu = UtilityMethods.PointToEmu(45.89); //Convert point to pixel double pointToPixel = UtilityMethods.PointToPixel(786.90); Dim utility As New UtilityMethods() 'Convert emu to inch Dim inch As Double = UtilityMethods.EmuToInch(234) 'Convert emu to point Dim point As Double = UtilityMethods.EmuToPoint(234) 'Convert inch to emu Dim emu As Double = UtilityMethods.InchToEmu(12) 'Convert inch to pixel Dim pixel As Single = UtilityMethods.InchToPixel(34) 'convert inch to point Dim inchToPoint As Single = UtilityMethods.InchToPoint(540) 'Convert point to emu Dim pointToEmu As Double = UtilityMethods.PointToEmu(45.89) 'Convert point to pixel Dim pointToPixel As Double = UtilityMethods.PointToPixel(786.9) Creates xml reader to read data from the stream. Data to read. Created xml reader. Creates xml reader to read data from the stream. Data to read. Created xml reader. Check whether input XML document is in valid structure Represent the input XML document stream Return whether this is an valid XML or not Creates xml writer to read data from the stream. Data to read. Created xml writer. Convert and returns the given word as Regex pattern Regex pattern Converts the specified Emu unit to the equivalent Point unit. Specifies the value in Emu unit. Returns the value in Point unit. Converts the specified Emu unit to the equivalent Inch unit. Specifies the value in Emu unit. Returns the value in Inch unit. Converts the specified Inch unit to the equivalent Emu unit. Specifies the value in Inch unit. Returns the value in Emu unit. Converts the specified Point unit to the equivalent Emu unit. Specifies the value in Point unit. Returns the value in Emu unit. Converts the specified Inch unit to the equivalent Point unit. Specifies the value in Inch unit. Returns the value in Point unit. Converts the specified Inch unit to the equivalent Pixel unit. Specifies the value in Inch unit. Returns the value in Pixel unit. Converts the specified Emu unit to the equivalent Point unit. Specifies the value in Emu unit. Returns the value in Point unit. Converts the specified Point unit to the equivalent Pixel unit. The value to convert. Returns the converted value in Pixel unit. 1 inch equals 72 points. This interface represents stream in the compound file. Name of the stream. Initializes new instance of the compound stream object. Name of the stream. Copies stream content into another stream object. Stream to copy data into. Returns name of the stream. This interface gives access to compound file functionality. Flushes content into internal buffer. Saves compound file into stream Stream to save data into. Saves compound file into file. Name of the file to save into. Returns root storage object for this file. This interface represents storage object in the compound file. Creates new stream inside this storage. Name of the stream to create. Created stream object. Opens existing stream inside this storage. Name of the stream to open. Removes existing stream from this storage. Name of the stream to remove. Determines whether storage contains specified stream. Name of the stream to check. true if storage contains specified stream. Creates new substorage inside this one. Name of the storage to create. Created storage object. Opens existing substorage inside this one. Name of the storage to open. Created storage object. Removes exisiting substorage from this one. Name of the storage to remove. Determines whether this storage contains substorage with specified name. Name of the storage to check. true if storage contains substorage with specified name. Commits changes. Inserts copy of the storage and all subitems inside current storage. Storage to copy. Inserts copy of the stream inside current storage. Stream to copy. Returns all stream names that are placed inside this stream. Returns all storage names that are placed inside this stream. Returns name of the storage. .Net compound file implementation. Name of the root entry. Source stream. File header. Root storage. Short stream. Stream containing items described by minifat. MiniFAT. Indicates whether substreams should maintain their own stream or should write directly into the file's stream. Writes directory structure into file. Destination path. Directory to write. Writes storage to specified path Destination path. Storage to write. Writes stream into file Destination path. Stream name. Parent storage object. Default constructor. Default constructor. Default constructor. Initializes internal variables. Sets stream data for directory entry. Directory entry to update stream data for. Stream to set. Sets entrie's long stream. Entry to update data for. Data to set. Sets entrie's short stream. Entry to update data for. Data to set. Writes stream data into compound file main stream Main stream to write into. Start sector to write. Stream to write. Fat object. Here we have to allocate required sectors number. Entry to allocate sectors for. Number of already allocated sectors. Number of required sectors. FAT object. Allocates sectors. Start sector in the chain. Number of already allocated sectors. Number of required sectors. Fat object. Start sector of the added chain. Gets offset to the sector. Zero-based sector index. Sector shift (2^sectorShift = sector size). Offset to the required sector. Gets offset to the sector. Zero-based sector index. Sector shift (2^sectorShift = sector size). Size of the header. Offset to the required sector. Checks whether stream header belongs to compound file. Stream to check. True if stream probably contains compound file data. Allocates new directory entry. Name of the stream. Entry type. Created directory entry. Marks item as free. Directory entry to be removed/freed. Reads data from internal stream. Entry to read data from. Position inside entry stream. Buffer that will cotain read data. Size of the data to read. Number of actually read bytes. Writes data into internal stream. Entry to write data into. Position inside entry stream. Buffer containing data to write. Offset inside buffer to the data to write. Size of the data to write. Saves compound file into stream. Stream to save data into. Writes internal stream into specified one. Destination stream to write into. Saves mini stream data. Serializes directory entries. Saves compound file into file. Name of the file to save into. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Returns root storage. Returns base stream. Read-only. Gets or sets value indicating whether substreams should maintain their own stream or should write directly into the file's stream. Returns root storage object for this file. This is exception thrown when experiencing problems with compound file. Default exception message. Default constructor. Initializes new instance of the exception. Exception message. RBTree with child elements. Initializes new instance of the storage. Parent file. Name of the new storage. Index to the directory entry that stores storage information. Initializes new instance of the storage. Parent compound file object. Entry that describes current storage. Creates new stream. Name of the stream to create. Created stream. Opens stream. Name of the stream to open. Opened stream or null if there is no such stream. Removes stream from the storage, if it contains stream with such name. Stream name to delete. Checks whether storage contains stream with specified name. Name of the stream to check. True if storage has stream with such name; false otherwise. Opens existing storage. Name of the storage to open. Opened storage item or null if it was impossible to open it. Removes substorage from existing storage. Name of the storage to remove. Checks whether this storage contains substorage with specified name. Name to check. True if there is such storage; false otherwise. Returns directory entry id that corresponds to the specified node. Returns name of the storage. Returns directory entry for this stream. This is wrapper over compound stream object. Simply redirects all calls to it with one exception - it doesn't dispose underlying stream object. Wrapped storage object. Initializes new instance of the wrapper. Object to wrap. Frees all allocated resources. Creates new stream inside this storage. Name of the stream to create. Created stream object. Opens existing stream inside this storage. Name of the stream to open. Removes existing stream from this storage. Name of the stream to remove. Determines whether storage contains specified stream. Name of the stream to check. true if storage contains specified stream. Creates new substorage inside this one. Name of the storage to create. Created storage object. Opens existing substorage inside this one. Name of the storage to open. Created storage object. Removes exisiting substorage from this one. Name of the storage to remove. Determines whether this storage contains substorage with specified name. Name of the storage to check. true if storage contains substorage with specified name. Commits changes. Returns all stream names that are placed inside this stream. Returns all storage names that are placed inside this stream. Returns name of the storage. Returns directory entry for this stream. .Net implementation of the compound stream. .Net implementation of the compound stream. Parent file item. Directory entry of this stream. Stream with data. If it is null, then data hasn't been read yet or stream is closed. Initializes new instance of the stream. Parent file object. Entry that describes this stream item. Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source. The zero-based byte offset in buffer at which to begin storing the data read from the current stream. The maximum number of bytes to be read from the current stream. The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached. writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. An array of bytes. This method copies count bytes from buffer to the current stream. The zero-based byte offset in buffer at which to begin copying bytes to the current stream. The number of bytes to be written to the current stream. Sets the position within the current stream. A byte offset relative to the origin parameter. A value of type SeekOrigin indicating the reference point used to obtain the new position. The new position within the current stream. Sets the length of the current stream. The desired length of the current stream in bytes. Causes any buffered data to be written to the underlying compound file. Releases the unmanaged resources used by the Stream and optionally releases the managed resources. true to release both managed and unmanaged resources; false to release only unmanaged resources. Returns directory entry for this stream. Gets the length in bytes of the stream. Read-only. Gets or sets the position within the current stream. Gets a value indicating whether the current stream supports reading. Gets a value indicating whether the current stream supports seeking. Gets a value indicating whether the current stream supports writing. Stream position. Initializes new instance of the stream. Parent file object. Entry that describes this stream item. Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source. The zero-based byte offset in buffer at which to begin storing the data read from the current stream. The maximum number of bytes to be read from the current stream. The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached. writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. An array of bytes. This method copies count bytes from buffer to the current stream. The zero-based byte offset in buffer at which to begin copying bytes to the current stream. The number of bytes to be written to the current stream. Sets the position within the current stream. A byte offset relative to the origin parameter. A value of type SeekOrigin indicating the reference point used to obtain the new position. The new position within the current stream. Sets the length of the current stream. The desired length of the current stream in bytes. Causes any buffered data to be written to the underlying compound file. Gets the length in bytes of the stream. Read-only. Gets or sets the position within the current stream. This is wrapper over compound stream object. Simply redirects all calls to it with one exception - it doesn't dispose underlying stream object. Wrapped stream object. Initializes new instance of the wrapper. Object to wrap. Causes any buffered data to be written to the underlying compound file. Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source. The zero-based byte offset in buffer at which to begin storing the data read from the current stream. The maximum number of bytes to be read from the current stream. The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached. Sets the position within the current stream. A byte offset relative to the origin parameter. A value of type SeekOrigin indicating the reference point used to obtain the new position. The new position within the current stream. Sets the length of the current stream. The desired length of the current stream in bytes. writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. An array of bytes. This method copies count bytes from buffer to the current stream. The zero-based byte offset in buffer at which to begin copying bytes to the current stream. The number of bytes to be written to the current stream. Gets a value indicating whether the current stream supports reading. Gets a value indicating whether the current stream supports seeking. Gets a value indicating whether the current stream supports writing. Gets the length in bytes of the stream. Read-only. Gets or sets the position within the current stream. Number of items in the file header. List of all fat sector ids. List with used Dif sectors. Default constructor. Adds required number of DIF sectors. Number of sectors to add. FAT object. This class represents directory structure in the compound file. List of directory entries. Default constructor. Initializes new instance of the directory. Data to parse. Searches for empty entry index. Index of the first empty directory entry. Adds new entry to the collection or replaces existing empty entry with this one. Entry to add. Saves directory entries into specified stream. Stream to save directory into. Returns list of directory entries. Represents single directory entry in the compound file. Size of a single directory entry. Size of the stream name field. Entry name. Entry type. Entry "color" in red-black tree. Id of the left-sibling. Id of the right-sibling. Id of the child acting as the root of all the children of thes element (if entry type if Storage). Storage CLSID. User flags of this storage. Create time-stamp for a storage. Modify time-stamp for a storage. Starting stream sector. Stream size. Reserved. Must be zero. Entry id. Last sector id. Initializes new instance of the entry. Name of the new entry. Type of the new entry. Id of the new entry. Initializes new instance of the entry. Data of the new entry. Offset to the entry data. Entry id. Writes directory entry data inside specified stream. Stream to write data into. Entry name. Entry type. Entry "color" in red-black tree. Id of the left-sibling. Id of the right-sibling. Id of the child acting as the root of all the children of thes element (if entry type if Storage). Storage CLSID. User flags of this storage. Create time-stamp for a storage. Modify time-stamp for a storage. Starting stream sector. Stream size. Reserved. Must be zero. Returns entry id. Read-only. Possible entry types. Invalid entry. Entry is storage. Entry is stream. Root entry. The STGTY enumeration values are used in the type member of the STATSTG structure to indicate the type of the storage element. Indicates that the storage element is a storage object. Indicates that the storage element is a stream object. Indicates that the storage element is a byte-array object. Indicates that the storage element is a property storage object. The STREAM_SEEK enumeration values specify the origin from which to calculate the new seek-pointer location. The new seek pointer is an offset relative to the beginning of the stream. In this case, the dlibMove parameter is the new seek position relative to the beginning of the stream. The new seek pointer is an offset relative to the current seek pointer location. In this case, the dlibMove parameter is the signed displacement from the current seek position. The new seek pointer is an offset relative to the end of the stream. In this case, the dlibMove parameter is the new seek position relative to the end of the stream. The LOCKTYPE enumeration values indicate the type of locking requested for the specified range of bytes. If this lock is granted, the specified range of bytes can be opened and read any number of times, but writing to the locked range is prohibited except for the owner who granted this lock. If this lock is granted, writing to the specified range of bytes is prohibited except by the owner granted this lock. If this lock is granted, no other LOCK_ONLYONCE lock can be obtained on the range. Usually this lock type is an alias for some other lock type. Thus, specific implementations can have additional behavior associated with this lock type. The STGM enumeration values are used in the IStorage, IStream, and IPropertySetStorage interfaces. These elements are often combined using an OR operator. Indicates that the object is read-only, meaning that modifications cannot be made. STGM_WRITE lets you save changes to the object, but does not permit access to its data. STGM_READWRITE allows you to both access and modify an object's data. Specifies that subsequent openings of the object are not denied read or write access. If no flag from the sharing group is specified, this flag is assumed. Prevents others from subsequently opening the object in STGM_READ mode. It is typically used on a root storage object. Prevents others from subsequently opening the object for STGM_WRITE or STGM_READWRITE access. Prevents others from subsequently opening the object in any mode. In transacted mode, sharing of STGM_SHARE_DENY_WRITE or STGM_SHARE_EXCLUSIVE can significantly improve performance since they don't require snapshotting. Opens the storage object with exclusive access to the most recently committed version. Indicates that an existing storage object or stream should be removed before the new one replaces it. Creates the new object while preserving existing data in a stream named "Contents". Causes the create operation to fail if an existing object with the specified name exists. In direct mode, each change to a storage or stream element is written as it occurs. In transacted mode, changes are buffered and written only if an explicit commit operation is called. In transacted mode, a temporary scratch file is usually used to save modifications until the Commit method is called. This flag is used when opening a storage object with STGM_TRANSACTED and without STGM_SHARE_EXCLUSIVE or STGM_SHARE_DENY_WRITE. STGM_SIMPLE is a mode that provides a much faster implementation of a compound file in a limited, but frequently used case. The STGM_DIRECT_SWMR supports direct mode for single-writer, multireader file operations. Indicates that the underlying file is to be automatically destroyed when the root storage object is released. The STGFMT enumeration values specify the format of a storage object and are used in the StgCreateStorageEx and StgOpenStorageEx functions in the STGFMT parameter. Indicates that the file must be a compound file. Indicates that the file must not be a compound file. Indicates that the system will determine the file type and use the appropriate structured storage or property set implementation. Indicates that the file must be a compound file and is similar to the STGFMT_STORAGE flag, but indicates that the compound-file form of the compound-file implementation must be used. Error code which StgOpenStorage method can return after execution. Success code. Filed. Access Denied. File already exists. File could not be found. There is insufficient memory available to complete operation. Invalid flag error. Unable to perform requested operation. Attempted an operation on an invalid object. The name is not valid. Invalid pointer error. A lock violation has occurred. The compound file was not created with the STGM_SIMPLE flag. The compound file was produced with a newer version of storage. The compound file was produced with an incompatible version of storage. The path could not be found. A share violation has occurred. There are insufficient resources to open another file. The STGC enumeration constants specify the conditions for performing the commit operation in the IStorage::Commit and IStream::Commit methods. You can specify this condition with STGC_CONSOLIDATE or some combination of the other three flags in this list of elements. The commit operation can overwrite existing data to reduce overall space requirements. Prevents multiple users of a storage object from overwriting each other's changes. Commits the changes to a write-behind disk cache, but does not save the cache to the disk. Microsoft Windows 2000/XP: Indicates that a storage should be consolidated after it is committed, resulting in a smaller file on disk. Reserved global Property IDs. PID_DICTIONARY Id. PID_CODEPAGE Id. PID_FIRST_USABLE Id. PID_FIRST_NAME_DEFAULT Id. PID_LOCALE Id. PID_MODIFY_TIME Id. PID_SECURITY Id. PID_BEHAVIOR Id. PID_ILLEGAL Id. PID_MIN_READONLY Id. PID_MAX_READONLY Id. PRSPEC property ids. INVALID Id. LPWSTR Id. PROPID Id. The PROPSPEC structure is used by many of the methods of IPropertyStorage to specify a property either by its property identifier (ID) or the associated string name. Indicates the union member used. This member can be one of the following values. Specifies the value of the property ID. Use either this value or the following lpwstr, not both. This enumeration is used in VARIANT, TYPEDESC, OLE property sets, and safe arrays. Variable type is not specified. Variable type is 4-byte signed INT. Variable type is date. Variable type is binary string. Variable type is Boolean; True=-1, False=0. Variable type is VARIANT FAR*. Variable type is int. Variable type is LPSTR. Variable type is LPWSTR Variable type is FILENAME string. Variable type is binary VECTOR. Flags for GlobalAlloc function. Allocates fixed memory. The return value is a pointer. Allocates movable memory. Memory blocks are never moved in physical memory, but they can be moved within the default heap. Initializes memory contents to zero. NO Discard memory. This class represents FAT object in the compound file. List with free sectors. Sector size. Default constructor. Default constructor. Initializes new instance of the fat. Parent compound file object. Stream to extract fat from. DIF object to help in parsing File header object. Gets data of the compound file substream. Stream with compound file data. First sector of the stream to get. Parent compound file object. Gets index of the next sector in the chain. Index of the current sector in the chain. Next sector in the chain. Closes sectors chain by marking all those sectors as free starting from specified one. Enlarges existing sectors chain. Last sector in the chain that requires enlargment. Number of sectors to add. Index of the chain start (used when chain wasn't created before). Frees specified sector. Sector to free. Allocates required number of new sectors. Start sector index. Number of sectors to allocate. First sector in the new part of the chain. Allocates required number of free sectors. Start sector index (this value points to the last used sector after this operation). Number of sectors to allocate. First sector in the new part of the chain Saves fat data into stream. Stream to write fat data into. DIF object to update after writing. File header. Allocates required number of fat sectors. Number of sectors that must be allocated. DIF structure that contains info about fat sectors sequence. Fills single fat sector. Index in the fat to start writing from. Sector to fill. First item that wasn't saved inside sector. Allocates new sector of the specified sector type. Sector type to allocate. Allocated sector index. Adds single sector to the stream. Index of the added sector. Writes fat data directly into a stream. Stream to write data into. Size of the sector to use for writing. Evaluates sector offset. Zero-based sector index to evaluate offset for. Offset to the sector start. Evaluates number of sectors in the sector chain starting from the specified sector. Starting sector of the entry to enumerate. Number of sectros in the sector chain. Sector size. This class represents compound file header. Size of the header. Signature size. Default (and the only supported) signature. File signature. Class id. Minor version of the format. Major version of the dll/format. Byte order, 0xFFFE for Intel byte-ordering. Size of sectors in power-of-two (typically 9). Size of mini-sectors in power-of-two (typically 6). Reserved, must be zero. Reserved, must be zero. Reserved, must be zero. Number of sectors in the FAT chain. First sector in the directory chain. Signature used for transactioning, must be zero. Maximum size for mini-streams. Typically 4096 bytes. First sector in the mini-FAT chain. Number of sectors in the mini-FAT chain. First sector in the DIF chain. Number of sectors in the DIF chain. First 109 fat sectors. Default constructor. Initializes new instance of the file header and extracts data from the stream. Stream to extract header data from. Saves header into specified stream. Stream to write header into. Checks whether starting bytes of the stream are the same as signature of the compound file. Stream to check. True if stream contains required signature. Checks whether signature is supported. Checks whether signature is supported. Data to compare with default signature. Size of the sector. Read-only. Minor version of the format. Major version of the dll/format. Byte order, 0xFFFE for Intel byte-ordering. Size of sectors in power-of-two (typically 9). Size of mini-sectors in power-of-two (typically 6). Reserved, must be zero. Reserved, must be zero. Reserved, must be zero. Number of sectors in the FAT chain. First sector in the directory chain. Signature used for transactioning, must be zero. Maximum size for mini-streams. Typically 4096 bytes. First sector in the mini-FAT chain. Number of sectors in the mini-FAT chain. First sector in the DIF chain. Number of sectors in the DIF chain. First 109 fat sectors. This comparer is used to compare item names inside storage. Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. The first object to compare. The second object to compare. Less than zero if x is less than y. Zero if x equals y. Greater than zero if x is greater than y. Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. The first object to compare. The second object to compare. Less than zero if x is less than y. Zero if x equals y. Greater than zero if x is greater than y. Suitable Node colors used for 2-3-4 nodes detection. Red color of node. Black color of node. Node class used for proper storing of data in the Map Collection. Reference on left branch. Reference on right branch. Reference on parent branch. Color of node branch. Is current node Nil element or not? Key part of stored in node data. Value part of stored in node data. Create red colored Tree node. Reference on left branch. Reference on parent branch. Refernce on right branch. Key value of node. Value part of node. Main constructor of class. Reference on left branch. Reference on parent branch. Refernce on right branch. Key value of node. Value part of node. Color of node. Reference on left branch. Reference on right branch. Reference on parent branch. Color of node branch. Is current node Nil element or not? Key part of stored in node data. Value part of stored in node data. Is current node set to red color? Is current node set to black color? TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here Create collection with specified comparer for Key values. Comparer for key values. Create Empty node for collection. Clear collection. Add item into collection. Key part. Value. Check whether collection contains specified key. True if node with specified key is found; otherwise False. Key for check. Remove from collection item with specified key. Key to identify item. TODO: place correct comment here TODO: place correct comment here Get minimum value for specified branch. Branch start node. Reference on minimum value node. Get maximum value for specified branch. Branch start node. Reference on maximum value node. Go to to next item in collection. Start node. Reference on next item in collection or this.Empty if nothing found. Get previous item from collection. Start node. Rererence on previous item in collection. Find node in collection by key value (search in lower side). Key of node to find. Reference on found node, otherwise this.Empty value. Find node in collection by key value (search in upper side). Key of node to find. Reference on found node, otherwise this.Empty value. Rotate branch into left side. Branch start node. Rotate branch into right side. Branch start node. Erase node from collection. Item to erase. Insert item into collection. Add into left side of tree or right. Node for placement. Key part of node. Value part of node. Returns enumerator. Returns enumerator of current interface. TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here Contains constants that defines all known sector types. Represents the behaviors. Get the index of particulare behavior item behavior Index of the particular behavior // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors index IBehavior behavior = effect.Behaviors[0]; int index = effect.Behaviors.IndexOf(behavior); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors index Dim behavior As IBehavior = effect.Behaviors(0) Dim index As Integer = effect.Behaviors.IndexOf(behavior) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the count of behavior // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors count from the effect int count = effect.Behaviors.Count; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors count from the effect Dim count As Integer = effect.Behaviors.Count 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Gets a instance at the specified index from the collection. Read-only. Determines the index of the behavior. Returns an instance. // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behavior with index from the effect IBehavior behavior = effect.Behaviors[0]; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behavior with index from the effect Dim behavior As IBehavior = effect.Behaviors(0) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the color offset. Get the color offset value0 // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IColorEffect) { // Assign the color effect values IColorEffect colorEffect = (behavior as IColorEffect); float color1 = colorEffect.By.Value0; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is color effect If (TypeOf behavior Is ColorEffect) Then 'Assign the color effect values Dim colorEffect As ColorEffect = TryCast(behavior,ColorEffect) Dim color1 As Single = colorEffect.By.Value0 Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the color offset value1 // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IColorEffect) { // Assign the color effect values IColorEffect colorEffect = (behavior as IColorEffect); float color2 = colorEffect.By.Value1; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is color effect If (TypeOf behavior Is ColorEffect) Then 'Assign the color effect values Dim colorEffect As ColorEffect = TryCast(behavior,ColorEffect) Dim color2 As Single = colorEffect.By.Value1 Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the color offset value2 // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IColorEffect) { // Assign the color effect values IColorEffect colorEffect = (behavior as IColorEffect); float color3 = colorEffect.By.Value2; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is color effect If (TypeOf behavior Is ColorEffect) Then 'Assign the color effect values Dim colorEffect As ColorEffect = TryCast(behavior,ColorEffect) Dim color3 As Single = colorEffect.By.Value2 Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the effect. Get the main sequences list of animations // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get the sequences from the effect ISequence effectSequence = effect.Sequence; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the sequences from the effect Dim effectSequence As ISequence = effect.Sequence 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the build type value of text animation // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get the build type from the effect BuildType effectBuildType = effect.BuildType; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the build type from the effect Dim effectBuildType As BuildType = effect.BuildType 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the list of behaviors in particular effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors effectBehaviors = effect.Behaviors; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim effectBehaviors As IBehaviors = effect.Behaviors 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the preset class type of effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get the preset class type from the effect EffectPresetClassType effectPresetClass = effect.PresetClassType; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the effect preset class type from the effect Dim effectPresetClass As EffectPresetClassType = effect.PresetClassType 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the sub type value of effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get the subtype from the effect EffectSubtype effectSubType = effect.Subtype; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the subtype from the effect Dim effectSubType As EffectSubtype = effect.Subtype 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the timing properties values of effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get the timing list from the effect ITiming effectTiming = effect.Timing; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the timing list from the effect Dim effectTiming As ITiming = effect.Timing 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the type of effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get effect type EffectType effectType = effect.Type; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get effect type Dim effectType As EffectType = effect.Type 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Specifies the type of the effect preset class type Specifies the effect preset class type is none Specifies the effect preset class type is Entrance Specifies the effect preset class type is Exit Specifies the effect preset class type is Emphasis Specifies the effect preset class type is Path Specifies the additive type of property Specifies the behavior additive type is Not Defined Specifies the behavior additive type is None Specifies the behavior additive type is Base Specifies the behavior additive type is Sum Specifies the behavior additive type is Replace Specifies the behavior additive type is Multiply Specifies the restart type of effect Specifies the restart type is Not Defined Specifies the restart type is Always Specifies the restart type is When Not Active Specifies the restart type is Never Specifies the trigger type of effect Specifies the effect trigger type is After Previous Specifies the effect trigger type is On Click Specifies the effect trigger type is With Previous Specifies the reveal type of filter effect Specifies the filter effect reveal type is Not Defined Specifies the filter effect reveal type is None Specifies the filter effect reveal type is In Specifies the filter effect reveal type is Out Specifies the subtype of filter effect Specifies the filter effect subtype is None Specifies the filter effect subtype is Across Specifies the filter effect subtype is Down Specifies the filter effect subtype is DownLeft Specifies the filter effect subtype is DownRight Specifies the filter effect subtype is From Bottom Specifies the filter effect subtype is From Left Specifies the filter effect subtype is From Right Specifies the filter effect subtype is From Top Specifies the filter effect subtype is Horizontal Specifies the filter effect subtype is In Specifies the filter effect subtype is InHorizontal Specifies the filter effect subtype is InVertical Specifies the filter effect subtype is Left Specifies the filter effect subtype is Out Specifies the filter effect subtype is OutHorizontal Specifies the filter effect subtype is OutVertical Specifies the filter effect subtype is Right Specifies the filter effect subtype is Spokes1 Specifies the filter effect subtype is Spokes2 Specifies the filter effect subtype is Spokes3 Specifies the filter effect subtype is Spokes4 Specifies the filter effect subtype is Spokes8 Specifies the filter effect subtype is Up Specifies the filter effect subtype is UpLeft Specifies the filter effect subtype is UpRight Specifies the filter effect subtype is Vertical Specifies the type of filter effect Specifies the filter effect type is None Specifies the filter effect type is Barn Specifies the filter effect type is Blinds Specifies the filter effect type is Box Specifies the filter effect type is Checkerboard Specifies the filter effect type is Circle Specifies the filter effect type is Diamond Specifies the filter effect type is Dissolve Specifies the filter effect type is Fade Specifies the filter effect type is Image Specifies the filter effect type is Pixelate Specifies the filter effect type is Plus Specifies the filter effect type is RandomBar Specifies the filter effect type is Slide Specifies the filter effect type is Stretch Specifies the filter effect type is Strips Specifies the filter effect type is Wedge Specifies the filter effect type is Wheel Specifies the filter effect type is Wipe Specifies the type of animation property Specifies the animation property type is Not Defined Specifies the animation property type is Color Specifies the animation property type is PptHeight Specifies the animation property type is Opacity Specifies the animation property type is Rotation Specifies the animation property type is RotationPPT Specifies the animation property type is ShapesStrokeColor Specifies the animation property type is StrokeOn Specifies the animation property type is ShapeFillType Specifies the animation property type is ShapeFillBackColor Specifies the animation property type is Shape Fill Color Specifies the animation property type is Shape Fill Color2 Specifies the animation property type is Shape Fill On Specifies the animation property type is ShapeFillOpacity Specifies the animation property type is ShapeLineColor Specifies the animation property type is ShapeLineOn Specifies the animation property type is Shape Picture Brightness Specifies the animation property type is Shape Picture Contrast Specifies the animation property type is Shape Picture Gamma Specifies the animation property type is Shape Picture Gray Scale Specifies the animation property type is Shape Shadow Color Specifies the animation property type is Shape Shadow OffsetX Specifies the animation property type is Shape Shadow OffsetY Specifies the animation property type is Shape Shadow On Specifies the animation property type is Shape Shadow Opacity Specifies the animation property type is Shape Shadow Type Specifies the animation property type is Text Bullet Character Specifies the animation property type is Text Bullet Color Specifies the animation property type is Text Bullet Font Name Specifies the animation property type is Text Bullet Number Specifies the animation property type is Text Bullet Relative Size Specifies the animation property type is Text Bullet Style Specifies the animation property type is Text Bullet Type Specifies the animation property type is Text Font Bold Specifies the animation property type is Text Font Color Specifies the animation property type is Text Font Emboss Specifies the animation property type is Text Font Italic Specifies the animation property type is Text Font Name Specifies the animation property type is Text Font Shadow Specifies the animation property type is Text Font Size Specifies the animation property type is Text Font Style Specifies the animation property type is Text Font Weight Specifies the animation property type is Text Font StrikeThrough Specifies the animation property type is Text font Subscript Specifies the animation property type is Text font Superscript Specifies the animation property type is Text Font Underline Specifies the animation property type is Visibility Specifies the animation property type is PptWidth Specifies the animation property type is PptX Specifies the animation property type is PptY Specifies the animation property type is PptXPptY Specifies the animation property type is XShear Specifies the value type of property effect Specifies the property value type is NotDefined Specifies the property value type is String Specifies the property value type is Number Specifies the property value type is Color Specifies the calcMode type of property effect Specifies the property calcMode type is NotDefined Specifies the property calcMode type is Discrete Specifies the property calcMode type is Linear Specifies the property calcMode type is Formula Specifies the motion path edit mode Specifies the motion path edit mode is NotDefined Specifies the motion path edit mode is Relative Specifies the motion path edit mode is Fixed Specifies the points type of motion path Specifies the motion path points type is None Specifies the motion path points type is Auto Specifies the motion path points type is Corner Specifies the motion path points type is Straight Specifies the motion path points type is Smooth Specifies the motion path points type is CurveAuto Specifies the motion path points type is CurveCorner Specifies the motion path points type is CurveStraight Specifies the motion path points type is CurveSmooth Specifies the motion command path type of motion effect Specifies the motion command path type is MoveTo Specifies the motion command path type is LineTo Specifies the motion command path type is CurveTo Specifies the motion command path type is CloseLoop Specifies the motion command path type is End Specifies the origin type of motion effect Specifies the motion origin type is NotDefined Specifies the motion origin type is Parent Specifies the motion origin type is Layout Specifies the color direction value for color effect Specifies the color direction value is NotDefined Specifies the color direction value is ClockWise Specifies the color direction value is CounterClockWise Specifies the color space value for color effect Specifies the color space value is NotDefined Specifies the color space value is RGB Specifies the color space value is HSL Specifies the type of the animation effect Specifies the animation effect type is Appear Specifies the animation effect type is CurveUpdown Specifies the animation effect type is Ascend Specifies the animation effect type is Blast Specifies the animation effect type is Blinds Specifies the animation effect type is Blink Specifies the animation effect type is BoldFlash Specifies the animation effect type is BoldReveal Specifies the animation effect type is Boomerang Specifies the animation effect type is Bounce Specifies the animation effect type is Box Specifies the animation effect type is BrushOnColor Specifies the animation effect type is BrushOnUnderline Specifies the animation effect type is CenterRevolve Specifies the animation effect type is ChangeFillColor Specifies the animation effect type is ChangeFont Specifies the animation effect type is ChangeFontColor Specifies the animation effect type is ChangeFontSize Specifies the animation effect type is ChangeFontStyle Specifies the animation effect type is ChangeLineColor Specifies the animation effect type is Checkerboard Specifies the animation effect type is Circle Specifies the animation effect type is ColorBlend Specifies the animation effect type is ColorTypewriter Specifies the animation effect type is ColorWave Specifies the animation effect type is ComplementaryColor Specifies the animation effect type is ComplementaryColor2 Specifies the animation effect type is Compress Specifies the animation effect type is ContrastingColor Specifies the animation effect type is Crawl Specifies the animation effect type is Credits Specifies the animation effect type is Custom Specifies the animation effect type is Darken Specifies the animation effect type is Desaturate Specifies the animation effect type is Descend Specifies the animation effect type is Diamond Specifies the animation effect type is Dissolve Specifies the animation effect type is EaseInOut Specifies the animation effect type is Expand Specifies the animation effect type is Fade Specifies the animation effect type is FadedSwivel Specifies the animation effect type is FadedZoom Specifies the animation effect type is FlashBulb Specifies the animation effect type is FlashOnce Specifies the animation effect type is Flicker Specifies the animation effect type is Flip Specifies the animation effect type is Float Specifies the animation effect type is Fly Specifies the animation effect type is Fold Specifies the animation effect type is Glide Specifies the animation effect type is GrowAndTurn Specifies the animation effect type is GrowShrink Specifies the animation effect type is GrowWithColor Specifies the animation effect type is Lighten Specifies the animation effect type is LightSpeed Specifies the animation effect type is Path4PointStar Specifies the animation effect type is Path5PointStar Specifies the animation effect type is Path6PointStar Specifies the animation effect type is Path8PointStar Specifies the animation effect type is PathArcDown Specifies the animation effect type is PathArcLeft Specifies the animation effect type is PathArcRight Specifies the animation effect type is PathArcUp Specifies the animation effect type is PathBean Specifies the animation effect type is PathBounceLeft Specifies the animation effect type is PathBounceRight Specifies the animation effect type is PathBuzzsaw Specifies the animation effect type is PathCircle Specifies the animation effect type is PathCrescentMoon Specifies the animation effect type is PathCurvedSquare Specifies the animation effect type is PathCurvedX Specifies the animation effect type is PathCurvyLeft Specifies the animation effect type is PathCurvyRight Specifies the animation effect type is PathCurvyStar Specifies the animation effect type is PathDecayingWave Specifies the animation effect type is PathDiagonalDownRight Specifies the animation effect type is PathDiagonalUpRight Specifies the animation effect type is PathDiamond Specifies the animation effect type is PathDown Specifies the animation effect type is PathEqualTriangle Specifies the animation effect type is PathFigure8Four Specifies the animation effect type is PathFootball Specifies the animation effect type is PathFunnel Specifies the animation effect type is PathHeart Specifies the animation effect type is PathHeartbeat Specifies the animation effect type is PathHexagon Specifies the animation effect type is PathHorizontalFigure8 Specifies the animation effect type is PathInvertedSquare Specifies the animation effect type is PathInvertedTriangle Specifies the animation effect type is PathLeft Specifies the animation effect type is PathLoopdeLoop Specifies the animation effect type is PathNeutron Specifies the animation effect type is PathOctagon Specifies the animation effect type is PathParallelogram Specifies the animation effect type is PathPeanut Specifies the animation effect type is PathPentagon Specifies the animation effect type is PathPlus Specifies the animation effect type is PathPointyStar Specifies the animation effect type is PathRight Specifies the animation effect type is PathRightTriangle Specifies the animation effect type is PathSCurve1 Specifies the animation effect type is PathSCurve2 Specifies the animation effect type is PathSineWave Specifies the animation effect type is PathSpiralLeft Specifies the animation effect type is PathSpiralRight Specifies the animation effect type is PathSpring Specifies the animation effect type is PathSquare Specifies the animation effect type is PathStairsDown Specifies the animation effect type is PathSwoosh Specifies the animation effect type is PathTeardrop Specifies the animation effect type is PathTrapezoid Specifies the animation effect type is PathTurnDown Specifies the animation effect type is PathTurnRight Specifies the animation effect type is PathTurnUp Specifies the animation effect type is PathTurnUpRight Specifies the animation effect type is PathUp Specifies the animation effect type is PathUser Specifies the animation effect type is PathVerticalFigure8 Specifies the animation effect type is PathWave Specifies the animation effect type is PathZigzag Specifies the animation effect type is Peek Specifies the animation effect type is Pinwheel Specifies the animation effect type is Plus Specifies the animation effect type is RandomBars Specifies the animation effect type is RandomEffects Specifies the animation effect type is RiseUp Specifies the animation effect type is Shimmer Specifies the animation effect type is Sling Specifies the animation effect type is Spin Specifies the animation effect type is Spinner Specifies the animation effect type is Spiral Specifies the animation effect type is Split Specifies the animation effect type is Stretch Specifies the animation effect type is Strips Specifies the animation effect type is StyleEmphasis Specifies the animation effect type is Swish Specifies the animation effect type is Swivel Specifies the animation effect type is Teeter Specifies the animation effect type is Thread Specifies the animation effect type is Transparency Specifies the animation effect type is Unfold Specifies the animation effect type is VerticalGrow Specifies the animation effect type is Wave Specifies the animation effect type is Wedge Specifies the animation effect type is Wheel Specifies the animation effect type is Whip Specifies the animation effect type is Wipe Specifies the animation effect type is Magnify Specifies the animation effect type is Zoom Specifies the subtype of animation effect Specifies the animation effect Subtype is NotDefined Specifies the animation effect Subtype is None Specifies the animation effect Subtype is Across Specifies the animation effect Subtype is Bottom Specifies the animation effect Subtype is BottomLeft Specifies the animation effect Subtype is BottomRight Specifies the animation effect Subtype is Center Specifies the animation effect Subtype is Clockwise Specifies the animation effect Subtype is CounterClockwise Specifies the animation effect Subtype is GradualAndCycleClockwise Specifies the animation effect Subtype is GradualAndCycleCounterClockwise Specifies the animation effect Subtype is Down Specifies the animation effect Subtype is DownLeft Specifies the animation effect Subtype is DownRight Specifies the animation effect Subtype is FontAllCaps Specifies the animation effect Subtype is FontBold Specifies the animation effect Subtype is FontItalic Specifies the animation effect Subtype is FontShadow Specifies the animation effect Subtype is FontStrikethrough Specifies the animation effect Subtype is FontUnderline Specifies the animation effect Subtype is Gradual Specifies the animation effect Subtype is Horizontal Specifies the animation effect Subtype is HorizontalIn Specifies the animation effect Subtype is HorizontalOut Specifies the animation effect Subtype is In Specifies the animation effect Subtype is InBottom Specifies the animation effect Subtype is InCenter Specifies the animation effect Subtype is InSlightly Specifies the animation effect Subtype is Instant Specifies the animation effect Subtype is Left Specifies the animation effect Subtype is OrdinalMask Specifies the animation effect Subtype is Out Specifies the animation effect Subtype is OutBottom Specifies the animation effect Subtype is OutCenter Specifies the animation effect Subtype is OutSlightly Specifies the animation effect Subtype is Right Specifies the animation effect Subtype is Slightly Specifies the animation effect Subtype is Top Specifies the animation effect Subtype is TopLeft Specifies the animation effect Subtype is TopRight Specifies the animation effect Subtype is Up Specifies the animation effect Subtype is UpLeft Specifies the animation effect Subtype is UpRight Specifies the animation effect Subtype is Vertical Specifies the animation effect Subtype is VerticalIn Specifies the animation effect Subtype is VerticalOut Specifies the animation effect Subtype is Wheel1 Specifies the animation effect Subtype is Wheel2 Specifies the animation effect Subtype is Wheel3 Specifies the animation effect Subtype is Wheel4 Specifies the animation effect Subtype is Wheel8 Specifies the build type value for text animation effect Specifies the text animation build type is AsOneObject Specifies the text animation build type is AllParagraphsAtOnce Specifies the text animation build type is ByLevelParagraphs1 Specifies the text animation build type is ByLevelParagraphs2 Specifies the text animation build type is ByLevelParagraphs3 Specifies the text animation build type is ByLevelParagraphs4 Specifies the text animation build type is ByLevelParagraphs5 Specifies the command effect type Specifies the command effect type is Not Defined Specifies the command effect type is event Specifies the command effect type is Call Specifies the command effect type is verb Represents the motion command path. Get the command type of motion effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop //Add the line command to move the shape in straight line PointF[] points = new PointF[1]; points[0] = new PointF(0, 0.25f); foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as MotionEffect); IMotionPath path = (motionEffect.Path as IMotionPath); path[0].CommandType = MotionCommandPathType.MoveTo; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As IBehavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is IMotionEffect) Then 'Assign the motion effect values Dim motionEffect As IMotionEffect = TryCast(behavior,IMotionEffect) Dim path As IMotionPath = TryCast(motionEffect.Path, IMotionPath) path(0).CommandType = MotionCommandPathType.MoveTo Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the relative value // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); IMotionPath path = (motionEffect.Path as IMotionPath); path[0].IsRelative = false; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As IBehavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is IMotionEffect) Then 'Assign the motion effect values Dim motionEffect As IMotionEffect = TryCast(behavior,IMotionEffect) Dim path As IMotionPath = TryCast(motionEffect.Path, IMotionPath) path(0).IsRelative = false Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the path values in points // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); IMotionPath path = (motionEffect.Path as IMotionPath); PointF[] points = path[0].Points; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As IBehavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is IMotionEffect) Then 'Assign the motion effect values Dim motionEffect As IMotionEffect = TryCast(behavior,IMotionEffect) Dim path As IMotionPath = TryCast(motionEffect.Path, IMotionPath) Dim points As PointF() = path(0).Points Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the points type value of motion effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); IMotionPath path = (motionEffect.Path as IMotionPath); path[0].PointsType = MotionPathPointsType.Auto; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As IBehavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is IMotionEffect) Then 'Assign the motion effect values Dim motionEffect As IMotionEffect = TryCast(behavior,IMotionEffect) Dim path As IMotionPath = TryCast(motionEffect.Path, IMotionPath) path(0).PointsType = MotionPathPointsType.Auto Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the motion path. Add the motion path values into the list Motion command path type Path values in points Motion path points type Check bool value of relative coordination Return the newly added path // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; //Add the line command to move the shape in straight line PointF[] points = new PointF[1]; points[0] = new PointF(0, 0.25f); // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); IMotionPath path = (motionEffect.Path as IMotionPath); path.Add(MotionCommandPathType.LineTo, points, MotionPathPointsType.CurveSmooth, false); break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is MotionEffect) Then 'Assign the motion effect values Dim motionEffect As MotionEffect = TryCast(behavior,MotionEffect) Dim path As MotionPath = TryCast(motionEffect.Path, MotionPath) path.Add(MotionCommandPathType.LineTo, points, MotionPathPointsType.CurveSmooth, false) Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Clear the motion command path values from the list // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); IMotionPath path = (motionEffect.Path as IMotionPath); path.Clear(); break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is MotionEffect) Then 'Assign the motion effect values Dim motionEffect As MotionEffect = TryCast(behavior,MotionEffect) Dim path As MotionPath = TryCast(motionEffect.Path, MotionPath) path.Clear() Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Insert the motion path into list with particular index. Index to insert motion path value Motion command path type Path value in pointF type Motion path points type Check bool value of relative coordination // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); IMotionPath path = (motionEffect.Path as IMotionPath); path.Insert(2, MotionCommandPathType.CurveTo, points, MotionPathPointsType.Smooth, false); break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is MotionEffect) Then 'Assign the motion effect values Dim motionEffect As MotionEffect = TryCast(behavior,MotionEffect) Dim path As MotionPath = TryCast(motionEffect.Path, MotionPath) path.Insert(2, MotionCommandPathType.CurveTo, points, MotionPathPointsType.Smooth, false) Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Remove the particular motion command path value Command path item to remove from the collection // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); IMotionPath path = (motionEffect.Path as IMotionPath); path.Remove(path[1]); break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is MotionEffect) Then 'Assign the motion effect values Dim motionEffect As MotionEffect = TryCast(behavior,MotionEffect) Dim path As MotionPath = TryCast(motionEffect.Path, MotionPath) path.Remove(path(1)) Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Remove the particular motion path with index value Remove the particular path from collection using index // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); IMotionPath path = (motionEffect.Path as IMotionPath); path.RemoveAt(0); break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is MotionEffect) Then 'Assign the motion effect values Dim motionEffect As MotionEffect = TryCast(behavior,MotionEffect) Dim path As MotionPath = TryCast(motionEffect.Path, MotionPath) path.RemoveAt(0) Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the count of motion path values // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); IMotionPath path = (motionEffect.Path as IMotionPath); int pathCount = path.Count; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is MotionEffect) Then 'Assign the motion effect values Dim motionEffect As MotionEffect = TryCast(behavior,MotionEffect) Dim path As MotionPath = TryCast(motionEffect.Path, MotionPath) Dim pathCount As Integer = path.Count Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Gets a instance at the specified index from the collection. Read-only. Determines the index of the effect. Returns an instance. // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IMotionEffect) { // Assign the motion effect values IMotionEffect motionEffect = (behavior as IMotionEffect); IMotionPath path = (motionEffect.Path as IMotionPath); IMotionCmdPath motionPath = (path[0] as IMotionCmdPath); break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.PathCrescentMoon, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is motion effect If (TypeOf behavior Is MotionEffect) Then 'Assign the motion effect values Dim motionEffect As MotionEffect = TryCast(behavior,MotionEffect) Dim path As MotionPath = TryCast(motionEffect.Path, MotionPath) Dim motionPath As MotionCmdPath = TryCast(path(0), MotionCmdPath) Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the animation points. Get the count of points // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Fly, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IPropertyEffect) { // Assign the property effect values IPropertyEffect propertyEffect = (behavior as IPropertyEffect); IAnimationPoints points = propertyEffect.Points; int count = points.Count; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Fly, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is property effect If (TypeOf behavior Is PropertyEffect) Then 'Assign the property effect values Dim propertyEffect As PropertyEffect = TryCast(behavior,PropertyEffect) Dim points As IAnimationPoints = propertyEffect.Points Dim count As Integer = points.Count Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Gets a instance at the specified index from the collection. Read-only. Determines the index of the point. Returns an instance. // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Fly, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IPropertyEffect) { // Assign the property effect values IPropertyEffect propertyEffect = (behavior as IPropertyEffect); IAnimationPoint point = propertyEffect.Points[0]; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Fly, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As Behavior In behaviors 'Check condition for behavior is property effect If (TypeOf behavior Is PropertyEffect) Then 'Assign the property effect values Dim propertyEffect As PropertyEffect = TryCast(behavior,PropertyEffect) Dim point As IAnimationPoint = propertyEffect.Points(0) Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the animation point. Get the formula of point // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Fly, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IPropertyEffect) { // Assign the property effect values IPropertyEffect propertyEffect = (behavior as IPropertyEffect); IAnimationPoints points = propertyEffect.Points; points[0].Formula = "0.5"; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Fly, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As IBehavior In behaviors 'Check condition for behavior is property effect If (TypeOf behavior Is IPropertyEffect) Then 'Assign the property effect values Dim propertyEffect As IPropertyEffect = TryCast(behavior,IPropertyEffect) Dim points As IAnimationPoints = propertyEffect.Points points(0).Formula = "0.5" Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the time value of point // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Fly, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IPropertyEffect) { // Assign the property effect values IPropertyEffect propertyEffect = (behavior as IPropertyEffect); IAnimationPoints points = propertyEffect.Points; points[1].Time = 90; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Fly, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As IBehavior In behaviors 'Check condition for behavior is property effect If (TypeOf behavior Is IPropertyEffect) Then 'Assign the property effect values Dim propertyEffect As IPropertyEffect = TryCast(behavior,IPropertyEffect) Dim points As IAnimationPoints = propertyEffect.Points points(1).Time = 90 Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the value of point // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Fly, EffectSubtype.None, EffectTriggerType.OnClick); // Get the behaviors list from the effect IBehaviors behaviors = effect.Behaviors; // Get behavior using foreach loop foreach (IBehavior behavior in behaviors) { if (behavior is IPropertyEffect) { // Assign the property effect values IPropertyEffect propertyEffect = (behavior as IPropertyEffect); IAnimationPoints points = propertyEffect.Points; points[0].Value = "#ppt_x"; break; } } // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Fly, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the behaviors list from the effect Dim behaviors As IBehaviors = effect.Behaviors 'Get behavior using foreach loop For Each behavior As IBehavior In behaviors 'Check condition for behavior is property effect If (TypeOf behavior Is IPropertyEffect) Then 'Assign the property effect values Dim propertyEffect As IPropertyEffect = TryCast(behavior,IPropertyEffect) Dim points As IAnimationPoints = propertyEffect.Points points(0).Value = "#ppt_x" Exit For End If Next 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the sequence. Add the effect in main sequence Shape to apply animation Animation effect type Animation Subtype Trigger type for perform animation Returns the newly added effect type // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Add the text animation effect in mainsequence Shape to apply animation effect Animation effect type Animation Subtype Trigger type to perform animation Build type for text animation Returns the newly added animation effect // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Blink, EffectSubtype.None, EffectTriggerType.OnClick, BuildType.AsOneObject); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Blink, EffectSubtype.None, EffectTriggerType.OnClick, BuildType.AsOneObject) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Clear the effects from mainsequence list // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // clear the mainsequence ppDoc.Slides[0].Timeline.MainSequence.Clear(); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'clear the mainsequence ppDoc.Slides(0).TimeLine.MainSequence.Clear() 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the count of applied animation effects on particular shape Shape which have animation effect Returns the animation effect count based on shape // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get the effects count by shape int effectsCount = ppDoc.Slides[0].Timeline.MainSequence.GetCount(shape); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the effects count by shape Dim effectsCount As Integer = pres.Slides(0).TimeLine.MainSequence.GetCount(shape) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the effects list by shape in presentation Shape which have animation effect Returns the effects list on particular shape // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get the effects list by shape IEffect[] effects = ppDoc.Slides[0].Timeline.MainSequence.GetEffectsByShape(shape); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the effects list by shape Dim effects As IEffect() = pres.Slides(0).TimeLine.MainSequence.GetEffectsByShape(shape) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Insert the effect in sequence using index Index to add the effectr Effect value to add in sequence // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Insert effect in mainsequence with effect value ppDoc.Slides[0].Timeline.MainSequence.Insert(1,effect); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Insert effect in mainsequence with effect value ppDoc.Slides(0).TimeLine.MainSequence.Insert(1, effect) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Remove the effect by particular effect item Effect item to remove from collection // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Remove the mainsequence with effect value ppDoc.Slides[0].Timeline.MainSequence.Remove(effect); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Remove the mainsequence with effect value ppDoc.Slides(0).TimeLine.MainSequence.Remove(effect) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Remove the effect by index Index to remove the effect from collection // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Remove the behavior with index value ppDoc.Slides[0].Timeline.MainSequence.RemoveAt(0); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Remove the behavior with index value ppDoc.Slides(0).TimeLine.MainSequence.RemoveAt(0) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Remove the effect by using shape Shape to remove the animation effects // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Remove the mainsequence with shape value ppDoc.Slides[0].Timeline.MainSequence.RemoveByShape(shape); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Remove the mainsequence with shape value ppDoc.Slides(0).TimeLine.MainSequence.RemoveByShape(shape); 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the count value of list of main sequence // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get the main sequences count from the effect int mainCount = ppDoc.Slides[0].Timeline.MainSequence.Count; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the main sequences count from the effect Dim mainCount As Integer = ppDoc.Slides(0).TimeLine.MainSequence.Count 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Gets a instance at the specified index from the collection. Read-only. Determines the index of the effect. Returns an instance. // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get the mainsequence effect with index IEffect mainEffect = ppDoc.Slides[0].Timeline.MainSequence[0]; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the mainsequence effect with index from the effect Dim mainEffect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence(0) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the trigger shape value // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.InteractiveSequences.Add(shape).AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get the trigger shape from the interactive sequence. IShape triggerShape = ppDoc.Slides[0].Timeline.InteractiveSequences[0].TriggerShape; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.InteractiveSequences.Add(shape).AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the trigger shape from the interactive sequence. Dim triggerShape As IShape = ppDoc.Slides(0).TimeLine.InteractiveSequences(0).TriggerShape 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the sequences. Add the animation Sequence in sequences collection Trigger shape type for animation effect Returns the new added sequence detail // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 250, 250, 250, 150); // Add trigger shape on the slide IShape triggerShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 150, 150, 200, 100); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.InteractiveSequences.Add(triggerShape).AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 250, 250, 250, 150) 'Add trigger shape on the slide Dim triggerShape As IShape = slide.Shapes.AddShape(AutoShapeType.Rectangle, 150, 150, 200, 100) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.InteractiveSequences.Add(triggerShape).AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Clear all the animation sequences in slide // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.InteractiveSequences.Add(shape).AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // clear the interactive sequences ppDoc.Slides[0].Timeline.InteractiveSequences.Clear(); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.InteractiveSequences.Add(shape).AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'clear the interactive sequences ppDoc.Slides(0).TimeLine.InteractiveSequences.Clear() 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Remove the particular sequence from collection Item to remove sequence // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.InteractiveSequences.Add(shape).AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the interactive sequence ISequence interactiveSequence = ppDoc.Slides[0].Timeline.InteractiveSequences[0]; // Remove the interactive sequence with effect value ppDoc.Slides[0].Timeline.InteractiveSequences.Remove(interactiveSequence); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.InteractiveSequences.Add(shape).AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the interactive sequence Dim interactiveSequence As ISequence = ppDoc.Slides(0).TimeLine.InteractiveSequences(0) 'Remove the interactive sequence with effect value ppDoc.Slides(0).TimeLine.InteractiveSequences.Remove(interactiveSequence) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Remove the particular sequence from collection using index Index to remove sequence // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.InteractiveSequences.Add(shape).AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Remove the behavior with index value ppDoc.Slides[0].Timeline.InteractiveSequences.RemoveAt(0); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.InteractiveSequences.Add(shape).AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Remove the behavior with index value ppDoc.Slides(0).TimeLine.InteractiveSequences.RemoveAt(0) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the effects count value // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); IShape shapeTrigger = ppDoc.Slides[0].Shapes.AddShape(AutoShapeType.Bevel, 10, 10, 20, 20); // Add interactive sequence in slide with trigger shape ISequence seqInter = ppDoc.Slides[0].Timeline.InteractiveSequences.Add(shapeTrigger); // Add animation effect on the slide with shape IEffect bouncePath = seqInter.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get the interactive sequences count from the effect int interactiveCount = ppDoc.Slides[0].Timeline.InteractiveSequences.Count; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) Dim shapeTrigger As IShape = pres.Slides(0).Shapes.AddShape(AutoShapeType.Bevel, 10, 10, 20, 20) 'Add interactive sequence in slide with trigger shape Dim seqInter As ISequence = pres.Slides(0).TimeLine.InteractiveSequences.Add(shapeTrigger) 'Add animation effect on the slide with shape Dim bouncePath As IEffect = seqInter.AddEffect(ashp, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the interactive sequences count from the effect Dim interactiveCount As Integer = ppDoc.Slides(0).TimeLine.InteractiveSequences.Count 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Gets a instance at the specified index from the collection. Read-only. Determines the index of the sequence. Returns an instance. // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.InteractiveSequences.Add(shape).AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the interactive sequences effect with index from the effect ISequence interactiveSequence = ppDoc.Slides[0].Timeline.InteractiveSequences[0]; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.InteractiveSequences.Add(shape).AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the interactive sequences effect with index from the effect Dim interactiveSequence As ISequence = ppDoc.Slides(0).TimeLine.InteractiveSequences(0) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the animation timeline. Get the list of interactive sequences from the slide // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.InteractiveSequences.Add(shape).AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.InteractiveSequences.Add(shape).AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the list of main sequence from the slide // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the timing. Get the accelerate value of timing property /// // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the Timing properties of effect and assign it in new Timing property ITiming time = (effect.Timing as ITiming); // Assign the Set effect Accelerate property time.Accelerate = 0; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the Timing properties of effect and assign it in new Timing property Dim time As Timing = TryCast(effect.Timing, Timing) 'Assign the Set effect Accelerate property time.Accelerate = 0 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the auto reverse value of timing property // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the Timing properties of effect and assign it in new Timing property ITiming time = (effect.Timing as ITiming); // Assign the Set effect Accelerate property time.AutoReverse = false; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the Timing properties of effect and assign it in new Timing property Dim time As Timing = TryCast(effect.Timing, Timing) 'Assign the Set effect Accelerate property time.AutoReverse = False 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the decelerate value of timing property // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the Timing properties of effect and assign it in new Timing property ITiming time = (effect.Timing as ITiming); // Assign the Set effect Accelerate property time.Decelerate = 0; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the Timing properties of effect and assign it in new Timing property Dim time As Timing = TryCast(effect.Timing, Timing) 'Assign the Set effect Accelerate property time.Decelerate = 0 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the duration value of timing property // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the Timing properties of effect and assign it in new Timing property ITiming time = (effect.Timing as ITiming); // Assign the Set effect Accelerate property time.Duration = 25; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the Timing properties of effect and assign it in new Timing property Dim time As Timing = TryCast(effect.Timing, Timing) 'Assign the Set effect Accelerate property time.Duration = 25 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the repeat count value of timing property // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the Timing properties of effect and assign it in new Timing property ITiming time = (effect.Timing as ITiming); // Assign the Set effect Accelerate property time.RepeatCount = 3; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the Timing properties of effect and assign it in new Timing property Dim time As Timing = TryCast(effect.Timing, Timing) 'Assign the Set effect Accelerate property time.RepeatCount = 3 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the repeat duration value of timing property // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the Timing properties of effect and assign it in new Timing property ITiming time = (effect.Timing as ITiming); // Assign the Set effect Accelerate property time.RepeatDuration = 2; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the Timing properties of effect and assign it in new Timing property Dim time As Timing = TryCast(effect.Timing, Timing) 'Assign the Set effect Accelerate property time.RepeatDuration = 2 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the restart value of timing property // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the Timing properties of effect and assign it in new Timing property ITiming time = (effect.Timing as ITiming); // Assign the Set effect Accelerate property time.Restart = EffectRestartType.Always; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the Timing properties of effect and assign it in new Timing property Dim time As Timing = TryCast(effect.Timing, Timing) 'Assign the Set effect Accelerate property time.Restart = EffectRestartType.Always 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the speed value of timing property // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the Timing properties of effect and assign it in new Timing property ITiming time = (effect.Timing as ITiming); // Assign the Set effect Accelerate property time.Speed = 50; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the Timing properties of effect and assign it in new Timing property Dim time As Timing = TryCast(effect.Timing, Timing) 'Assign the Set effect Accelerate property time.Speed = 50 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the trigger delay time value of timing property // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the Timing properties of effect and assign it in new Timing property ITiming time = (effect.Timing as ITiming); // Assign the Set effect Accelerate property time.TriggerDelayTime = 20; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the Timing properties of effect and assign it in new Timing property Dim time As Timing = TryCast(effect.Timing, Timing) 'Assign the Set effect Accelerate property time.TriggerDelayTime = 20 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Get the trigger type value of timing property // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick); // Get the Timing properties of effect and assign it in new Timing property ITiming time = (effect.Timing as ITiming); // Assign the Set effect Accelerate property time.TriggerType = EffectTriggerType.OnClick; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.ChangeFillColor, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the Timing properties of effect and assign it in new Timing property Dim time As Timing = TryCast(effect.Timing, Timing) 'Assign the Set effect Accelerate property time.TriggerType = EffectTriggerType.OnClick 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() Represents the slide show transition. Get the Slide Transition Mouse On Click value // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add slide transition effect on the slide slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble; //Set the mouse on click bool value slide.SlideTransition.TriggerOnClick = true; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) ' Add slide transition effect on the slide slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble ' Set the mouse on click bool value slide.SlideTransition.TriggerOnClick = true ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close() Get the Next Slide Advance Time Check Value // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add slide transition effect on the slide slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble; // Set the next slide advance time bool value slide.SlideTransition.TriggerOnTimeDelay = true; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) ' Add slide transition effect on the slide slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble ' Set the next slide advance time bool value slide.SlideTransition.TriggerOnTimeDelay = True ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close() Get the advance time value for navigating to next slide. Max Advance time value is 86399. // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add slide transition effect on the slide slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble; // Set the next slide advance time bool value slide.SlideTransition.TriggerOnTimeDelay = true; // Set the advance on time value for next slide slide.SlideTransition.TimeDelay = 25000; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) ' Add slide transition effect on the slide slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble ' Set the next slide advance time bool value slide.SlideTransition.TriggerOnTimeDelay = True ' Set the advance on time value for next slide slide.SlideTransition.TimeDelay = 25000 ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close() Get the Duration of the Slide Transition. Max Duration is 59 seconds(0 to 59). // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add slide transition effect on the slide slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble; // Set the duration value(in seconds) for slide transition effect slide.SlideTransition.Duration = 30; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) ' Add slide transition effect on the slide slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble ' Set the duration value(in seconds) for slide transition effect slide.SlideTransition.Duration = 30 ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close() Get the Transition effect type // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add slide transition effect on the slide slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) ' Add slide transition effect on the slide slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close() Get the Transition effect SubType(Direction) // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add slide transition effect on the slide slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble; // Add subtype for the transition effect slide.SlideTransition.TransitionEffectOption = TransitionEffectOption.Right; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) ' Add slide transition effect on the slide slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble ' Add subtype for the transition effect slide.SlideTransition.TransitionEffectOption = TransitionEffectOption.Right ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close() Get the Speed of the Transition effect Transition duration value will change based on speed. The duration values are Fast - 0.5 sec, Medium - 0.75 sec, Slow - 1.0 sec // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add slide transition effect on the slide slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble; // Add the speed value for the transition effect slide.SlideTransition.Speed = TransitionSpeed.Slow; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ' Create a new presentation. Dim ppDoc As IPresentation = Presentation.Create() ' Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) ' Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) ' Add slide transition effect on the slide slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble ' Add the speed value for the transition effect slide.SlideTransition.Speed = TransitionSpeed.Slow ' Save the presentation file ppDoc.Save("Sample.pptx") ' Close the presentation file ppDoc.Close() Specifies the transition effect Specifies the transition effect is None Specifies the transition effect is Blinds Specifies the transition effect is Checkerboard Specifies the transition effect is Circle Specifies the transition effect is Comb Specifies the transition effect is Cover Specifies the transition effect is Cut Specifies the transition effect is Diamond Specifies the transition effect is Dissolve Specifies the transition effect is FadeAway Specifies the transition effect is NewsFlash Specifies the transition effect is Plus Specifies the transition effect is Push Specifies the transition effect is Random Specifies the transition effect is RandomBars Specifies the transition effect is Split Specifies the transition effect is Strips Specifies the transition effect is Wedge Specifies the transition effect is Wheel Specifies the transition effect is Wipe Specifies the transition effect is Zoom Specifies the transition effect is Vortex Specifies the transition effect is Switch Specifies the transition effect is Flip Specifies the transition effect is Ripple Specifies the transition effect is HoneyComb Specifies the transition effect is Cube Specifies the transition effect is Box Specifies the transition effect is Rotate Specifies the transition effect is orbit Specifies the transition effect is Doors Specifies the transition effect is Window Specifies the transition effect is FerrisWheel Specifies the transition effect is Gallery Specifies the transition effect is Conveyor Specifies the transition effect is Pan Specifies the transition effect is GlitterDiamond Specifies the transition effect is GlitterHexagon Specifies the transition effect is Warp Specifies the transition effect is FlyThrough Specifies the transition effect is Flashbulb Specifies the transition effect is Shred Specifies the transition effect is Reveal Specifies the transition effect is FallOver Specifies the transition effect is Drape Specifies the transition effect is Curtains Specifies the transition effect is Wind Specifies the transition effect is Prestige Specifies the transition effect is Fracture Specifies the transition effect is Crush Specifies the transition effect is PeelOff Specifies the transition effect is PageCurlSingle Specifies the transition effect is PageCurlDouble Specifies the transition effect is Origami Specifies the transition effect is Airplane Specifies the transition effect is Morph Specifies the transition effect is Uncover Specifies the transition effect option Specifies the transition subtype is None Specifies the transition subtype is Left Specifies the transition subtype is Right Specifies the transition subtype is Up Specifies the transition subtype is Down Specifies the transition subtype is LeftDown Specifies the transition subtype is LeftUp Specifies the transition subtype is RightDown Specifies the transition subtype is RightUp Specifies the transition subtype is In Specifies the transition subtype is Out Specifies the transition subtype is Horizontal Specifies the transition subtype is Vertical Specifies the transition subtype is ByObject Specifies the transition subtype is ByWord Specifies the transition subtype is ByChar Specifies the transition subtype is StripsIn Specifies the transition subtype is StripsOut Specifies the transition subtype is RectangleIn Specifies the transition subtype is RectangleOut Specifies the transition subtype is SmoothLeft Specifies the transition subtype is SmoothRight Specifies the transition subtype is BlackLeft Specifies the transition subtype is BlackRight Specifies the transition subtype is Inbounce Specifies the transition subtype is Outbounce Specifies the transition subtype is Center Specifies the transition subtype is HorizontalOut Specifies the transition subtype is HorizontalIn Specifies the transition subtype is VerticalOut Specifies the transition subtype is VerticalIn Specifies the transition subtype is Across Specifies the transition subtype is ThroughBlack Specifies the transition subtype is Smoothly Specifies the transition subtype is Spoke1 Specifies the transition subtype is Spokes2 Specifies the transition subtype is Spokes3 Specifies the transition subtype is Spokes4 Specifies the transition subtype is Spokes8 Specifies the transition subtype is Reverse1Spoke Specifies the transition speed Specifies the transition speed is None Specifies the transition speed is Slow Specifies the transition speed is Medium Specifies the transition speed is Fast Specifies the direction value is None Specifies the direction value is Horizontal Specifies the direction value is Vertical Specifies the eight direction type is None. Specifies the eight direction type is LeftDown Specifies the eight direction type is LeftUp Specifies the eight direction type is RightDown Specifies the eight direction type is RightUp Specifies the eight direction type is Left Specifies the eight direction type is Up Specifies the eight direction type is Down Specifies the eight direction type is Right Specifies the side direction is None Specifies the side direction is Down Specifies the side direction is Left Specifies the side direction is Right Specifies the side direction is Up Specifies the InOut direction is None Specifies the InOut direction is In Specifies the InOut direction is Out Specifies the Corner direction is None Specifies the Corner direction is LeftDown Specifies the Corner direction is LeftUp Specifies the Corner direction is RightDown Specifies the Corner direction is RightUp Specifies the Pattern is None Specifies the Pattern is Diamond Specifies the Pattern is Hexagon Specifies the ShredPattern is None Specifies the ShredPattern is Strip Specifies the ShredPattern is Rectangle Specifies the LeftRight direction is None Specifies the LeftRight direction is Left Specifies the LeftRight direction is Right Specifies the Morph option is ByObject Specifies the Morph option is ByWord Specifies the Morph option is ByChar This class holds the name of the Syncfusion.OfficeChart.Base assembly and provides a helper routine that helps with resolving types when loading a serialization stream and when the framework probes for assemblies by reflection. The full name of this assembly without version information: "Syncfusion.OfficeChart" A reference to the for the XlsIO assembly. The root namespace of this assembly. Used internally for locating resources within the assembly.