Skip to main content
A newer version of this page is available. .

XlSourceRectangle Struct

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

Namespace: DevExpress.Export.Xl

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

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