Table of Contents

Class Slide

Namespace
Openize.Slides
Assembly
Openize.OpenXMLSDK.dll

Represents the slide object within a presentatction

public class Slide
Inheritance
Slide
Inherited Members

Constructors

Slide()

Constructor for the Slide class.

public Slide()

Remarks

it intializes the Slide Facade set the slide index and intializes the lists of text shapes and images.

Slide(bool)

Contructor which accepts bool value

public Slide(bool isNewSlide)

Parameters

isNewSlide bool

Properties

Arrows

Property to get or set list of arrows.

public List<Arrow> Arrows { get; set; }

Property Value

List<Arrow>

BackgroundColor

Property to set background color of a slide.

public string BackgroundColor { get; set; }

Property Value

string

Circles

Property to get or set list of circles.

public List<Circle> Circles { get; set; }

Property Value

List<Circle>

CurvedLines

Property to get or set list of curved lines.

public List<CurvedLine> CurvedLines { get; set; }

Property Value

List<CurvedLine>

Diamonds

Property to get or set list of diamonds.

public List<Diamond> Diamonds { get; set; }

Property Value

List<Diamond>

DoubleArrows

Property to get or set list of double arrows.

public List<DoubleArrow> DoubleArrows { get; set; }

Property Value

List<DoubleArrow>

DoubleBraces

Property to get or set list of double braces.

public List<DoubleBrace> DoubleBraces { get; set; }

Property Value

List<DoubleBrace>

DoubleBrackets

Property to get or set list of double bracket.

public List<DoubleBracket> DoubleBrackets { get; set; }

Property Value

List<DoubleBracket>

Hexagons

Property to get or set list of Hexagon.

public List<Hexagon> Hexagons { get; set; }

Property Value

List<Hexagon>

Images

Property contains the list of all images within a slide.

public List<Image> Images { get; set; }

Property Value

List<Image>

Lines

Property to get or set list of lines.

public List<Line> Lines { get; set; }

Property Value

List<Line>

Pentagons

Property to get or set list of Pentagons.

public List<Pentagon> Pentagons { get; set; }

Property Value

List<Pentagon>

Pies

Property to get or set list of Pie.

public List<Pie> Pies { get; set; }

Property Value

List<Pie>

Rectangles

Property to get or set the list of Rectangles.

public List<Rectangle> Rectangles { get; set; }

Property Value

List<Rectangle>

RelationshipId

Property for the relationship Id.

public string RelationshipId { get; set; }

Property Value

string

SlideFacade

Property for respective Slide Facade.

public SlideFacade SlideFacade { get; set; }

Property Value

SlideFacade

SlideIndex

Property to hold the index of the slide.

public int SlideIndex { get; set; }

Property Value

int

SlidePresentation

Property to get or set the relative presentation instance

public Presentation SlidePresentation { get; set; }

Property Value

Presentation

Tables

Property to get or set the list of tables

public List<Table> Tables { get; set; }

Property Value

List<Table>

TextShapes

Property contains the list of all text shapes.

public List<TextShape> TextShapes { get; set; }

Property Value

List<TextShape>

Trapezoids

Property to get or set list of Trapezoid.

public List<Trapezoid> Trapezoids { get; set; }

Property Value

List<Trapezoid>

Triangles

Property to get or set list of triangles.

public List<Triangle> Triangles { get; set; }

Property Value

List<Triangle>

Methods

AddComment(Comment)

Method to add comments to a slide.

public void AddComment(Comment comment)

Parameters

comment Comment

An object of Comment class

AddImage(Image)

Method to add images to a slide.

public void AddImage(Image image)

Parameters

image Image

An object of Image class

AddNote(string)

Method to add/update note to a slide

public void AddNote(string noteText)

Parameters

noteText string

Text you want to add as note

AddTable(Table)

Method to add table to a slide.

public void AddTable(Table table)

Parameters

table Table

An object of Table class

AddTextShapes(TextShape)

Method to add a text shape in a slide.

public void AddTextShapes(TextShape textShape)

Parameters

textShape TextShape

An object of TextShape class.

AddTextShapes(TextShape, List<TextSegment>)

public void AddTextShapes(TextShape textShape, List<TextSegment> textSegments)

Parameters

textShape TextShape
textSegments List<TextSegment>

Clone()

public void Clone()

Exceptions

OpenizeException

DrawArrow(Arrow)

Method to draw an arrow shape

public void DrawArrow(Arrow arrow)

Parameters

arrow Arrow

Exceptions

OpenizeException

DrawCircle(Circle)

Method to draw a circular shape

public void DrawCircle(Circle circle)

Parameters

circle Circle

Exceptions

OpenizeException

DrawCurvedLine(CurvedLine)

Method to draw a curved line

public void DrawCurvedLine(CurvedLine curvedLine)

Parameters

curvedLine CurvedLine

Exceptions

OpenizeException

DrawDiamond(Diamond)

Method to draw a diamond shape

public void DrawDiamond(Diamond diamond)

Parameters

diamond Diamond

Exceptions

OpenizeException

DrawDoubleArrow(DoubleArrow)

Method to draw a double arrow shape

public void DrawDoubleArrow(DoubleArrow doubleArrow)

Parameters

doubleArrow DoubleArrow

Exceptions

OpenizeException

DrawDoubleBrace(DoubleBrace)

Method to draw a double brace shape

public void DrawDoubleBrace(DoubleBrace doubleBrace)

Parameters

doubleBrace DoubleBrace

Exceptions

OpenizeException

DrawDoubleBracket(DoubleBracket)

Method to draw a double bracket shape

public void DrawDoubleBracket(DoubleBracket doubleBracket)

Parameters

doubleBracket DoubleBracket

Exceptions

OpenizeException

DrawHexagon(Hexagon)

Method to draw a hexagon shape

public void DrawHexagon(Hexagon hexagon)

Parameters

hexagon Hexagon

Exceptions

OpenizeException

DrawLine(Line)

Method to draw a line shape

public void DrawLine(Line line)

Parameters

line Line

Exceptions

OpenizeException

DrawPentagon(Pentagon)

Method to draw a pentagon shape

public void DrawPentagon(Pentagon pentagon)

Parameters

pentagon Pentagon

Exceptions

OpenizeException

DrawPie(Pie)

public void DrawPie(Pie pie)

Parameters

pie Pie

DrawRectangle(Rectangle)

Method to draw a rectangular shape

public void DrawRectangle(Rectangle rect)

Parameters

rect Rectangle

Exceptions

OpenizeException

DrawTrapezoid(Trapezoid)

Method to draw a trapezoid shape

public void DrawTrapezoid(Trapezoid trapezoid)

Parameters

trapezoid Trapezoid

Exceptions

OpenizeException

DrawTriangle(Triangle)

Method to draw a triangular shape

public void DrawTriangle(Triangle triangle)

Parameters

triangle Triangle

Exceptions

OpenizeException

GetComments()

Method to get the list of comments.

public List<Comment> GetComments()

Returns

List<Comment>

GetTextShapesByText(string)

Get text shapes by searching a text term.

public List<TextShape> GetTextShapesByText(string text)

Parameters

text string

Search term as string

Returns

List<TextShape>

RemoveNote()

Method to remove Notes of a slide

public void RemoveNote()

Update()

Method to update a slide properties e.g. background color.

public void Update()