Back to Devexpress

PlaceholderSettings.Type Property

officefileapi-devexpress-dot-docs-dot-presentation-dot-placeholdersettings.md

latest3.4 KB
Original Source

PlaceholderSettings.Type Property

Gets or sets the placeholder type.

Namespace : DevExpress.Docs.Presentation

Assembly : DevExpress.Docs.Presentation.v25.2.dll

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public PlaceholderType Type { get; set; }
vb
Public Property Type As PlaceholderType

Property Value

TypeDescription
PlaceholderType

The placeholder type.

|

Available values:

Show 16 items

NameDescription
Title

Contains a title.

| | Body |

Contains body text.

| | CenteredTitle |

Contains a centered title.

| | Subtitle |

Contains a subtitle.

| | DateAndTime |

Contains the date and time.

| | SlideNumber |

Contains a slide number.

| | Footer |

Contains a footer.

| | Header |

Contains a header.

| | Object |

Contains any content.

| | Chart |

Contains a chart.

| | Table |

Contains a table.

| | ClipArt |

Contains a single clip art image.

| | Diagram |

Contains a diagram.

| | Media |

Contains media content, such as a video or audio clip.

| | SlideImage |

Contains a slide image.

| | Picture |

Contains a picture.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Type
FilledShape

.PlaceholderSettings .Type

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Type property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

presentation-api-extract-content/CS/Program.cs#L140

csharp
if (noteShape is Shape textNoteShape
    && textNoteShape.PlaceholderSettings.Type == PlaceholderType.Body) {
    string noteShapeText = textNoteShape.TextArea.Text;

presentation-api-extract-content/VB/Program.vb#L62

vb
' #Region "Filter shapes"
                    If textShape.PlaceholderSettings?.Type = PlaceholderType.SlideNumber OrElse String.IsNullOrWhiteSpace(shapeText) Then
                        Continue For

See Also

PlaceholderSettings Class

PlaceholderSettings Members

DevExpress.Docs.Presentation Namespace