# IWorkKeynoteSlideBuilder

A slide being created in an IWorkKeynoteDocument.

Class 

`OfficeIMO.IWork`

**Namespace**

`OfficeIMO.IWork`

**Assembly**

`OfficeIMO.IWork`

**Source revision**

`5e5a2dda74b3` with working tree changes

**Source**

[IWorkKeynoteSlideBuilder.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.IWork/Creation/IWorkKeynoteSlideBuilder.cs#L35)

**Modifiers**

sealed

A slide being created in an [IWorkKeynoteDocument](/api/iwork/officeimo-iwork-iworkkeynotedocument/).

## Inheritance

- object
- IWorkKeynoteSlideBuilder

## Remarks

Text boxes, images and tables retain their combined insertion order, which determines stacking order. Instances are not thread safe.

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Method [IWorkKeynoteDocument.AddSlide](/api/iwork/officeimo-iwork-iworkkeynotedocument/#method-addslide-string)
- Property [IWorkKeynoteDocument.Slides](/api/iwork/officeimo-iwork-iworkkeynotedocument/#property-slides)

Filter members 

Show inherited

## Methods

`public IWorkKeynoteImage AddImage(byte[] data, float leftPoints, float topPoints, float widthPoints, float heightPoints, string? accessibilityDescription = null, CancellationToken cancellationToken = default)` [#](#method-addimage-byte-single-single-single-single-string-threading-cancellationtoken)

[IWorkKeynoteSlideBuilder.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.IWork/Creation/IWorkKeynoteSlideBuilder.cs#L48)

Adds a complete PNG or JPEG and copies its payload into an immutable image.

Parameters

**data byte[] required**

**leftPoints float required**

**topPoints float required**

**widthPoints float required**

**heightPoints float required**

**accessibilityDescription string? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`IWorkKeynoteImage`

`public IWorkKeynoteTextBox AddRichText(IEnumerable<IWorkTextRunData> runs, float leftPoints, float topPoints, float widthPoints, float heightPoints)` [#](#method-addrichtext-collections-generic-ienumerable-officeimo-iwork-iworktextrundata-single-single-single-single)

[IWorkKeynoteSlideBuilder.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.IWork/Creation/IWorkKeynoteSlideBuilder.cs#L70)

Adds a left-aligned rich-text box with zero padding and immutable character runs.

Parameters

**runs System.Collections.Generic.IEnumerable<OfficeIMO.IWork.IWorkTextRunData> required**

**leftPoints float required**

**topPoints float required**

**widthPoints float required**

**heightPoints float required**

Returns

`IWorkKeynoteTextBox`

`public IWorkKeynoteTable AddTable(IWorkTableData data, float leftPoints, float topPoints, float widthPoints, float heightPoints, string name = "Table", string fontName = "Arial", float fontSizePoints = 20, string color = "000000")` [#](#method-addtable-officeimo-iwork-iworktabledata-single-single-single-single-string-string-single-string)

[IWorkKeynoteSlideBuilder.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.IWork/Creation/IWorkKeynoteSlideBuilder.cs#L35)

Adds a snapshot of scalar table data with equally sized rows and columns.

Parameters

**data OfficeIMO.IWork.IWorkTableData required**

**leftPoints float required**

**topPoints float required**

**widthPoints float required**

**heightPoints float required**

**name string = "Table" optional**

**fontName string = "Arial" optional**

**fontSizePoints float = 20 optional**

**color string = "000000" optional**

Returns

`IWorkKeynoteTable`

`public IWorkKeynoteTextBox AddText(string text, float leftPoints, float topPoints, float widthPoints, float heightPoints, string fontName = "Arial", float fontSizePoints = 32, string color = "000000")` [#](#method-addtext-string-single-single-single-single-string-single-string)

[IWorkKeynoteSlideBuilder.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.IWork/Creation/IWorkKeynoteSlideBuilder.cs#L60)

Adds a left-aligned text box with zero internal padding and one font and color throughout.

Parameters

**text string required**

**leftPoints float required**

**topPoints float required**

**widthPoints float required**

**heightPoints float required**

**fontName string = "Arial" optional**

**fontSizePoints float = 32 optional**

**color string = "000000" optional**

Returns

`IWorkKeynoteTextBox`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public IWorkColor BackgroundColor { get; }` [#](#property-backgroundcolor)

[IWorkKeynoteSlideBuilder.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.IWork/Creation/IWorkKeynoteSlideBuilder.cs#L21)

Gets the opaque sRGB slide background.

`public IReadOnlyList<IWorkKeynoteTextBox> TextBoxes { get; }` [#](#property-textboxes)

[IWorkKeynoteSlideBuilder.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.IWork/Creation/IWorkKeynoteSlideBuilder.cs#L23)

Gets the positioned text boxes in stacking order.

`public IReadOnlyList<IWorkKeynoteImage> Images { get; }` [#](#property-images)

[IWorkKeynoteSlideBuilder.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.IWork/Creation/IWorkKeynoteSlideBuilder.cs#L25)

Gets the positioned images in their relative stacking order.

`public IReadOnlyList<IWorkKeynoteTable> Tables { get; }` [#](#property-tables)

[IWorkKeynoteSlideBuilder.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.IWork/Creation/IWorkKeynoteSlideBuilder.cs#L27)

Gets the positioned tables in their relative stacking order.

<!-- PowerForge markdown artifact sha256:625CF98D3616CB1F0CFA8D0F33B1CB54CE3C30CF439589FB452C68506D1937EC -->
