Skip to main content

XlSourceRectangle Struct

Specifies the portion of the picture to display in a worksheet.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public struct XlSourceRectangle

The following members return XlSourceRectangle objects:

Remarks

To crop a picture inserted into the document, assign the XlSourceRectangle class instance to the IXlPicture.SourceRectangle property. Each edge of the source rectangle is defined by a percentage offset from the corresponding edge of the picture’s bounding box. A positive percentage specifies an inset, while a negative percentage specifies an outset.

See Also