Back to Devexpress

PictureShape.Image Property

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

latest2.4 KB
Original Source

PictureShape.Image Property

Gets or sets the image displayed in the PictureShape.

Namespace : DevExpress.Docs.Presentation

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

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public OfficeImageBase Image { get; set; }
vb
Public Property Image As OfficeImageBase

Property Value

TypeDescription
OfficeImageBase

The image displayed in the PictureShape.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Image 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#L188

csharp
if (pictureShape.Image.Type == OfficeImageType.Image) {
    OfficeImage innerImage = (OfficeImage)pictureShape.Image;
    if (innerImage != null)

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

vb
If pictureShape.Image.Type = OfficeImageType.Image Then
    Dim innerImage As OfficeImage = CType(pictureShape.Image, OfficeImage)
    If innerImage IsNot Nothing Then

See Also

PictureShape Class

PictureShape Members

DevExpress.Docs.Presentation Namespace