Back to Devexpress

InlinePictureBox.Image Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-layout-dot-inlinepicturebox.md

latest3.0 KB
Original Source

InlinePictureBox.Image Property

Returns a OfficeImage object that relates to the current InlinePictureBox element.

Namespace : DevExpress.XtraRichEdit.API.Layout

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public OfficeImage Image { get; }
vb
Public ReadOnly Property Image As OfficeImage

Property Value

TypeDescription
OfficeImage

A OfficeImage object that is the image in the logical document model.

|

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.

winforms-richedit-layout-api-practical-usage/CS/WindowsFormsApplication1/DocumentLayoutHelper/DocumentElementLayoutHelper.cs#L62

csharp
returnedInformation += String.Format("Start position: {0}\r\n", inlinePicture.Range.Start);
returnedInformation += GetInformationAboutOfficeImage(inlinePicture.Image);
return returnedInformation;

winforms-richedit-layout-api-practical-usage/VB/WindowsFormsApplication1/DocumentLayoutHelper/DocumentElementLayoutHelper.vb#L65

vb
returnedInformation &= String.Format("Start position: {0}" & Constants.vbCrLf, inlinePicture.Range.Start)
returnedInformation &= GetInformationAboutOfficeImage(inlinePicture.Image)
Return returnedInformation

See Also

InlinePictureBox Class

InlinePictureBox Members

DevExpress.XtraRichEdit.API.Layout Namespace